Created
December 1, 2014 02:31
-
-
Save zeroeth/950cbf1529a287ae0aef to your computer and use it in GitHub Desktop.
gl version check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // get version info | |
| const GLubyte* renderer = glGetString (GL_RENDERER); // get renderer string | |
| const GLubyte* version = glGetString (GL_VERSION); // version as a string | |
| printf ("Renderer: %s\n", renderer); | |
| printf ("OpenGL version supported %s\n", version); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment