Specify options that affect a rendering context.
Available in Mac OS X v10.0 and later.
C# | Visual Basic | Visual C++ |
public enum CGLContextEnable
Public Enumeration CGLContextEnable
public enum class CGLContextEnable
Member | Description |
---|---|
kCGLCESwapRectangle | If enabled, the area of the drawable object that is affected by CGLFlushDrawable is restricted to a rectangle specified by the values of kCGLCPSwapRectangle. However, the portion of the drawable object that lies outside of the swap rectangle may still be flushed to the screen by a visibility change or other user interface action. To set or get the values of kCGLCPSwapRectangle, use the functions CGLSetParameter or CGLGetParameter, respectively. For more information about kCGLCPSwapRectangle, see “Context Parameters.” Available in Mac OS X v10.0 and later. |
kCGLCERasterization | If disabled, all rasterization of 2D and 3D primitives is disabled. This state is useful for debugging and to characterize the performance of an OpenGL driver without actually rendering. Available in Mac OS X v10.0 and later. |
kCGLCEStateValidation | If enabled, OpenGL inspects the context state each time that CGLSetVirtualScreen is called to ensure that it is in an appropriate state for switching between renderers. Normally, the state is inspected only when it is actually necessary to switch renderers. In CGL, a renderer is switched only if you call CGLSetVirtualScreen with a virtual screen number different from the current one. Available in Mac OS X v10.0 and later. |
kCGLCESurfaceBackingSize | If enabled, overrides the surface backing size. Available in Mac OS X v10.3 and later. |
kCGLCEDisplayListOptimization | If disabled, turns off optimization for the display list. Available in Mac OS X v10.3 and later. |
kCGLCEMPEngine | If enabled, OpenGL performs its own internal calculations on a separate thread. Available in Mac OS X v10.4 and later. |
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)