OpenGL Backward Compatibility

I bought a graphics card that supports OpenGL 4.2. But I want to develop an application that should support OpenGL 2.0

Will my card support OpenGL 2.0 applications (backward compatibility)? Then, how to provide backward compatibility

I planned to use the GLUT / GLFW C ++ libraries.

+7
c ++ opengl video-card
source share
2 answers

https://developer.nvidia.com/opengl-driver - read about compatibility and that the "old" functionality will not be removed from the drivers.

In general, you can create your application in two modes:

  • Core This is a modern OpenGL that does not have fixed pipeline functionality. In freeGlut you can use glutInitContextFlags (GLUT_CORE_PROFILE); and glutInitContextVersion (4, 2); to use core opengl 4.2
  • Compatibility : All OpenGL 1.1 functions up to 4.2 are supported (in your case), and all these functions can be used in your code. By default, applications use this profile, or you can create it through glutInitContextFlags (GLUT_COMPATIBILITY_PROFILE );
+6
source share

Your graphics card will be backward compatible with the OpenGl 2.0 application. You don't have to do anything

+2
source share

All Articles