문제

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.

도움이 되었습니까?

해결책

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 );

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top