Class CGL
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains the function pointers loaded fromGL.getFunctionProvider(). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDepth and stencil buffer depths.static final intDepth and stencil buffer depths.static final intDepth and stencil buffer depths.static final intDepth and stencil buffer depths.static final intDepth and stencil buffer depths.static final intDepth and stencil buffer depths.static final intDepth and stencil buffer depths.static final intDepth and stencil buffer depths.static final intDepth and stencil buffer depths.static final intDepth and stencil buffer depths.static final intDepth and stencil buffer depths.static final intDepth and stencil buffer depths.static final intDepth and stencil buffer depths.static final intDepth and stencil buffer depths.static final intDepth and stencil buffer depths.static final intDepth and stencil buffer depths.static final intDepth and stencil buffer depths.static final intColor and accumulation buffer formats.static final intColor and accumulation buffer formats.static final intColor and accumulation buffer formats.static final intColor and accumulation buffer formats.static final intColor and accumulation buffer formats.static final intCGL error return values.static final intCGL error return values.static final intCGL error return values.static final intCGL error return values.static final intCGL error return values.static final intCGL error return values.static final intCGL error return values.static final intCGL error return values.static final intCGL error return values.static final intCGL error return values.static final intCGL error return values.static final intCGL error return values.static final intCGL error return values.static final intCGL error return values.static final intCGL error return values.static final intCGL error return values.static final intCGL error return values.static final intCGL error return values.static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intParameter names forSetParameterandGetParameter.static final intParameter names forSetParameterandGetParameter.static final intParameter names forSetParameterandGetParameter.static final intParameter names forSetParameterandGetParameter.static final intParameter names forSetParameterandGetParameter.static final intParameter names forSetParameterandGetParameter.static final intParameter names forSetParameterandGetParameter.static final intParameter names forSetParameterandGetParameter.static final intParameter names forSetParameterandGetParameter.static final intParameter names forSetParameterandGetParameter.static final intParameter names forSetParameterandGetParameter.static final intParameter names forSetParameterandGetParameter.static final intParameter names forSetParameterandGetParameter.static final intParameter names forSetParameterandGetParameter.static final intParameter names forSetParameterandGetParameter.static final intBuffer modes.static final intOption names forSetGlobalOptionandGetGlobalOption.static final intOption names forSetGlobalOptionandGetGlobalOption.static final intOption names forSetGlobalOptionandGetGlobalOption.static final intOption names forSetGlobalOptionandGetGlobalOption.static final intOption names forSetGlobalOptionandGetGlobalOption.static final intOption names forSetGlobalOptionandGetGlobalOption.static final intBuffer modes.static final intSampling modes.static final intCGL error return values.static final intOpenGL Implementation Profiles.static final intOpenGL Implementation Profiles.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intAttribute names forChoosePixelFormatandDescribePixelFormat.static final intColor and accumulation buffer formats.static final intColor and accumulation buffer formats.static final intColor and accumulation buffer formats.static final intColor and accumulation buffer formats.static final intColor and accumulation buffer formats.static final intColor and accumulation buffer formats.static final intColor and accumulation buffer formats.static final intColor and accumulation buffer formats.static final intColor and accumulation buffer formats.static final intColor and accumulation buffer formats.static final intColor and accumulation buffer formats.static final intColor and accumulation buffer formats.static final intColor and accumulation buffer formats.static final intColor and accumulation buffer formats.static final intColor and accumulation buffer formats.static final intColor and accumulation buffer formats.static final intColor and accumulation buffer formats.static final intColor and accumulation buffer formats.static final intColor and accumulation buffer formats.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intProperty names forDescribeRenderer.static final intBuffer modes.static final intBuffer modes.static final intSampling modes.static final intBuffer modes. -
Method Summary
Modifier and TypeMethodDescriptionstatic intCGLChoosePixelFormat(int[] attribs, org.lwjgl.PointerBuffer pix, int[] npix) Array version of:ChoosePixelFormatstatic intCGLChoosePixelFormat(IntBuffer attribs, org.lwjgl.PointerBuffer pix, IntBuffer npix) Creates a pixel format object that satisfies the constraints of the specified buffer and renderer attributes.static intCGLClearDrawable(long ctx) Disassociates a rendering context from any drawable objects attached to it.static intCGLCopyContext(long src, long dst, int mask) Copies the specified state variables from one rendering context to another.static intCGLCreateContext(long pix, long share, org.lwjgl.PointerBuffer ctx) Creates a CGL rendering context.static intCGLCreatePBuffer(int width, int height, int target, int internalFormat, int max_level, org.lwjgl.PointerBuffer pbuffer) Creates a pixel buffer of the specified size, compatible with the specified texture target.static intCGLDescribePBuffer(long obj, int[] width, int[] height, int[] target, int[] internalFormat, int[] mipmap) Array version of:DescribePBufferstatic intCGLDescribePBuffer(long obj, IntBuffer width, IntBuffer height, IntBuffer target, IntBuffer internalFormat, IntBuffer mipmap) Retrieves information that describes the specified pixel buffer object.static intCGLDescribePixelFormat(long pix, int pix_num, int attrib, int[] value) Array version of:DescribePixelFormatstatic intCGLDescribePixelFormat(long pix, int pix_num, int attrib, IntBuffer value) Retrieves the values of an attribute associated with a pixel format object.static intCGLDescribeRenderer(long rend, int rend_num, int prop, int[] value) Array version of:DescribeRendererstatic intCGLDescribeRenderer(long rend, int rend_num, int prop, IntBuffer value) Obtains the value associated with a renderer property.static intCGLDestroyContext(long ctx) Frees the resources associated with a rendering context.static intCGLDestroyPBuffer(long pbuffer) Releases the resources associated with a pixel buffer object.static intCGLDestroyPixelFormat(long pix) Frees the memory associated with a pixel format object.static intCGLDestroyRendererInfo(long rend) Frees resources associated with a renderer information object.static intCGLDisable(long ctx, int pname) Disables an option for a rendering context.static intCGLEnable(long ctx, int pname) Enables an option for a rendering context.static StringCGLErrorString(int error) Returns a string that describes the specified result code.static intCGLFlushDrawable(long ctx) Copies the back buffer of a double-buffered context to the front buffer.static intCGLGetContextRetainCount(long ctx) Returns the current retain count of a CGL rendering context.static longReturns the current rendering context.static intCGLGetGlobalOption(int pname, int[] params) Array version of:GetGlobalOptionstatic intCGLGetGlobalOption(int pname, IntBuffer params) Retrieves the value of a global option.static intCGLGetOffScreen(long ctx, int[] width, int[] height, int[] rowbytes, org.lwjgl.PointerBuffer baseaddr) Array version of:GetOffScreenstatic intCGLGetOffScreen(long ctx, IntBuffer width, IntBuffer height, IntBuffer rowbytes, org.lwjgl.PointerBuffer baseaddr) Retrieves an offscreen buffer and its parameters for a specified rendering context.static intCGLGetParameter(long ctx, int pname, int[] params) Array version of:GetParameterstatic intCGLGetParameter(long ctx, int pname, IntBuffer params) Retrieves the value of a rendering context parameter.static intCGLGetPBuffer(long ctx, org.lwjgl.PointerBuffer pbuffer, int[] face, int[] level, int[] screen) Array version of:GetPBufferstatic intCGLGetPBuffer(long ctx, org.lwjgl.PointerBuffer pbuffer, IntBuffer face, IntBuffer level, IntBuffer screen) Retrieves a pixel buffer and its parameters for a specified rendering context.static intCGLGetPBufferRetainCount(long pbuffer) Returns the retain count of a pixel buffer object.static longCGLGetPixelFormat(long ctx) Retrieves the current pixel format associated with a CGL rendering context.static intCGLGetPixelFormatRetainCount(long pix) Returns the retain count of a pixel format object.static longCGLGetShareGroup(long ctx) Returns the sharegroup of the specified rendering context.static voidCGLGetVersion(int[] majorvers, int[] minorvers) Array version of:GetVersionstatic voidCGLGetVersion(IntBuffer majorvers, IntBuffer minorvers) Gets the major and minor version numbers of the CGL library.static intCGLGetVirtualScreen(long ctx, int[] screen) Array version of:GetVirtualScreenstatic intCGLGetVirtualScreen(long ctx, IntBuffer screen) Gets the current virtual screen number associated with a rendering context.static intCGLIsEnabled(long ctx, int pname, int[] enable) Array version of:IsEnabledstatic intCGLIsEnabled(long ctx, int pname, IntBuffer enable) Reports whether an option is enabled for a rendering context.static intCGLLockContext(long context) Locks a CGL rendering context.static intCGLQueryRendererInfo(int display_mask, org.lwjgl.PointerBuffer rend, int[] nrend) Array version of:QueryRendererInfostatic intCGLQueryRendererInfo(int display_mask, org.lwjgl.PointerBuffer rend, IntBuffer nrend) Creates a renderer information object that contains properties and values for renderers able to drive all the specified displays in a given display mask.static voidCGLReleaseContext(long ctx) Decrements the retain count on a CGL rendering context.static voidCGLReleasePBuffer(long pbuffer) Releases the resources associated with a pixel buffer object.static voidCGLReleasePixelFormat(long pix) Decrements the reference count of a pixel format object.static longCGLRetainContext(long ctx) Increments the retain count on a CGL rendering context.static longCGLRetainPBuffer(long pbuffer) Increments the retain count on a pixel buffer object.static longCGLRetainPixelFormat(long pix) Increments the receiver's reference count.static intCGLSetCurrentContext(long context) Sets the specified rendering context as the current rendering context.static intCGLSetFullScreen(long ctx) Attaches a rendering context to its full-screen drawable object.static intCGLSetFullScreenOnDisplay(long ctx, int display_mask) Attaches a rendering context to a full-screen drawable object." +static intCGLSetGlobalOption(int pname, int param) Sets the value of a global option.static intCGLSetGlobalOption(int pname, int[] params) Array version of:SetGlobalOptionstatic intCGLSetGlobalOption(int pname, IntBuffer params) Sets the value of a global option.static intCGLSetOffScreen(long ctx, int width, int height, int rowbytes, ByteBuffer baseaddr) Attaches a rendering context to an offscreen buffer.static intCGLSetParameter(long ctx, int pname, int param) Sets the value of a rendering context parameter.static intCGLSetParameter(long ctx, int pname, int[] params) Array version of:SetParameterstatic intCGLSetParameter(long ctx, int pname, IntBuffer params) Sets the value of a rendering context parameter.static intCGLSetPBuffer(long ctx, long pbuffer, int face, int level, int screen) Attaches a pixel buffer object to a rendering context.static intCGLSetVirtualScreen(long ctx, int screen) Forces subsequent OpenGL commands to the specified virtual screen.static intCGLTexImagePBuffer(long ctx, long pbuffer, int source) Binds the contents of a pixel buffer to a data source for a texture object.static intCGLUnlockContext(long context) Unlocks a CGL rendering context.static intCGLUpdateContext(long ctx) Synchronizes new renderer state to that of the application contextstatic intnCGLChoosePixelFormat(long attribs, long pix, long npix) Unsafe version of:ChoosePixelFormatstatic intnCGLCreateContext(long pix, long share, long ctx) Unsafe version of:CreateContextstatic intnCGLCreatePBuffer(int width, int height, int target, int internalFormat, int max_level, long pbuffer) Unsafe version of:CreatePBufferstatic intnCGLDescribePBuffer(long obj, long width, long height, long target, long internalFormat, long mipmap) Unsafe version of:DescribePBufferstatic intnCGLDescribePixelFormat(long pix, int pix_num, int attrib, long value) Unsafe version of:DescribePixelFormatstatic intnCGLDescribeRenderer(long rend, int rend_num, int prop, long value) Unsafe version of:DescribeRendererstatic longnCGLErrorString(int error) Unsafe version of:ErrorStringstatic intnCGLGetGlobalOption(int pname, long params) Unsafe version of:GetGlobalOptionstatic intnCGLGetOffScreen(long ctx, long width, long height, long rowbytes, long baseaddr) Unsafe version of:GetOffScreenstatic intnCGLGetParameter(long ctx, int pname, long params) Unsafe version of:GetParameterstatic intnCGLGetPBuffer(long ctx, long pbuffer, long face, long level, long screen) Unsafe version of:GetPBufferstatic voidnCGLGetVersion(long majorvers, long minorvers) Unsafe version of:GetVersionstatic intnCGLGetVirtualScreen(long ctx, long screen) Unsafe version of:GetVirtualScreenstatic intnCGLIsEnabled(long ctx, int pname, long enable) Unsafe version of:IsEnabledstatic intnCGLQueryRendererInfo(int display_mask, long rend, long nrend) Unsafe version of:QueryRendererInfostatic intnCGLSetGlobalOption(int pname, long params) Unsafe version of:SetGlobalOptionstatic intnCGLSetOffScreen(long ctx, int width, int height, int rowbytes, long baseaddr) Unsafe version of:SetOffScreenstatic intnCGLSetParameter(long ctx, int pname, long params) Unsafe version of:SetParameter
-
Field Details
-
kCGLPFAAllRenderers
public static final int kCGLPFAAllRenderersAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFATripleBuffer
public static final int kCGLPFATripleBufferAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFADoubleBuffer
public static final int kCGLPFADoubleBufferAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAStereo
public static final int kCGLPFAStereoAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAColorSize
public static final int kCGLPFAColorSizeAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAAlphaSize
public static final int kCGLPFAAlphaSizeAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFADepthSize
public static final int kCGLPFADepthSizeAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAStencilSize
public static final int kCGLPFAStencilSizeAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAMinimumPolicy
public static final int kCGLPFAMinimumPolicyAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAMaximumPolicy
public static final int kCGLPFAMaximumPolicyAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFASampleBuffers
public static final int kCGLPFASampleBuffersAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFASamples
public static final int kCGLPFASamplesAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAColorFloat
public static final int kCGLPFAColorFloatAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAMultisample
public static final int kCGLPFAMultisampleAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFASupersample
public static final int kCGLPFASupersampleAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFASampleAlpha
public static final int kCGLPFASampleAlphaAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFARendererID
public static final int kCGLPFARendererIDAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFASingleRenderer
public static final int kCGLPFASingleRendererAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFANoRecovery
public static final int kCGLPFANoRecoveryAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAAccelerated
public static final int kCGLPFAAcceleratedAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAClosestPolicy
public static final int kCGLPFAClosestPolicyAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFABackingStore
public static final int kCGLPFABackingStoreAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFABackingVolatile
public static final int kCGLPFABackingVolatileAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFADisplayMask
public static final int kCGLPFADisplayMaskAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAAllowOfflineRenderers
public static final int kCGLPFAAllowOfflineRenderersAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAAcceleratedCompute
public static final int kCGLPFAAcceleratedComputeAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAOpenGLProfile
public static final int kCGLPFAOpenGLProfileAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFASupportsAutomaticGraphicsSwitching
public static final int kCGLPFASupportsAutomaticGraphicsSwitchingAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAVirtualScreenCount
public static final int kCGLPFAVirtualScreenCountAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAAuxBuffers
public static final int kCGLPFAAuxBuffersAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAAccumSize
public static final int kCGLPFAAccumSizeAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAOffScreen
public static final int kCGLPFAOffScreenAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAAuxDepthStencil
public static final int kCGLPFAAuxDepthStencilAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAWindow
public static final int kCGLPFAWindowAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFACompliant
public static final int kCGLPFACompliantAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAPBuffer
public static final int kCGLPFAPBufferAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFARemotePBuffer
public static final int kCGLPFARemotePBufferAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFARobust
public static final int kCGLPFARobustAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAMPSafe
public static final int kCGLPFAMPSafeAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAMultiScreen
public static final int kCGLPFAMultiScreenAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLPFAFullScreen
public static final int kCGLPFAFullScreenAttribute names forChoosePixelFormatandDescribePixelFormat.- See Also:
-
kCGLRPOffScreen
public static final int kCGLRPOffScreenProperty names forDescribeRenderer.- See Also:
-
kCGLRPRendererID
public static final int kCGLRPRendererIDProperty names forDescribeRenderer.- See Also:
-
kCGLRPAccelerated
public static final int kCGLRPAcceleratedProperty names forDescribeRenderer.- See Also:
-
kCGLRPBackingStore
public static final int kCGLRPBackingStoreProperty names forDescribeRenderer.- See Also:
-
kCGLRPWindow
public static final int kCGLRPWindowProperty names forDescribeRenderer.- See Also:
-
kCGLRPCompliant
public static final int kCGLRPCompliantProperty names forDescribeRenderer.- See Also:
-
kCGLRPDisplayMask
public static final int kCGLRPDisplayMaskProperty names forDescribeRenderer.- See Also:
-
kCGLRPBufferModes
public static final int kCGLRPBufferModesProperty names forDescribeRenderer.- See Also:
-
kCGLRPColorModes
public static final int kCGLRPColorModesProperty names forDescribeRenderer.- See Also:
-
kCGLRPAccumModes
public static final int kCGLRPAccumModesProperty names forDescribeRenderer.- See Also:
-
kCGLRPDepthModes
public static final int kCGLRPDepthModesProperty names forDescribeRenderer.- See Also:
-
kCGLRPStencilModes
public static final int kCGLRPStencilModesProperty names forDescribeRenderer.- See Also:
-
kCGLRPMaxAuxBuffers
public static final int kCGLRPMaxAuxBuffersProperty names forDescribeRenderer.- See Also:
-
kCGLRPMaxSampleBuffers
public static final int kCGLRPMaxSampleBuffersProperty names forDescribeRenderer.- See Also:
-
kCGLRPMaxSamples
public static final int kCGLRPMaxSamplesProperty names forDescribeRenderer.- See Also:
-
kCGLRPSampleModes
public static final int kCGLRPSampleModesProperty names forDescribeRenderer.- See Also:
-
kCGLRPSampleAlpha
public static final int kCGLRPSampleAlphaProperty names forDescribeRenderer.- See Also:
-
kCGLRPVideoMemory
public static final int kCGLRPVideoMemoryProperty names forDescribeRenderer.- See Also:
-
kCGLRPTextureMemory
public static final int kCGLRPTextureMemoryProperty names forDescribeRenderer.- See Also:
-
kCGLRPGPUVertProcCapable
public static final int kCGLRPGPUVertProcCapableProperty names forDescribeRenderer.- See Also:
-
kCGLRPGPUFragProcCapable
public static final int kCGLRPGPUFragProcCapableProperty names forDescribeRenderer.- See Also:
-
kCGLRPRendererCount
public static final int kCGLRPRendererCountProperty names forDescribeRenderer.- See Also:
-
kCGLRPOnline
public static final int kCGLRPOnlineProperty names forDescribeRenderer.- See Also:
-
kCGLRPAcceleratedCompute
public static final int kCGLRPAcceleratedComputeProperty names forDescribeRenderer.- See Also:
-
kCGLRPVideoMemoryMegabytes
public static final int kCGLRPVideoMemoryMegabytesProperty names forDescribeRenderer.- See Also:
-
kCGLRPTextureMemoryMegabytes
public static final int kCGLRPTextureMemoryMegabytesProperty names forDescribeRenderer.- See Also:
-
kCGLRPRobust
public static final int kCGLRPRobustProperty names forDescribeRenderer.- See Also:
-
kCGLRPMPSafe
public static final int kCGLRPMPSafeProperty names forDescribeRenderer.- See Also:
-
kCGLRPMultiScreen
public static final int kCGLRPMultiScreenProperty names forDescribeRenderer.- See Also:
-
kCGLRPFullScreen
public static final int kCGLRPFullScreenProperty names forDescribeRenderer.- See Also:
-
kCGLCESwapRectangle
public static final int kCGLCESwapRectangle- See Also:
-
kCGLCESwapLimit
public static final int kCGLCESwapLimit- See Also:
-
kCGLCERasterization
public static final int kCGLCERasterization- See Also:
-
kCGLCEStateValidation
public static final int kCGLCEStateValidation- See Also:
-
kCGLCESurfaceBackingSize
public static final int kCGLCESurfaceBackingSize- See Also:
-
kCGLCEDisplayListOptimization
public static final int kCGLCEDisplayListOptimization- See Also:
-
kCGLCEMPEngine
public static final int kCGLCEMPEngine- See Also:
-
kCGLCPSwapRectangle
public static final int kCGLCPSwapRectangleParameter names forSetParameterandGetParameter.- See Also:
-
kCGLCPSwapInterval
public static final int kCGLCPSwapIntervalParameter names forSetParameterandGetParameter.- See Also:
-
kCGLCPDispatchTableSize
public static final int kCGLCPDispatchTableSizeParameter names forSetParameterandGetParameter.- See Also:
-
kCGLCPClientStorage
public static final int kCGLCPClientStorageParameter names forSetParameterandGetParameter.- See Also:
-
kCGLCPSurfaceTexture
public static final int kCGLCPSurfaceTextureParameter names forSetParameterandGetParameter.- See Also:
-
kCGLCPSurfaceOrder
public static final int kCGLCPSurfaceOrderParameter names forSetParameterandGetParameter.- See Also:
-
kCGLCPSurfaceOpacity
public static final int kCGLCPSurfaceOpacityParameter names forSetParameterandGetParameter.- See Also:
-
kCGLCPSurfaceBackingSize
public static final int kCGLCPSurfaceBackingSizeParameter names forSetParameterandGetParameter.- See Also:
-
kCGLCPSurfaceSurfaceVolatile
public static final int kCGLCPSurfaceSurfaceVolatileParameter names forSetParameterandGetParameter.- See Also:
-
kCGLCPReclaimResources
public static final int kCGLCPReclaimResourcesParameter names forSetParameterandGetParameter.- See Also:
-
kCGLCPCurrentRendererID
public static final int kCGLCPCurrentRendererIDParameter names forSetParameterandGetParameter.- See Also:
-
kCGLCPGPUVertexProcessing
public static final int kCGLCPGPUVertexProcessingParameter names forSetParameterandGetParameter.- See Also:
-
kCGLCPGPUFragmentProcessing
public static final int kCGLCPGPUFragmentProcessingParameter names forSetParameterandGetParameter.- See Also:
-
kCGLCPHasDrawable
public static final int kCGLCPHasDrawableParameter names forSetParameterandGetParameter.- See Also:
-
kCGLCPMPSwapsInFlight
public static final int kCGLCPMPSwapsInFlightParameter names forSetParameterandGetParameter.- See Also:
-
kCGLGOFormatCacheSize
public static final int kCGLGOFormatCacheSizeOption names forSetGlobalOptionandGetGlobalOption.- See Also:
-
kCGLGOClearFormatCache
public static final int kCGLGOClearFormatCacheOption names forSetGlobalOptionandGetGlobalOption.- See Also:
-
kCGLGORetainRenderers
public static final int kCGLGORetainRenderersOption names forSetGlobalOptionandGetGlobalOption.- See Also:
-
kCGLGOResetLibrary
public static final int kCGLGOResetLibraryOption names forSetGlobalOptionandGetGlobalOption.- See Also:
-
kCGLGOUseErrorHandler
public static final int kCGLGOUseErrorHandlerOption names forSetGlobalOptionandGetGlobalOption.- See Also:
-
kCGLGOUseBuildCache
public static final int kCGLGOUseBuildCacheOption names forSetGlobalOptionandGetGlobalOption.- See Also:
-
kCGLOGLPVersion_Legacy
public static final int kCGLOGLPVersion_LegacyOpenGL Implementation Profiles.- See Also:
-
kCGLOGLPVersion_3_2_Core
public static final int kCGLOGLPVersion_3_2_CoreOpenGL Implementation Profiles.- See Also:
-
kCGLNoError
public static final int kCGLNoErrorCGL error return values.- See Also:
-
kCGLBadAttribute
public static final int kCGLBadAttributeCGL error return values.- See Also:
-
kCGLBadProperty
public static final int kCGLBadPropertyCGL error return values.- See Also:
-
kCGLBadPixelFormat
public static final int kCGLBadPixelFormatCGL error return values.- See Also:
-
kCGLBadRendererInfo
public static final int kCGLBadRendererInfoCGL error return values.- See Also:
-
kCGLBadContext
public static final int kCGLBadContextCGL error return values.- See Also:
-
kCGLBadDrawable
public static final int kCGLBadDrawableCGL error return values.- See Also:
-
kCGLBadDisplay
public static final int kCGLBadDisplayCGL error return values.- See Also:
-
kCGLBadState
public static final int kCGLBadStateCGL error return values.- See Also:
-
kCGLBadValue
public static final int kCGLBadValueCGL error return values.- See Also:
-
kCGLBadMatch
public static final int kCGLBadMatchCGL error return values.- See Also:
-
kCGLBadEnumeration
public static final int kCGLBadEnumerationCGL error return values.- See Also:
-
kCGLBadOffScreen
public static final int kCGLBadOffScreenCGL error return values.- See Also:
-
kCGLBadFullScreen
public static final int kCGLBadFullScreenCGL error return values.- See Also:
-
kCGLBadWindow
public static final int kCGLBadWindowCGL error return values.- See Also:
-
kCGLBadAddress
public static final int kCGLBadAddressCGL error return values.- See Also:
-
kCGLBadCodeModule
public static final int kCGLBadCodeModuleCGL error return values.- See Also:
-
kCGLBadAlloc
public static final int kCGLBadAllocCGL error return values.- See Also:
-
kCGLBadConnection
public static final int kCGLBadConnectionCGL error return values.- See Also:
-
kCGLMonoscopicBit
public static final int kCGLMonoscopicBitBuffer modes.- See Also:
-
kCGLStereoscopicBit
public static final int kCGLStereoscopicBitBuffer modes.- See Also:
-
kCGLSingleBufferBit
public static final int kCGLSingleBufferBitBuffer modes.- See Also:
-
kCGLDoubleBufferBit
public static final int kCGLDoubleBufferBitBuffer modes.- See Also:
-
kCGLTripleBufferBit
public static final int kCGLTripleBufferBitBuffer modes.- See Also:
-
kCGL0Bit
public static final int kCGL0BitDepth and stencil buffer depths.- See Also:
-
kCGL1Bit
public static final int kCGL1BitDepth and stencil buffer depths.- See Also:
-
kCGL2Bit
public static final int kCGL2BitDepth and stencil buffer depths.- See Also:
-
kCGL3Bit
public static final int kCGL3BitDepth and stencil buffer depths.- See Also:
-
kCGL4Bit
public static final int kCGL4BitDepth and stencil buffer depths.- See Also:
-
kCGL5Bit
public static final int kCGL5BitDepth and stencil buffer depths.- See Also:
-
kCGL6Bit
public static final int kCGL6BitDepth and stencil buffer depths.- See Also:
-
kCGL8Bit
public static final int kCGL8BitDepth and stencil buffer depths.- See Also:
-
kCGL10Bit
public static final int kCGL10BitDepth and stencil buffer depths.- See Also:
-
kCGL12Bit
public static final int kCGL12BitDepth and stencil buffer depths.- See Also:
-
kCGL16Bit
public static final int kCGL16BitDepth and stencil buffer depths.- See Also:
-
kCGL24Bit
public static final int kCGL24BitDepth and stencil buffer depths.- See Also:
-
kCGL32Bit
public static final int kCGL32BitDepth and stencil buffer depths.- See Also:
-
kCGL48Bit
public static final int kCGL48BitDepth and stencil buffer depths.- See Also:
-
kCGL64Bit
public static final int kCGL64BitDepth and stencil buffer depths.- See Also:
-
kCGL96Bit
public static final int kCGL96BitDepth and stencil buffer depths.- See Also:
-
kCGL128Bit
public static final int kCGL128BitDepth and stencil buffer depths.- See Also:
-
kCGLRGB444Bit
public static final int kCGLRGB444BitColor and accumulation buffer formats.- See Also:
-
kCGLARGB4444Bit
public static final int kCGLARGB4444BitColor and accumulation buffer formats.- See Also:
-
kCGLRGB444A8Bit
public static final int kCGLRGB444A8BitColor and accumulation buffer formats.- See Also:
-
kCGLRGB555Bit
public static final int kCGLRGB555BitColor and accumulation buffer formats.- See Also:
-
kCGLARGB1555Bit
public static final int kCGLARGB1555BitColor and accumulation buffer formats.- See Also:
-
kCGLRGB555A8Bit
public static final int kCGLRGB555A8BitColor and accumulation buffer formats.- See Also:
-
kCGLRGB565Bit
public static final int kCGLRGB565BitColor and accumulation buffer formats.- See Also:
-
kCGLRGB565A8Bit
public static final int kCGLRGB565A8BitColor and accumulation buffer formats.- See Also:
-
kCGLRGB888Bit
public static final int kCGLRGB888BitColor and accumulation buffer formats.- See Also:
-
kCGLARGB8888Bit
public static final int kCGLARGB8888BitColor and accumulation buffer formats.- See Also:
-
kCGLRGB888A8Bit
public static final int kCGLRGB888A8BitColor and accumulation buffer formats.- See Also:
-
kCGLRGB101010Bit
public static final int kCGLRGB101010BitColor and accumulation buffer formats.- See Also:
-
kCGLARGB2101010Bit
public static final int kCGLARGB2101010BitColor and accumulation buffer formats.- See Also:
-
kCGLRGB101010_A8Bit
public static final int kCGLRGB101010_A8BitColor and accumulation buffer formats.- See Also:
-
kCGLRGB121212Bit
public static final int kCGLRGB121212BitColor and accumulation buffer formats.- See Also:
-
kCGLARGB12121212Bit
public static final int kCGLARGB12121212BitColor and accumulation buffer formats.- See Also:
-
kCGLRGB161616Bit
public static final int kCGLRGB161616BitColor and accumulation buffer formats.- See Also:
-
kCGLRGBA16161616Bit
public static final int kCGLRGBA16161616BitColor and accumulation buffer formats.- See Also:
-
kCGLRGBFloat64Bit
public static final int kCGLRGBFloat64BitColor and accumulation buffer formats.- See Also:
-
kCGLRGBAFloat64Bit
public static final int kCGLRGBAFloat64BitColor and accumulation buffer formats.- See Also:
-
kCGLRGBFloat128Bit
public static final int kCGLRGBFloat128BitColor and accumulation buffer formats.- See Also:
-
kCGLRGBAFloat128Bit
public static final int kCGLRGBAFloat128BitColor and accumulation buffer formats.- See Also:
-
kCGLRGBFloat256Bit
public static final int kCGLRGBFloat256BitColor and accumulation buffer formats.- See Also:
-
kCGLRGBAFloat256Bit
public static final int kCGLRGBAFloat256BitColor and accumulation buffer formats.- See Also:
-
kCGLSupersampleBit
public static final int kCGLSupersampleBitSampling modes.- See Also:
-
kCGLMultisampleBit
public static final int kCGLMultisampleBitSampling modes.- See Also:
-
-
Method Details
-
CGLGetCurrentContext
public static long CGLGetCurrentContext()Returns the current rendering context. If there is none, returnsNULL. -
CGLSetCurrentContext
public static int CGLSetCurrentContext(long context) Sets the specified rendering context as the current rendering context.There can be only one current rendering context. Subsequent OpenGL rendering calls operate on the current rendering context to modify the drawable object associated with it.
You can use AGL macros to bypass the current rendering context mechanism and maintain your own current rendering context.
A context is current on a per-thread basis. Multiple threads must serialize calls into the same context.
- Parameters:
context- the rendering context to set as the current rendering context. PassNULLto release the current rendering context without assigning a new one.
-
nCGLChoosePixelFormat
public static int nCGLChoosePixelFormat(long attribs, long pix, long npix) Unsafe version of:ChoosePixelFormat -
CGLChoosePixelFormat
public static int CGLChoosePixelFormat(IntBuffer attribs, org.lwjgl.PointerBuffer pix, IntBuffer npix) Creates a pixel format object that satisfies the constraints of the specified buffer and renderer attributes.- Parameters:
attribs- a 0 terminated array that contains a list of buffer and renderer attributes. Attributes can be Boolean or integer. If an attribute is integer, you must supply the desired value immediately following the attribute. If the attribute is Boolean, do not supply a value because its presence in the attributes array implies a true value. One of:pix- the memory address of a pixel format object. On return, points to a new pixel format object that contains pixel format information and a list of virtual screens. If there are no pixel formats or virtual screens that satisfy the constraints of the buffer and renderer attributes, the value of pix is set toNULL.npix- on return, points to the number of virtual screens referenced by pix. If pix isNULL, the value ofnpixis set to 0.
-
CGLDestroyPixelFormat
public static int CGLDestroyPixelFormat(long pix) Frees the memory associated with a pixel format object. Calling this function is equivalent to callingReleasePixelFormat.- Parameters:
pix- the pixel format object to destroy
-
nCGLDescribePixelFormat
public static int nCGLDescribePixelFormat(long pix, int pix_num, int attrib, long value) Unsafe version of:DescribePixelFormat -
CGLDescribePixelFormat
Retrieves the values of an attribute associated with a pixel format object.- Parameters:
pix- the pixel format object to querypix_num- the virtual screen number whose attribute value you want to retrieve. This value must be between 0 and the number of virtual screens minus one.attrib- the attribute whose value you want to obtain. One of:value- on return, points to the value of the attribute
-
CGLReleasePixelFormat
public static void CGLReleasePixelFormat(long pix) Decrements the reference count of a pixel format object.The system retains the pixel format object when you call the function
CreateContext, so you can release a pixel format object immediately after passing it to the context creation function.Each call to CGLReleasePixelFormat decreases the reference count by 1. If the reference count reaches 0, the pixel format object is destroyed.
- Parameters:
pix- the pixel format object whose reference count should be decremented
-
CGLRetainPixelFormat
public static long CGLRetainPixelFormat(long pix) Increments the receiver's reference count.Each call to CGLRetainPixelFormat increases the reference count by 1. Each call to CGLRetainPixelFormat must be matched with a call to
ReleasePixelFormat.- Parameters:
pix- the pixel format object whose reference count should be incremented
-
CGLGetPixelFormatRetainCount
public static int CGLGetPixelFormatRetainCount(long pix) Returns the retain count of a pixel format object.- Parameters:
pix- a pixel format object
-
nCGLQueryRendererInfo
public static int nCGLQueryRendererInfo(int display_mask, long rend, long nrend) Unsafe version of:QueryRendererInfo -
CGLQueryRendererInfo
public static int CGLQueryRendererInfo(int display_mask, org.lwjgl.PointerBuffer rend, IntBuffer nrend) Creates a renderer information object that contains properties and values for renderers able to drive all the specified displays in a given display mask.- Parameters:
display_mask- a bit field that contains the bitwise OR of OpenGL display masks returned by the CGDisplayIDToOpenGLDisplayMask function. If you want to obtain information for all renderers in the system you must call CGLQueryRendererInfo once for each display bit.rend- the memory address of a renderer information object. On return, points to a renderer information object that describes all renderers that are able to drive the displays specified by thedisplay_maskparameter. Ifdisplay_maskdoes not specify any displays, the value ofrendis set toNULL. You must callDestroyRendererInfowhen you no longer need this object.nrend- on return, points to the number of renderers described in the renderer information object. Ifdisplay_maskdoes not specify any displays, the value ofnrendis set to 0.
-
CGLDestroyRendererInfo
public static int CGLDestroyRendererInfo(long rend) Frees resources associated with a renderer information object.- Parameters:
rend- the renderer information object to destroy
-
nCGLDescribeRenderer
public static int nCGLDescribeRenderer(long rend, int rend_num, int prop, long value) Unsafe version of:DescribeRenderer -
CGLDescribeRenderer
Obtains the value associated with a renderer property.- Parameters:
rend- an opaque renderer information object that contains a description of the renderer capabilities you want to inspect. You can obtain a renderer information object by calling the functionQueryRendererInfo. You must callDestroyRendererInfowhen you no longer need this object.rend_num- the index of the renderer inside the renderer information object — a value between 0 and the number of renderers minus one. The number of renderers can be obtained by callingDescribeRenderer, passing inrend, renderer number 0, and the renderer propertyRPRendererCount.prop- the renderer property whose value you want to obtain. One of:value- on return, points to the value of the requested property
-
nCGLCreateContext
public static int nCGLCreateContext(long pix, long share, long ctx) Unsafe version of:CreateContext -
CGLCreateContext
public static int CGLCreateContext(long pix, long share, org.lwjgl.PointerBuffer ctx) Creates a CGL rendering context.- Parameters:
pix- a pixel format object created by calling the functionChoosePixelFormatshare- the rendering context with which to share the OpenGL object state — including texture objects, programs and shader display lists, vertex array objects, vertex buffer objects, pixel buffer objects, and frame buffer objects — and the object state associated which each of these object types. PassNULLto indicate that no sharing is to take place.ctx- the memory address of a context object. On return, points to a new context object with the buffers and attributes specified by thepixparameter. If the context can not be created as specified, the value ofctxis set toNULL.
-
CGLDestroyContext
public static int CGLDestroyContext(long ctx) Frees the resources associated with a rendering context.Starting in Mac OS 10.5, CGL rendering contexts are reference counted. For compatibility reasons, calling CGLDestroyContext clears the drawable associated with the rendering context. Calling CGLDestroyContext is the equivalent of calling both
ClearDrawableandReleaseContext.- Parameters:
ctx- the rendering context to destroy
-
CGLCopyContext
public static int CGLCopyContext(long src, long dst, int mask) Copies the specified state variables from one rendering context to another.- Parameters:
src- the source rendering contextdst- the destination rendering contextmask- a mask that specifies the state variables to copy. Pass a bit field that contains the bitwise OR of the state variable names that you want to copy. Use the symbolic mask constants that are passed to the OpenGL functionPushAttrib. To copy as many state variables as possible, supply the constantALL_ATTRIB_BITS.
-
CGLRetainContext
public static long CGLRetainContext(long ctx) Increments the retain count on a CGL rendering context.Each call to CGLRetainContext increases the retain count by 1. To prevent memory leaks, each retain call must be balanced with a call to
ReleaseContext.- Parameters:
ctx- the rendering context to be retained- Returns:
- the same context that was passed into the function.
-
CGLReleaseContext
public static void CGLReleaseContext(long ctx) Decrements the retain count on a CGL rendering context.Each call to CGLReleaseContext decreases the retain count by 1.
When the retain count reaches 0, all resources associated with the rendering context are freed. If the rendering context that you pass is the current rendering context and it is freed, the current context is set to
NULLand there is no current rendering context after the function executes. After the context is freed, you must make sure you do not use the destroyed rendering context. This includes using CGL macros in which the rendering context is explicitly passed to OpenGL.- Parameters:
ctx- the rendering context to be released
-
CGLGetContextRetainCount
public static int CGLGetContextRetainCount(long ctx) Returns the current retain count of a CGL rendering context.- Parameters:
ctx- the CGL rendering context whose retain count you wish to discover
-
CGLGetPixelFormat
public static long CGLGetPixelFormat(long ctx) Retrieves the current pixel format associated with a CGL rendering context.The pixel format object is not retained before being returned to your application. If your application needs to maintain this object, it should call
RetainPixelFormat.- Parameters:
ctx- the CGL rendering context whose format you want to receive
-
nCGLCreatePBuffer
public static int nCGLCreatePBuffer(int width, int height, int target, int internalFormat, int max_level, long pbuffer) Unsafe version of:CreatePBuffer -
CGLCreatePBuffer
public static int CGLCreatePBuffer(int width, int height, int target, int internalFormat, int max_level, org.lwjgl.PointerBuffer pbuffer) Creates a pixel buffer of the specified size, compatible with the specified texture target.This function does not have any knowledge of OpenGL contexts or pixel format objects and does not specifically allocate the storage needed for the actual pixel buffer. These operations occur when you call the function
SetPBuffer.You can determine the dimensional limits of a pixel buffer by calling the OpenGL function glGetInteger. You can find the maximum size supported by querying GL_MAX_VIEWPORT_DIMS and the minimum size by querying GL_MIN_PBUFFER_VIEWPORT_DIMS_APPLE, which returns two integer values (similar to GL_MAX_VIEWPORT_DIMS). All pixel buffer dimensions that you request with the function aglCreatePBuffer should fall within these limits (inclusively) and should comply with any limitations imposed by the texture target you select.
The maximum viewport size supported in OS X is quite large. You should take into consideration the amount of video or system memory required to support the requested pixel buffer size, including additional memory needed for multiple buffers and options such as multisampling.
Starting in OS X v10.5, pixel buffer objects are reference counted. Pixel buffer objects are created with a reference count of 1 and are destroyed when the last reference to the object is released.
Deprecated in OS X v10.7.
- Parameters:
width- the width, in pixels, of the pixel bufferheight- the height, in pixels, of the pixel buffertarget- a constant that specifies the type of the pixel buffer target texture. One of:TEXTURE_2DTEXTURE_CUBE_MAPTEXTURE_RECTANGLEinternalFormat- a constant that specifies the internal color format of the pixel buffer. The format controls whether the alpha channel of the pixel buffer is used for texturing operations. One of:RGBGL11.GL_RGBAmax_level- the maximum level of mipmap detail allowable. Pass 0 for a pixel buffer that is not using mipmaps. The value passed should never exceed the actual maximum number of mipmap levels that can be represented with the given width and height.pbuffer- on return, points to a new pixel buffer object
-
CGLDestroyPBuffer
public static int CGLDestroyPBuffer(long pbuffer) Releases the resources associated with a pixel buffer object.Starting in OS X v10.5, pixel buffer objects are reference counted. Calling this function is equivalent to calling
ReleasePBuffer.Deprecated in OS X v10.7.
- Parameters:
pbuffer- the pixel buffer object whose resources you want to release
-
nCGLDescribePBuffer
public static int nCGLDescribePBuffer(long obj, long width, long height, long target, long internalFormat, long mipmap) Unsafe version of:DescribePBuffer -
CGLDescribePBuffer
public static int CGLDescribePBuffer(long obj, IntBuffer width, IntBuffer height, IntBuffer target, IntBuffer internalFormat, IntBuffer mipmap) Retrieves information that describes the specified pixel buffer object.The width, height, texture target, and internal texture color format of a pixel buffer object are set at its creation and cannot be changed without destroying and recreating the object. The level is set when the pixel buffer object is attached to a rendering context by calling the function
SetPBuffer.Deprecated in OS X v10.7.
- Parameters:
obj- a pointer to the pixel buffer objectwidth- on return, points to the width, in pixels, of the pixel bufferheight- on return, points to the height, in pixels, of the pixel buffertarget- on return, points to a constant that specifies the pixel buffer texture targetinternalFormat- on return, points to a constant that specifies the internal color format of the pixel buffermipmap- on return, points to the mipmap level of the pixel buffer or 0 if it doesn't use mipmaps
-
CGLTexImagePBuffer
public static int CGLTexImagePBuffer(long ctx, long pbuffer, int source) Binds the contents of a pixel buffer to a data source for a texture object.You must generate and bind a texture name (using standard OpenGL texturing calls) that is compatible with the pixel buffer texture target. Don't supply a texture object that was used previously for nonpixel buffer texturing operations unless you first call glDeleteTextures to regenerate the texture name.
If you modify the content of a pixel buffer that uses mipmap levels, you must call this function again before drawing with the pixel buffer, to ensure that the content is synchronized with OpenGL. For pixel buffers without mipmaps, simply rebind to the texture object to synchronize content.
No OpenGL texturing calls that modify a pixel buffer texture content are permitted (such as glTexSubImage2D or glCopyTexImage2D) with the pixel buffer texture as the destination. It is permitted to use texturing commands to read data from a pixel buffer texture, such as glCopyTexImage2D, with the pixel buffer texture as the source. It is also legal to use OpenGL functions such as glReadPixels to read the contents of a pixel buffer directly through the pixel buffer context.
Note that texturing with the CGLTexImagePBuffer function can fail to produce the intended results without error in the same way other OpenGL texturing commands can normally fail. The function fails if you set an incompatible filter mode, do not enable the proper texture target, or other conditions described in the OpenGL specification.
You don't need to share a context to use a pixel buffer object as a texture source. You can use independent pixel format objects and OpenGL contexts for both the pixel buffer and the target drawable object without sharing resources, and still texture using a pixel buffer in the target context.
Deprecated in OS X v10.7.
- Parameters:
ctx- a rendering context, which is the target context for the texture operation. This is the context that you plan to render content to. This is not the context attached to the pixel buffer.pbuffer- a pixel buffer objectsource- the source buffer to get the texture from, which should be a valid OpenGL buffer such as GL_FRONT or GL_BACK and should be compatible with the buffer and renderer attributes that you used to create the rendering context attached to the pixel buffer. This means that the pixel buffer must possess the buffer in question for the texturing operation to succeed.
-
CGLRetainPBuffer
public static long CGLRetainPBuffer(long pbuffer) Increments the retain count on a pixel buffer object.Each call to CGLRetainPBuffer increases the retain count by 1. To prevent the pixel buffer object from being leaked, each retain call must be matched with a call to
ReleasePBuffer.Deprecated in OS X v10.7.
- Parameters:
pbuffer- the pixel buffer object whose retain count you wish to increment
-
CGLReleasePBuffer
public static void CGLReleasePBuffer(long pbuffer) Releases the resources associated with a pixel buffer object.Starting in OS X v10.5, pixel buffer objects are reference counted. Calling this function is equivalent to calling CGLReleasePBuffer.
Deprecated in OS X v10.7.
- Parameters:
pbuffer- the pixel buffer object whose resources you want to release
-
CGLGetPBufferRetainCount
public static int CGLGetPBufferRetainCount(long pbuffer) Returns the retain count of a pixel buffer object.Deprecated in OS X v10.7.
- Parameters:
pbuffer- the pixel buffer object whose retain count you wish to retrieve
-
nCGLSetOffScreen
public static int nCGLSetOffScreen(long ctx, int width, int height, int rowbytes, long baseaddr) Unsafe version of:SetOffScreen -
CGLSetOffScreen
public static int CGLSetOffScreen(long ctx, int width, int height, int rowbytes, ByteBuffer baseaddr) Attaches a rendering context to an offscreen buffer.Before calling this function, you must set up the rendering context using a pixel format object created with the kCGLPFAOffScreen attribute. For more information about kCGLPFAOffScreen, see Buffer and Renderer Attributes.
After calling this function, subsequent OpenGL drawing is rendered into the offscreen buffer and the viewport of the rendering context is set to the full size of the offscreen area.
To exit offscreen mode, call
ClearDrawable.To obtain functionality similar to offscreen mode on renderers that do not support it, attach the context to a hidden window and use the OpenGL function glReadPixels.
Deprecated in OS X v10.7.
- Parameters:
ctx- a rendering contextwidth- the width, in pixels, of the offscreen bufferheight- the height, in pixels, of the offscreen bufferrowbytes- the number of bytes per row of the offscreen buffer, which must be greater than or equal to width times bytes per pixelbaseaddr- a pointer to a block of memory to use as the offscreen buffer. The size of the memory must be at leastrowbytes*heightbytes.
-
nCGLGetOffScreen
public static int nCGLGetOffScreen(long ctx, long width, long height, long rowbytes, long baseaddr) Unsafe version of:GetOffScreen -
CGLGetOffScreen
public static int CGLGetOffScreen(long ctx, IntBuffer width, IntBuffer height, IntBuffer rowbytes, org.lwjgl.PointerBuffer baseaddr) Retrieves an offscreen buffer and its parameters for a specified rendering context.Deprecated in OS X v10.7.
- Parameters:
ctx- a rendering contextwidth- on return, points to the width, in pixels, of the offscreen buffer. If the rendering context is not attached to an offscreen drawable object, the value of width is set to 0.height- on return, points to the height, in pixels, of the offscreen buffer. If the rendering context is not attached to an offscreen drawable object, the value of height is set to 0.rowbytes- on return, points to the number of bytes per row of the offscreen buffer. If the context is not attached to an offscreen drawable object, the value of rowbytes is set to 0.baseaddr- on return, points to the base address of the offscreen buffer. If the context is not attached to an offscreen drawable object, the value ofbaseaddris set toNULL.
-
CGLSetFullScreen
public static int CGLSetFullScreen(long ctx) Attaches a rendering context to its full-screen drawable object.Before calling this function, you must set up the rendering context using a pixel format object created with the kCGLPFAFullScreen attribute (see Buffer and Renderer Attributes). Some OpenGL renderers, such as the software renderer, do not support full-screen mode. After you call the function
ChoosePixelFormatwith the full-screen attribute, you need to check whether the pixel format object is created successfully.You must capture the display prior to entering full-screen mode and release it after exiting. After calling this function, subsequent OpenGL drawing is rendered into the entire screen. For more information, see OpenGL Programming Guide for Mac.
To exit full-screen mode, call
ClearDrawable.Deprecated in OS X v10.7. Use
SetFullScreenOnDisplayinstead.- Parameters:
ctx- a rendering context
-
CGLSetFullScreenOnDisplay
public static int CGLSetFullScreenOnDisplay(long ctx, int display_mask) Attaches a rendering context to a full-screen drawable object." +This function obtains a drawable object that covers an entire screen and attaches it to the rendering context. A full-screen rendering context may allow the underlying renderer to provide better performance compared to a context associated with a window that partially covers the screen.
Prior to calling this function, your application should ensure that the context is capable of rendering to this display by querying the appropriate renderer properties. For more information, see
QueryRendererInfo. Note that some renderers, including the software renderer, do not support full-screen mode.You must capture the screen prior to entering full-screen mode and release it after exiting. After calling this function, subsequent OpenGL drawing is rendered into the entire screen. For more information, see OpenGL Programming Guide for Mac.
To exit full-screen mode, call
ClearDrawable.In OS X v10.6 or later, this function is not deprecated, but is usually not necessary. If your application creates a window that completely covers the screen, the system implicitly creates a full-screen instance, for the same potential performance benefit.
Deprecated in OS X v10.7.
- Parameters:
ctx- a rendering contextdisplay_mask- a bit field that contains the OpenGL display mask for the screen you wish the context to cover
-
CGLSetPBuffer
public static int CGLSetPBuffer(long ctx, long pbuffer, int face, int level, int screen) Attaches a pixel buffer object to a rendering context.The first time you call this function for a specific pixel buffer object, the system creates the necessary buffers. The buffers are created to support the attributes dictated by the pixel format object used to create the rendering context and by the parameters used to create the pixel buffer object. The storage requirements for pixel buffer objects, which can be quite large, are very similar to the requirements for windows or views with OpenGL contexts attached. All drawable objects compete for the same scarce resources. This function can fail is there is not enough contiguous VRAM for each buffer. It's best to code defensively with a scheme that reduces resource consumption without causing the application to resort to failure. Unless, of course, failure is the only viable alternative.
The ability to attach a pixel buffer to a context is supported only on renderers that export GL_APPLE_pixel_buffer in the GL_EXTENSIONS string. Before calling this function, you should programmatically determine if it’s possible to attach a pixel buffer to a context by querying GL_EXTENSIONS in the context and looking for GL_APPLE_pixel_buffer. If that extension is not present, the renderer won’t allow setting the pixel buffer.
In order of performance, these are the renderers you should consider using when setting up a rendering context to attach to a pixel buffer:
- A hardware renderer.
- The generic render, but only with an offscreen pixel format and glTexSubImage.
- The Apple software renderer, which supports pixel buffers in OS X v10.4.8 and later.
Deprecated in OS X v10.7.
- Parameters:
ctx- the rendering context to attach the pixel buffer topbuffer- a pixel buffer objectface- the cube map face to draw if the pixel buffer texture target type isTEXTURE_CUBE_MAP; otherwise pass 0.level- the mipmap level to draw. This must not exceed the maximum mipmap level set when the pixel buffer object was created. Pass 0 for a texture target that does not support mipmaps.screen- a virtual screen value. The virtual screen determines the renderer OpenGL uses to draw to the pixel buffer object. For best performance, for a pixel buffer used as a texture source, you should supply the virtual screen value that results in using the same renderer used by the context that's the texturing target.
-
nCGLGetPBuffer
public static int nCGLGetPBuffer(long ctx, long pbuffer, long face, long level, long screen) Unsafe version of:GetPBuffer -
CGLGetPBuffer
public static int CGLGetPBuffer(long ctx, org.lwjgl.PointerBuffer pbuffer, IntBuffer face, IntBuffer level, IntBuffer screen) Retrieves a pixel buffer and its parameters for a specified rendering context.Deprecated in OS X v10.7.
- Parameters:
ctx- a rendering contextpbuffer- on return, points to the pixel buffer object attached to the rendering contextface- on return, points to the cube map face that is set if the pixel buffer texture target type isTEXTURE_CUBE_MAP; otherwise 0 for all other texture target types.level- on return, points to the current mipmap level for drawingscreen- on return, points to the current virtual screen number, as set by the last valid call toSetPBuffer
-
CGLClearDrawable
public static int CGLClearDrawable(long ctx) Disassociates a rendering context from any drawable objects attached to it.- Parameters:
ctx- a rendering context
-
CGLFlushDrawable
public static int CGLFlushDrawable(long ctx) Copies the back buffer of a double-buffered context to the front buffer.To create a double-buffered context, specify the
PFADoubleBufferattribute when you create the pixel format object for the rendering context. If the backing store attribute is set to false, the buffers can be exchanged rather than copied. This is often the case in full-screen mode. If the receiver is not a double-buffered context, this call does nothing.If you set the swap interval attribute (
CPSwapInterval) appropriately, the copy takes place during the vertical retrace of the display, rather than immediately after CGLFlushDrawable is called. An implicitFlushoperation is performed by CGLFlushDrawable before it returns. For optimal performance, an application should not call glFlush immediately before calling CGLFlushDrawable. Subsequent OpenGL commands can be issued immediately after calling CGLFlushDrawable, but are not executed until the buffer copy is completed.- Parameters:
ctx- the context object
-
CGLEnable
public static int CGLEnable(long ctx, int pname) Enables an option for a rendering context.- Parameters:
ctx- a rendering contextpname- the option to enable. One of:CESwapRectangleCESwapLimitCERasterizationCEStateValidationCESurfaceBackingSizeCEDisplayListOptimizationCEMPEngine
-
CGLDisable
public static int CGLDisable(long ctx, int pname) Disables an option for a rendering context.- Parameters:
ctx- a rendering contextpname- the option to disable. One of:CESwapRectangleCESwapLimitCERasterizationCEStateValidationCESurfaceBackingSizeCEDisplayListOptimizationCEMPEngine
-
nCGLIsEnabled
public static int nCGLIsEnabled(long ctx, int pname, long enable) Unsafe version of:IsEnabled -
CGLIsEnabled
Reports whether an option is enabled for a rendering context.- Parameters:
ctx- a rendering contextpname- the option to query. One of:CESwapRectangleCESwapLimitCERasterizationCEStateValidationCESurfaceBackingSizeCEDisplayListOptimizationCEMPEngineenable- on return, enable is set to true if the option is enabled
-
nCGLSetParameter
public static int nCGLSetParameter(long ctx, int pname, long params) Unsafe version of:SetParameter -
CGLSetParameter
Sets the value of a rendering context parameter.- Parameters:
ctx- a rendering contextpname- the parameter whose value you want to set. One of:params- a pointer to the value to set the parameter to
-
CGLSetParameter
public static int CGLSetParameter(long ctx, int pname, int param) Sets the value of a rendering context parameter.- Parameters:
ctx- a rendering contextpname- the parameter whose value you want to set. One of:
-
nCGLGetParameter
public static int nCGLGetParameter(long ctx, int pname, long params) Unsafe version of:GetParameter -
CGLGetParameter
Retrieves the value of a rendering context parameter.- Parameters:
ctx- a rendering contextpname- the parameter whose value you want to retrieve. One of:params- on return, points to the value of the parameter
-
CGLSetVirtualScreen
public static int CGLSetVirtualScreen(long ctx, int screen) Forces subsequent OpenGL commands to the specified virtual screen.Setting the virtual screen forces the renderer associated with the virtual screen to process OpenGL commands issued to the specified context. Changing the virtual screen changes the current renderer. You should use this function only when it is necessary to override the default behavior. The current virtual screen is normally set automatically. Because the current virtual screen determines which OpenGL renderer is processing commands, the return values of all glGetXXX functions can be affected by the current virtual screen.
- Parameters:
ctx- a rendering contextscreen- a virtual screen number, which must be a value between 0 and the number of virtual screens minus one. The number of virtual screens available in a context can be obtained by calling the functionDescribePixelFormat, passing in the pixel format object used to create the rendering context, 0 for the virtual screen number (pix_numparameter), and the attribute constantPFAVirtualScreenCount.
-
nCGLGetVirtualScreen
public static int nCGLGetVirtualScreen(long ctx, long screen) Unsafe version of:GetVirtualScreen -
CGLGetVirtualScreen
Gets the current virtual screen number associated with a rendering context.The current virtual screen can change when a drawable object is moved or resized across graphics device boundaries. A change in the current virtual screen can affect the return values of some OpenGL functions and in most cases also means that the renderer has changed.
- Parameters:
ctx- a rendering contextscreen- on return, points to the virtual screen associated with the context. The value is always 0 on a single-display system and –1 if the function fails for any reason.
-
CGLUpdateContext
public static int CGLUpdateContext(long ctx) Synchronizes new renderer state to that of the application context- Parameters:
ctx- a rendering context
-
nCGLSetGlobalOption
public static int nCGLSetGlobalOption(int pname, long params) Unsafe version of:SetGlobalOption -
CGLSetGlobalOption
Sets the value of a global option.- Parameters:
pname- the name of the option whose value you want to set. One of:GOFormatCacheSizeGOClearFormatCacheGORetainRenderersGOResetLibraryGOUseErrorHandlerGOUseBuildCacheparams- the value to set the option to
-
CGLSetGlobalOption
public static int CGLSetGlobalOption(int pname, int param) Sets the value of a global option.- Parameters:
pname- the name of the option whose value you want to set. One of:GOFormatCacheSizeGOClearFormatCacheGORetainRenderersGOResetLibraryGOUseErrorHandlerGOUseBuildCache
-
nCGLGetGlobalOption
public static int nCGLGetGlobalOption(int pname, long params) Unsafe version of:GetGlobalOption -
CGLGetGlobalOption
Retrieves the value of a global option.- Parameters:
pname- the name of the option whose value you want to get. One of:GOFormatCacheSizeGOClearFormatCacheGORetainRenderersGOResetLibraryGOUseErrorHandlerGOUseBuildCacheparams- on return, a pointer to the value of the option
-
CGLLockContext
public static int CGLLockContext(long context) Locks a CGL rendering context.The function CGLLockContext blocks the thread it is on until all other threads have unlocked the same context using the function
UnlockContext. You can use CGLLockContext recursively. Context-specific CGL calls by themselves do not require locking, but you can guarantee serial processing for a group of calls by surrounding them with CGLLockContext and CGLUnlockContext. Keep in mind that calls from the OpenGL API (the API provided by the Architecture Review Board) require locking.Applications that use NSOpenGL classes with multithreading can lock contexts using the functions CGLLockContext and CGLUnlockContext. To perform rendering in a thread other than the main one, you can lock the context that you want to access and safely execute OpenGL commands. The locking calls must be placed around all OpenGL calls in all threads.
- Parameters:
context- a rendering context
-
CGLUnlockContext
public static int CGLUnlockContext(long context) Unlocks a CGL rendering context.- Parameters:
context- the CGL context to unlock
-
nCGLGetVersion
public static void nCGLGetVersion(long majorvers, long minorvers) Unsafe version of:GetVersion -
CGLGetVersion
Gets the major and minor version numbers of the CGL library.- Parameters:
majorvers- on return, points to the major version number of the CGL libraryminorvers- on return, points to the minor version number of the CGL library
-
nCGLErrorString
public static long nCGLErrorString(int error) Unsafe version of:ErrorString -
CGLErrorString
Returns a string that describes the specified result code.- Parameters:
error- the CGL result code constant returned from a CGL function. One of:
-
CGLChoosePixelFormat
public static int CGLChoosePixelFormat(int[] attribs, org.lwjgl.PointerBuffer pix, int[] npix) Array version of:ChoosePixelFormat -
CGLDescribePixelFormat
public static int CGLDescribePixelFormat(long pix, int pix_num, int attrib, int[] value) Array version of:DescribePixelFormat -
CGLQueryRendererInfo
public static int CGLQueryRendererInfo(int display_mask, org.lwjgl.PointerBuffer rend, int[] nrend) Array version of:QueryRendererInfo -
CGLDescribeRenderer
public static int CGLDescribeRenderer(long rend, int rend_num, int prop, int[] value) Array version of:DescribeRenderer -
CGLDescribePBuffer
public static int CGLDescribePBuffer(long obj, int[] width, int[] height, int[] target, int[] internalFormat, int[] mipmap) Array version of:DescribePBuffer -
CGLGetOffScreen
public static int CGLGetOffScreen(long ctx, int[] width, int[] height, int[] rowbytes, org.lwjgl.PointerBuffer baseaddr) Array version of:GetOffScreen -
CGLGetPBuffer
public static int CGLGetPBuffer(long ctx, org.lwjgl.PointerBuffer pbuffer, int[] face, int[] level, int[] screen) Array version of:GetPBuffer -
CGLIsEnabled
public static int CGLIsEnabled(long ctx, int pname, int[] enable) Array version of:IsEnabled -
CGLSetParameter
public static int CGLSetParameter(long ctx, int pname, int[] params) Array version of:SetParameter -
CGLGetParameter
public static int CGLGetParameter(long ctx, int pname, int[] params) Array version of:GetParameter -
CGLGetVirtualScreen
public static int CGLGetVirtualScreen(long ctx, int[] screen) Array version of:GetVirtualScreen -
CGLSetGlobalOption
public static int CGLSetGlobalOption(int pname, int[] params) Array version of:SetGlobalOption -
CGLGetGlobalOption
public static int CGLGetGlobalOption(int pname, int[] params) Array version of:GetGlobalOption -
CGLGetVersion
public static void CGLGetVersion(int[] majorvers, int[] minorvers) Array version of:GetVersion
-