0025854: Visualization, TKOpenGl - add option to request Core profile 3.2+
[occt.git] / src / OpenGl / OpenGl_Caps.hxx
index 0b90e3e..8078e2e 100755 (executable)
@@ -74,6 +74,23 @@ public: //! @name context creation parameters
    */
   Standard_Boolean contextNoAccel;
 
+  /**
+   * Request backward-compatible GL context. This flag requires support in OpenGL driver.
+   *
+   * Backward-compatible profile includes deprecated functionality like FFP (fixed-function pipeline),
+   * and might be useful for compatibility with application OpenGL code.
+   *
+   * Most drivers support all features within backward-compatibility profile,
+   * but some limit functionality to OpenGL 2.1 (e.g. OS X) when core profile is not explicitly requested.
+   *
+   * Requires OpenGL 3.2+ drivers.
+   * Has no effect on OpenGL ES 2.0+ drivers (which do not provie FFP compatibility).
+   * Interacts with ffpEnable option, which should be disabled within core profile.
+   *
+   * ON by default.
+   */
+  Standard_Boolean contextCompatible;
+
 public: //! @name flags to activate verbose output
 
   //! Print GLSL program compilation/linkage warnings, if any. OFF by default.