Advertisement

Display OpenGL driver information

Started by December 19, 2002 02:35 AM
3 comments, last by The Snake 22 years, 2 months ago
Hi, I would like to display information about the system my OpenGL application is running on. So if the user opens the info dialog, it should say: OpenGL -verion: 1.1 -videocard: nvidia riva i have searched newsgroups and on the internet, but wasn''t able to find anything, but it know it exists. can anybody help me with a link or some code, many tnx.
glGetString(GL_VERSION);
glGetString(GL_VENDOR);
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
Advertisement
is there also a way to do this in C++ win32?

i need this information, and the name of the videocard/driver and the running OS...
In a word: no. Windows (2000 and above) won''t let you tamper with the video card directly. Solution: write your own drivers. Why would want to get the OpenGL version if you''re presuming OpenGL drivers aren''t installed at all? glGetString() is what you''re looking for - works both for Windows and Linux. As for the OS version, consider this for Windows:


  OSVERSIONINFO OSVersion;OSVersion.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);if(!GetVersionEx(&OSVersion))   return (FALSE);  


PS - doesn''t matter in which language (C++, Java, etc) you''re calling the functions in, the results are the same - there are only syntactic differences.

Hope this helps,
Crispy
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
considering the opengl info, tnx, i was to fast, this works perfect. also regarding the os version tnx, i''ll check it out directly...

This topic is closed to new replies.

Advertisement