OpenGL Backward compatibility
Asked Answered
D

2

9

I have purchased a graphics card which supports OpenGL 4.2. But I want to develop an application which should support OpenGL 2.0

Does my card will support OpenGL 2.0 apps(Backward compatibility)?? Then how to ensure backwards-compatibility

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

Diphenylamine answered 12/8, 2013 at 10:10 Comment(0)
L
7

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

In general you can create your application in two modes:

  • Core: This is modern OpenGL, no fixed pipeline functionality. In freeGlut you can use glutInitContextFlags (GLUT_CORE_PROFILE); and glutInitContextVersion (4, 2); to use core opengl 4.2
  • Compatibility: all functionalities from OpenGL 1.1 up to 4.2 (in your case) are supported and all those features can be used in your code. By default apps use this profile, or you can create it via glutInitContextFlags (GLUT_COMPATIBILITY_PROFILE );
Latinalatinate answered 12/8, 2013 at 10:42 Comment(0)
S
2

Your graphic card will have the backward compatibility with OpenGl 2.0 app. You do not need to do anything special

Sharpedged answered 12/8, 2013 at 10:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.