MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / GetOpenGLVersion

Function GetOpenGLVersion

GTE/Graphics/GL46/GL46.cpp:36–42  ·  view source on GitHub ↗

OpenGL version information.

Source from the content-addressed store, hash-verified

34
35// OpenGL version information.
36static 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.

Calls 1

glGetIntegervFunction · 0.85

Tested by

no test coverage detected