OpenGL version information.
| 34 | |
| 35 | // OpenGL version information. |
| 36 | static int GetOpenGLVersion() |
| 37 | { |
| 38 | GLint major = 0, minor = 0; |
| 39 | glGetIntegerv(GL_MAJOR_VERSION, &major); |
| 40 | glGetIntegerv(GL_MINOR_VERSION, &minor); |
| 41 | return 10 * major + minor; |
| 42 | } |
| 43 | |
| 44 | // Support for querying the OpenGL function pointers. Each platform must |
| 45 | // provide its own GetOpenGLFunctionPointer. |
no test coverage detected