MonobjcMonobjc Documented Class Library
CGLContextParameter Enumeration
NamespacesMonobjc.OpenGLCGLContextParameter

Specify parameters that apply to a specific rendering context.

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public enum CGLContextParameter
Public Enumeration CGLContextParameter
public enum class CGLContextParameter
Members
MemberDescription
kCGLCPSwapRectangle

Set or get the swap rectangle. The swap rectangle is represented as an array of four long values: {x, y, width, height}. For this rectangle to affect the outcome of calling the function CGLFlushDrawable, the context option kCGLCESwapRectangle must be enabled. For more information about kCGLCESwapRectangle, see “Context Options.”

Available in Mac OS X v10.0 and later.


kCGLCPSwapInterval

Set or get the swap interval. The swap interval is represented as one long value. If the swap interval is set to 0 (the default), CGLFlushDrawable executes as soon as possible, without regard to the vertical refresh rate of the monitor. If the swap interval is set to 1, the buffers are swapped only during the vertical retrace of the monitor.

Available in Mac OS X v10.0 and later.


kCGLCPDispatchTableSize

Set or get the dispatch table size.

Available in Mac OS X v10.3 and later.


kCGLCPClientStorage

Set or get an arbitrary 32-bit value. A typical usage would be to store a pointer to application-specific data associated with the context.

Available in Mac OS X v10.0 and later.


kCGLCPSurfaceTexture

Set the surface texture. Supply a surface ID, target, and internal format.

Available in Mac OS X v10.3 and later.


kCGLCPSurfaceOrder

Set or get the position of the OpenGL surface relative to the window. A value of 1 means that the position is above the window; a value of –1 specifies a position that is below the window.

Available in Mac OS X v10.2 and later.


kCGLCPSurfaceOpacity

Set or get the surface opacity. A value of 1 means the surface is opaque (the default); 0 means completely transparent.

Available in Mac OS X v10.2 and later.


kCGLCPSurfaceBackingSize

Set or get the height and width of the back buffer. You can use this to let the system scale an image automatically on swapping to a variable-size buffer. The back buffer size remains fixed at the size that you set up regardless of whether the image is resized to display larger onscreen.

Available in Mac OS X v10.3 and later.


kCGLCPSurfaceSurfaceVolatile

Set or get the volatile state of a surface.

Available in Mac OS X v10.3 and later.


kCGLCPReclaimResources

Enable or disable reclaiming resources.

Available in Mac OS X v10.4 and later.


kCGLCPCurrentRendererID

The current renderer ID. You can get this setting.

Available in Mac OS X v10.4 and later.


kCGLCPGPUVertexProcessing

The GPU is currently processing vertices with the GPU. You can get this state.

Available in Mac OS X v10.4 and later.


kCGLCPGPUFragmentProcessing

The CPU is currently processing fragments with the GPU. You can get this state.

Available in Mac OS X v10.4 and later.


kCGLCPHasDrawable

Returns a Boolean that indicates whether a drawable is attached to the context.

Available in Mac OS X v10.5 and later.


kCGLCPMPSwapsInFlight

The number of frames that the multithreaded OpenGL engine can process before stalling. The default value is 1. New frames are queued when the application calls CGLFlushDrawable. A larger number may improve overall performance, but adds latency between when a frame is rendered and when a frame is displayed. Interactive applications should leave this value at the default.

Available in Mac OS X v10.5 and later.


Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.OpenGL (Module: Monobjc.OpenGL)