Display OpenGL driver information
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);
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
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...
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:
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement