How to read the version information from OpenGL: –

int[] OpenGLMajorVersion = new int[1];
gl.GetInteger(OpenGL.GL_MAJOR_VERSION, OpenGLMajorVersion);

int[] OpenGLMinorVersion = new int[1];
gl.GetInteger(OpenGL.GL_MAJOR_VERSION, OpenGLMinorVersion);

Console.WriteLine("OpenGL Version: " + OpenGLMajorVersion[0] + "." + OpenGLMinorVersion[0]);

 


Discover more from

Subscribe to get the latest posts sent to your email.

Leave a comment

Trending