Detected accelerated 3D

I was wondering if there was a quick trick to check whether
accelerated 3D is available on a particular computer? I’m not
interested in actually using it, I’d like to gather some statistics
context briefly, I guess I’ll do what I have to do. I’m not averse to
using platform-specific calls for Linux, Windows and Mac OS X, that’s
pretty much all we’ve got, so that’d cover it fine.

Thanks!from my users first… Although, if what I have to do is setting up a


http://pphaneuf.livejournal.com/

I’d just try using wglCreateContext() (on Windows, or whatever its equivalent is for Linux and OSX) and see if it returns a valid result.>----- Original Message ----

From: Pierre Phaneuf
Subject: [SDL] detected accelerated 3D

I was wondering if there was a quick trick to check whether
accelerated 3D is available on a particular computer? I’m not
interested in actually using it, I’d like to gather some statistics
from my users first… Although, if what I have to do is setting up a
context briefly, I guess I’ll do what I have to do. I’m not averse to
using platform-specific calls for Linux, Windows and Mac OS X, that’s
pretty much all we’ve got, so that’d cover it fine.

I’d just try using wglCreateContext() (on Windows, or whatever its equivalent is for Linux and OSX) and see if it returns a valid result.

This would probably get me a software renderer (which wouldn’t have 3D
acceleration), no? The Linux equivalent would, in any case…On Tue, Jun 17, 2008 at 11:14 PM, Mason Wheeler wrote:


http://pphaneuf.livejournal.com/

Good point. I did a bit of looking and found a trick that will work, but it’s apparently Windows-only. See http://www.opengl.org/resources/faq/technical/mswindows.htm#0020 for the details. Anyone know equivalent tricks on other platforms?>----- Original Message ----

From: Pierre Phaneuf
Subject: Re: [SDL] detected accelerated 3D

On Tue, Jun 17, 2008 at 11:14 PM, Mason Wheeler <@Mason_Wheeler> wrote:

I’d just try using wglCreateContext() (on Windows, or whatever its equivalent is for Linux and OSX) and see if it
returns a valid result.

This would probably get me a software renderer (which wouldn’t have 3D
acceleration), no? The Linux equivalent would, in any case…

Pierre Phaneuf wrote:

I was wondering if there was a quick trick to check whether
accelerated 3D is available on a particular computer?

Check the return value of SDL_GL_SetAttribute(
SDL_GL_ACCELERATED_VISUAL, 1 ). Note
http://bugzilla.icculus.org/show_bug.cgi?id=3526 though.

Tim Angus wrote:

Pierre Phaneuf wrote:

I was wondering if there was a quick trick to check whether
accelerated 3D is available on a particular computer?

Check the return value of SDL_GL_SetAttribute(
SDL_GL_ACCELERATED_VISUAL, 1 ).

Actually, not the return value; I think you’ll actually need to call
SDL_SetVideoMode…