MonobjcMonobjc Documented Class Library
NSOpenGLContextParameter Enumeration
NamespacesMonobjc.AppKitNSOpenGLContextParameter

The following attribute names are used by setValues:forParameter: and getValues:forParameter::

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public enum NSOpenGLContextParameter
Public Enumeration NSOpenGLContextParameter
public enum class NSOpenGLContextParameter
Members
MemberDescription
NSOpenGLCPSwapRectangle

Sets or gets the swap rectangle.

The swap rectangle is represented as an array of four longs: {x, y, width, height}.

Available in Mac OS X v10.0 and later.


NSOpenGLCPSwapRectangleEnable

Enables or disables the swap rectangle in the context’s drawable object.

If enabled, the area that is affected by the flushBuffer method is restricted to a rectangle specified by the values of NSOpenGLCPSwapRectangle. 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.

Available in Mac OS X v10.0 and later.


NSOpenGLCPRasterizationEnable

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.


NSOpenGLCPSwapInterval

Sets or gets the swap interval.

The swap interval is represented as one long. If the swap interval is set to 0 (the default), the flushBuffer method 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.


NSOpenGLCPSurfaceOrder

Get or set the surface order.

If the surface order is set to 1 (the default), the order is above the window (default). If the value is –1, the order is below the window.

Available in Mac OS X v10.2 and later.


NSOpenGLCPSurfaceOpacity

Set or get the surface opacity.

If the opacity is set to 1 (the default), the surface is opaque. If the value is 0, the surface is non-opaque.

Available in Mac OS X v10.2 and later.


NSOpenGLCPStateValidation

If enabled, OpenGL inspects the context state each time the update method 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. This is useful when using a single monitor system to test that an application performs correctly on a multiple-monitor system.

Available in Mac OS X v10.0 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.AppKit (Module: Monobjc.AppKit)