Jump to content
  • Advertisement
Sign in to follow this  
lud2k

OpenGL How to get graphic card model ?

This topic is 4502 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hello, How can i get the graphic card name/model currently used (or a list of all cards available) in my opengl application ? Thanks

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
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

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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 <

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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 :)

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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();

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!