Begginer. How to know OPENGL version and deprecated commands

Started by
2 comments, last by tonnot 12 years, 9 months ago
I'm a little confused with OPENGL version / especification and deprecated commands.
Where or how can I know the version / especification of my system / graphic adapter ?
What kynd of information about this are depend on the system and depend on the graphic adapter?
One time I know my version /especification , where can I know the deprecated commands ?
For example I think to have seen that glbegin and end are deprecated in some opengl version? and something like with display lists ?
Any help ? Thanks
Advertisement

I'm a little confused with OPENGL version / especification and deprecated commands.
Where or how can I know the version / especification of my system / graphic adapter ?
What kynd of information about this are depend on the system and depend on the graphic adapter?

The version depends only on the graphics driver installed. Whatever version it provides is the version you have access to. You can check the version of the rendering context once it has been created by calling glGetString and GL_VERSION.

One time I know my version /especification , where can I know the deprecated commands ?
For example I think to have seen that glbegin and end are deprecated in some opengl version? and something like with display lists ?

Here is a reference card with all functions listed, and those marked as deprecated are removed from the core profile. If you create the rendering context yourself, you know whether you have a core profile rendering context or not, because you have to explicitly state whether you want a core profile or a backward compatible rendering context. If you're using a third party windowing library, check the documentation how to control the profile, or what kind of profile it creates.
http://www.opengl.org/wiki/FAQ#How_do_I_tell_what_version_of_OpenGL_I.27m_using.3F

The specification talks about the functions. You would have to do a search for whatever function you are interested in
http://www.opengl.org

or use that reference card that BrotherBob posted.
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);
Thanks !

This topic is closed to new replies.

Advertisement