How to get? the GLSL and OpenGL version.

You can get version from the OpenGL and GL Shading program by:

If don’t initialize the OpenGL you can get it:

Let’s try one simple example.

The output will be print on the shell.

Posted in Linux, OpenGL, Programming. Tagged with , , .