View Full Version : Check the HW?

04-09-2003, 09:39 AM

How can I check which graphic card I'm using?
Is there some way for this in Win API?
OpenGL/DX ?

//Regards, Ninja

04-09-2003, 11:32 AM
You can use glGetString with GL_VENDOR and GL_RENDERER. For Windows, try EnumDisplayDevices.

04-12-2003, 09:56 AM
Ok, thanks!

But which way is the best to go if I want to write backends for different cards?
How do I distinguish between the cards?
E.g. how do I know if a graphic card is third or second generation hw?

Regards, Ninja

04-12-2003, 11:54 AM
You can also use glGetString with GL_EXTENSIONS and GL_VERSION. And there is also wglGetExtensionsStringEXT for wgl specific extensions which may or may not be in the regular extension string.

Unfortunately I do not know how to distinguish between a card that supports 1.2 on hardware but supports 1.4 through drivers or supports specific extensions through hardware but other extensions through drivers.

Not sure if that is what you were looking for.

04-13-2003, 06:32 AM
Typically, a card that cant do something in hw, won't advertise the extension.

However, it might return 1.4 as the version but not support 3D textures for example.

Generation doesn't mean much since different vendors offer different capabilities in the same year.

It's also relative to the needs of an extension. vetex_program can be done on the cpu pretty fast so some vendors put it in the extension string.

Bottom line, it doesn't matter who is executing GL as long as you dont go below a certain FPS.

04-13-2003, 07:26 PM
Thanks V-Man.
Not sure if it helped Ninja, but it helps me. http://www.opengl.org/discussion_boards/ubb/biggrin.gif