How to get graphic card model ?
hello,
How can i get the graphic card name/model currently used (or a list of all cards available) in my opengl application ?
Thanks
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
const GLubyte *glGetString(GLenum name);
You can retrieve information with the following constants:
GL_VENDOR
GL_RENDERER
GL_EXTENSIONS
GL_VERSION
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 <
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 :)
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
Popular Topics
Advertisement