How to get graphic card model ?

Started by
4 comments, last by GameDev.net 17 years, 10 months ago
hello, How can i get the graphic card name/model currently used (or a list of all cards available) in my opengl application ? Thanks
Advertisement
That would be the glGetString() function. The signature is as follows:

const GLubyte *glGetString(GLenum name);

You can retrieve information with the following constants:

GL_VENDOR
GL_RENDERER
GL_EXTENSIONS
GL_VERSION
Yeah..
Perfect, thanks a lot :-)
No prob, and I forgot to include a code example. I wish I had one when I first learned about the function!

std::ofstream out("c:\\log.txt");
out <
Oops... here you go.


std::ofstream out("c:\\data.txt");
out

Output:
ATI Technologies Inc.
1.3.1072 WinXP Release
RADEON 9200 Series DDR x86/SSE2

Yeah, I need to upgrade :)
God, i hate this forum.

	std::ofstream out("c:\\data.txt");	out << glGetString(GL_VENDOR) << std::endl;	out << glGetString(GL_VERSION) << std::endl;	out << glGetString(GL_RENDERER) << std::endl;	out.close();

This topic is closed to new replies.

Advertisement