Top Description Fields Constructors Methods
jogamp.opengl.macosx.cgl

public Class CGL

extends Object
Class Inheritance
Imports
java.util.*, com.jogamp.opengl.*, com.jogamp.opengl.fixedfunc.*, jogamp.opengl.*, com.jogamp.common.util.Function, jogamp.nativewindow.macosx.OSXUtil, com.jogamp.gluegen.runtime.*, com.jogamp.common.os.*, com.jogamp.common.nio.*, java.nio.*

Provides access to the MacOSX-specific OpenGL vendor extensions. See GLBase for more information.

Field Summary

Modifier and TypeField and Description
public static final int
kCGLBadAddress

Defined as part of enum type "CGLError" - CType: int

public static final int
kCGLBadAlloc

Defined as part of enum type "CGLError" - CType: int

public static final int
kCGLBadAttribute

Defined as part of enum type "CGLError" - CType: int

public static final int
kCGLBadCodeModule

Defined as part of enum type "CGLError" - CType: int

public static final int
kCGLBadConnection

Defined as part of enum type "CGLError" - CType: int

public static final int
kCGLBadContext

Defined as part of enum type "CGLError" - CType: int

public static final int
kCGLBadDisplay

Defined as part of enum type "CGLError" - CType: int

public static final int
kCGLBadDrawable

Defined as part of enum type "CGLError" - CType: int

public static final int
kCGLBadEnumeration

Defined as part of enum type "CGLError" - CType: int

public static final int
kCGLBadFullScreen

Defined as part of enum type "CGLError" - CType: int

public static final int
kCGLBadMatch

Defined as part of enum type "CGLError" - CType: int

public static final int
kCGLBadOffScreen

Defined as part of enum type "CGLError" - CType: int

public static final int
kCGLBadPixelFormat

Defined as part of enum type "CGLError" - CType: int

public static final int
kCGLBadProperty

Defined as part of enum type "CGLError" - CType: int

public static final int
kCGLBadRendererInfo

Defined as part of enum type "CGLError" - CType: int

public static final int
kCGLBadState

Defined as part of enum type "CGLError" - CType: int

public static final int
kCGLBadValue

Defined as part of enum type "CGLError" - CType: int

public static final int
kCGLBadWindow

Defined as part of enum type "CGLError" - CType: int

public static final int
kCGLCPClientStorage

Defined as part of enum type "CGLContextParameter" - CType: int

public static final int
kCGLCPCurrentRendererID

Defined as part of enum type "CGLContextParameter" - CType: int

public static final int
kCGLCPDispatchTableSize

Defined as part of enum type "CGLContextParameter" - CType: int

public static final int
kCGLCPGPUFragmentProcessing

Defined as part of enum type "CGLContextParameter" - CType: int

public static final int
kCGLCPGPUVertexProcessing

Defined as part of enum type "CGLContextParameter" - CType: int

public static final int
kCGLCPHasDrawable

Defined as part of enum type "CGLContextParameter" - CType: int

public static final int
kCGLCPMPSwapsInFlight

Defined as part of enum type "CGLContextParameter" - CType: int

public static final int
kCGLCPReclaimResources

Defined as part of enum type "CGLContextParameter" - CType: int

public static final int
kCGLCPSurfaceBackingSize

Defined as part of enum type "CGLContextParameter" - CType: int

public static final int
kCGLCPSurfaceOpacity

Defined as part of enum type "CGLContextParameter" - CType: int

public static final int
kCGLCPSurfaceOrder

Defined as part of enum type "CGLContextParameter" - CType: int

public static final int
kCGLCPSurfaceSurfaceVolatile

Defined as part of enum type "CGLContextParameter" - CType: int

public static final int
kCGLCPSurfaceTexture

Defined as part of enum type "CGLContextParameter" - CType: int

public static final int
kCGLCPSwapInterval

Defined as part of enum type "CGLContextParameter" - CType: int

public static final int
kCGLCPSwapRectangle

Defined as part of enum type "CGLContextParameter" - CType: int

public static final int
kCGLNoError

Defined as part of enum type "CGLError" - CType: int

public static final int
kCGLOGLPVersion_GL3_Core

Defined as part of enum type "CGLOpenGLProfile" - CType: int

public static final int
kCGLOGLPVersion_GL4_Core

Defined as part of enum type "CGLOpenGLProfile" - CType: int

public static final int
kCGLOGLPVersion_Legacy

Defined as part of enum type "CGLOpenGLProfile" - CType: int

public static final int
kCGLPFAAccelerated

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFAAcceleratedCompute

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFAAccumSize

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFAAllRenderers

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFAAlphaSize

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFAAuxBuffers

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFAAuxDepthStencil

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFABackingStore

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFAClosestPolicy

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFAColorFloat

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFAColorSize

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFACompliant

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFADepthSize

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFADisplayMask

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFADoubleBuffer

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFAFullScreen

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFAMaximumPolicy

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFAMinimumPolicy

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFAMPSafe

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFAMultisample

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFAMultiScreen

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFANoRecovery

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFAOffScreen

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFAOpenGLProfile

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFAPBuffer

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFARemotePBuffer

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFARendererID

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFARobust

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFASampleAlpha

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFASampleBuffers

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFASamples

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFASingleRenderer

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFAStencilSize

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFAStereo

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFASupersample

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFAVirtualScreenCount

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
kCGLPFAWindow

Defined as part of enum type "CGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFAAccelerated

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFAAccumSize

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFAAllRenderers

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFAAlphaSize

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFAAuxBuffers

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFAAuxDepthStencil

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFABackingStore

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFAClosestPolicy

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFAColorFloat

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFAColorSize

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFACompliant

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFADepthSize

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFADoubleBuffer

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFAFullScreen

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFAMaximumPolicy

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFAMinimumPolicy

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFAMPSafe

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFAMultisample

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFAMultiScreen

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFANoRecovery

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFAOffScreen

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFAPixelBuffer

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFARendererID

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFARobust

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFASampleAlpha

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFASampleBuffers

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFASamples

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFAScreenMask

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFASingleRenderer

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFAStencilSize

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFAStereo

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFASupersample

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFAVirtualScreenCount

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

public static final int
NSOpenGLPFAWindow

Defined as part of enum type "NSOpenGLPixelFormatAttribute" - CType: int

Constructor Summary

AccessConstructor and Description
public
CGL()

Method Summary

Modifier and TypeMethod and Description
public static int
CGLChoosePixelFormat(IntBuffer
a direct only java.nio.IntBuffer
attribs
,
PointerBuffer pix, IntBuffer
a direct only java.nio.IntBuffer
npix
)

Interface to C language function: CGLError CGLChoosePixelFormat(CGLPixelFormatAttribute * attribs, CGLPixelFormatObj * pix, GLint * npix)

private static native int
CGLChoosePixelFormat0(Object
a direct only java.nio.IntBuffer
attribs
,
int attribs_byte_offset, Object pix, int pix_byte_offset, Object
a direct only java.nio.IntBuffer
npix
,
int npix_byte_offset)

Entry point to C language function: CGLError CGLChoosePixelFormat(CGLPixelFormatAttribute * attribs, CGLPixelFormatObj * pix, GLint * npix)

public static native int
CGLCopyContext(long src, long dst, int mask)

Interface to C language function: CGLError CGLCopyContext(CGLContextObj src, CGLContextObj dst, int mask)

public static int
CGLCreateContext(long pix, long share, PointerBuffer ctx)

Interface to C language function: CGLError CGLCreateContext(CGLPixelFormatObj pix, CGLContextObj share, CGLContextObj * ctx)

private static native int
CGLCreateContext0(long pix, long share, Object ctx, int ctx_byte_offset)

Entry point to C language function: CGLError CGLCreateContext(CGLPixelFormatObj pix, CGLContextObj share, CGLContextObj * ctx)

public static int
CGLCreatePBuffer(int width, int height, int target, int internalFormat, int max_level, PointerBuffer pbuffer)

Interface to C language function: CGLError CGLCreatePBuffer(GLsizei width, GLsizei height, GLenum target, GLenum internalFormat, GLint max_level, CGLPBufferObj * pbuffer)

private static native int
CGLCreatePBuffer0(int width, int height, int target, int internalFormat, int max_level, Object pbuffer, int pbuffer_byte_offset)

Entry point to C language function: CGLError CGLCreatePBuffer(GLsizei width, GLsizei height, GLenum target, GLenum internalFormat, GLint max_level, CGLPBufferObj * pbuffer)

public static native int
CGLDestroyContext(long ctx)

Interface to C language function: CGLError CGLDestroyContext(CGLContextObj ctx)

public static native int
CGLDestroyPBuffer(long pbuffer)

Interface to C language function: CGLError CGLDestroyPBuffer(CGLPBufferObj pbuffer)

public static native int
CGLDestroyPixelFormat(long pix)

Interface to C language function: CGLError CGLDestroyPixelFormat(CGLPixelFormatObj pix)

public static native int
CGLFlushDrawable(long ctx)

Interface to C language function: CGLError CGLFlushDrawable(CGLContextObj ctx)

public static native long
CGLGetCurrentContext()

Interface to C language function: CGLContextObj CGLGetCurrentContext(void)

public static native long
CGLGetPixelFormat(long ctx)

Interface to C language function: CGLPixelFormatObj CGLGetPixelFormat(CGLContextObj ctx)

public static native long
CGLGetShareGroup(long ctx)

Interface to C language function: CGLShareGroupObj CGLGetShareGroup(CGLContextObj ctx)

public static native int
CGLLockContext(long ctx)

Interface to C language function: CGLError CGLLockContext(CGLContextObj ctx)

public static void
CGLQueryPixelFormat(long fmt, IntBuffer
a direct only java.nio.IntBuffer
iattrs
,
int niattrs, IntBuffer
a direct only java.nio.IntBuffer
ivalues
)

Interface to C language function: void CGLQueryPixelFormat(CGLPixelFormatObj fmt, int * iattrs, int niattrs, int * ivalues)

private static native void
CGLQueryPixelFormat0(long fmt, Object
a direct only java.nio.IntBuffer
iattrs
,
int iattrs_byte_offset, int niattrs, Object
a direct only java.nio.IntBuffer
ivalues
,
int ivalues_byte_offset)

Entry point to C language function: void CGLQueryPixelFormat(CGLPixelFormatObj fmt, int * iattrs, int niattrs, int * ivalues)

public static native void
CGLReleaseContext(long ctx)

Interface to C language function: void CGLReleaseContext(CGLContextObj ctx)

public static native int
CGLSetCurrentContext(long ctx)

Interface to C language function: CGLError CGLSetCurrentContext(CGLContextObj ctx)

public static int
CGLSetParameter(long ctx, int
valid values are: kCGLCPSwapRectangle, kCGLCPSwapInterval, kCGLCPDispatchTableSize, kCGLCPClientStorage, kCGLCPSurfaceTexture, kCGLCPSurfaceOrder, kCGLCPSurfaceOpacity, kCGLCPSurfaceBackingSize, kCGLCPSurfaceSurfaceVolatile, kCGLCPReclaimResources, kCGLCPCurrentRendererID, kCGLCPGPUVertexProcessing, kCGLCPGPUFragmentProcessing, kCGLCPHasDrawable, kCGLCPMPSwapsInFlight
pname
,
IntBuffer
a direct only java.nio.IntBuffer
params
)

Interface to C language function: CGLError CGLSetParameter(CGLContextObj ctx, CGLContextParameter pname, const int * params)

private static native int
CGLSetParameter0(long ctx, int
valid values are: kCGLCPSwapRectangle, kCGLCPSwapInterval, kCGLCPDispatchTableSize, kCGLCPClientStorage, kCGLCPSurfaceTexture, kCGLCPSurfaceOrder, kCGLCPSurfaceOpacity, kCGLCPSurfaceBackingSize, kCGLCPSurfaceSurfaceVolatile, kCGLCPReclaimResources, kCGLCPCurrentRendererID, kCGLCPGPUVertexProcessing, kCGLCPGPUFragmentProcessing, kCGLCPHasDrawable, kCGLCPMPSwapsInFlight
pname
,
Object
a direct only java.nio.IntBuffer
params
,
int params_byte_offset)

Entry point to C language function: CGLError CGLSetParameter(CGLContextObj ctx, CGLContextParameter pname, const int * params)

public static native int
CGLSetPBuffer(long ctx, long pbuffer, int face, int level, int screen)

Interface to C language function: CGLError CGLSetPBuffer(CGLContextObj ctx, CGLPBufferObj pbuffer, GLenum face, GLint level, GLint screen)

public static native int
CGLUnlockContext(long ctx)

Interface to C language function: CGLError CGLUnlockContext(CGLContextObj ctx)

public static native boolean
clearCurrentContext(long ctx)

Interface to C language function: Bool clearCurrentContext(NSOpenGLContext * ctx)

public static native void
clearDrawable(long ctx)

Interface to C language function: void clearDrawable(NSOpenGLContext * ctx)

public static native void
copyContext(long dest, long src, int mask)

Interface to C language function: void copyContext(NSOpenGLContext * dest, NSOpenGLContext * src, int mask)

public static long
createContext(long shareContext, long nsView, boolean incompleteView, long pixelFormat, boolean opaque, IntBuffer
a direct only java.nio.IntBuffer
viewNotReady
)

Interface to C language function: NSOpenGLContext * createContext(NSOpenGLContext * shareContext, NSView * nsView, Bool incompleteView, NSOpenGLPixelFormat * pixelFormat, Bool opaque, int * viewNotReady)

private static native long
createContext0(long shareContext, long nsView, boolean incompleteView, long pixelFormat, boolean opaque, Object
a direct only java.nio.IntBuffer
viewNotReady
,
int viewNotReady_byte_offset)

Entry point to C language function: NSOpenGLContext * createContext(NSOpenGLContext * shareContext, NSView * nsView, Bool incompleteView, NSOpenGLPixelFormat * pixelFormat, Bool opaque, int * viewNotReady)

public static long
createNSOpenGLLayer(final long ctx, final int gl3ShaderProgramName, final long fmt, final long p, final int texID, final boolean opaque, final int texWidth, final int texHeight, final int winWidth, final int winHeight)

Creates the NSOpenGLLayer for FBO/PBuffer w/ optional GL3 shader program

The NSOpenGLLayer will immediatly create a OpenGL context sharing the given ctx, which will be used to render the texture offthread.

private static native long
createNSOpenGLLayerImpl(long ctx, int gl3ShaderProgramName, long fmt, long p, int texID, boolean opaque, int texWidth, int texHeight, int winWidth, int winHeight)

Interface to C language function: NSOpenGLLayer * createNSOpenGLLayer(NSOpenGLContext * ctx, int gl3ShaderProgramName, NSOpenGLPixelFormat * fmt, NSOpenGLPixelBuffer * p, uint32_t texID, Bool opaque, int texWidth, int texHeight, int winWidth, int winHeight)

public static native long
createPBuffer(int renderTarget, int internalFormat, int width, int height)

Interface to C language function: NSOpenGLPixelBuffer * createPBuffer(int renderTarget, int internalFormat, int width, int height)

public static long
createPixelFormat(IntBuffer
a direct only java.nio.IntBuffer
iattrs
,
int niattrs, IntBuffer
a direct only java.nio.IntBuffer
ivalues
)

Interface to C language function: NSOpenGLPixelFormat * createPixelFormat(int * iattrs, int niattrs, int * ivalues)

private static native long
createPixelFormat0(Object
a direct only java.nio.IntBuffer
iattrs
,
int iattrs_byte_offset, int niattrs, Object
a direct only java.nio.IntBuffer
ivalues
,
int ivalues_byte_offset)

Entry point to C language function: NSOpenGLPixelFormat * createPixelFormat(int * iattrs, int niattrs, int * ivalues)

public static native boolean
deleteContext(long ctx, boolean releaseOnMainThread)

Interface to C language function: Bool deleteContext(NSOpenGLContext * ctx, Bool releaseOnMainThread)

public static native void
deletePixelFormat(long fmt)

Interface to C language function: void deletePixelFormat(NSOpenGLPixelFormat * fmt)

public static native boolean
destroyPBuffer(long pBuffer)

Interface to C language function: Bool destroyPBuffer(NSOpenGLPixelBuffer * pBuffer)

public static native boolean
flushBuffer(long ctx)

Interface to C language function: Bool flushBuffer(NSOpenGLContext * ctx)

public static native long
getCGLContext(long ctx)

Interface to C language function: CGLContextObj getCGLContext(NSOpenGLContext * ctx)

public static native long
getCurrentContext()

Interface to C language function: NSOpenGLContext * getCurrentContext(void)

public static native long
getNSView(long ctx)

Interface to C language function: NSView * getNSView(NSOpenGLContext * ctx)

public static native long
getProcAddress(String procName)

Interface to C language function: void * getProcAddress(const char * procName)

public static native boolean
isNSOpenGLPixelBuffer(long object)

Interface to C language function: Bool isNSOpenGLPixelBuffer(uint64_t object)

public static native boolean
makeCurrentContext(long ctx)

Interface to C language function: Bool makeCurrentContext(NSOpenGLContext * ctx)

public static void
queryPixelFormat(long fmt, IntBuffer
a direct only java.nio.IntBuffer
iattrs
,
int niattrs, IntBuffer
a direct only java.nio.IntBuffer
ivalues
)

Interface to C language function: void queryPixelFormat(NSOpenGLPixelFormat * fmt, int * iattrs, int niattrs, int * ivalues)

private static native void
queryPixelFormat0(long fmt, Object
a direct only java.nio.IntBuffer
iattrs
,
int iattrs_byte_offset, int niattrs, Object
a direct only java.nio.IntBuffer
ivalues
,
int ivalues_byte_offset)

Entry point to C language function: void queryPixelFormat(NSOpenGLPixelFormat * fmt, int * iattrs, int niattrs, int * ivalues)

public static void
releaseNSOpenGLLayer(final long nsOpenGLLayer)

Releases the NSOpenGLLayer

private static native void
releaseNSOpenGLLayerImpl(long glLayer)

Interface to C language function: void releaseNSOpenGLLayer(NSOpenGLLayer * glLayer)

public static native void
resetGammaRamp()

Interface to C language function: void resetGammaRamp()

public static native void
setContextOpacity(long ctx, int opacity)

Interface to C language function: void setContextOpacity(NSOpenGLContext * ctx, int opacity)

public static native void
setContextPBuffer(long ctx, long pBuffer)

Interface to C language function: void setContextPBuffer(NSOpenGLContext * ctx, NSOpenGLPixelBuffer * pBuffer)

public static native void
setContextTextureImageToPBuffer(long ctx, long pBuffer, int colorBuffer)

Interface to C language function: void setContextTextureImageToPBuffer(NSOpenGLContext * ctx, NSOpenGLPixelBuffer * pBuffer, GLenum colorBuffer)

public static native void
setContextView(long ctx, long view)

Interface to C language function: void setContextView(NSOpenGLContext * ctx, NSView * view)

public static boolean
setGammaRamp(int tableSize, FloatBuffer
a direct only java.nio.FloatBuffer
redRamp
,
FloatBuffer
a direct only java.nio.FloatBuffer
greenRamp
,
FloatBuffer
a direct only java.nio.FloatBuffer
blueRamp
)

Interface to C language function: Bool setGammaRamp(int tableSize, float * redRamp, float * greenRamp, float * blueRamp)

private static native boolean
setGammaRamp0(int tableSize, Object
a direct only java.nio.FloatBuffer
redRamp
,
int redRamp_byte_offset, Object
a direct only java.nio.FloatBuffer
greenRamp
,
int greenRamp_byte_offset, Object
a direct only java.nio.FloatBuffer
blueRamp
,
int blueRamp_byte_offset)

Entry point to C language function: Bool setGammaRamp(int tableSize, float * redRamp, float * greenRamp, float * blueRamp)

public static void
setNSOpenGLLayerEnabled(final long nsOpenGLLayer, final boolean enable)

Enable or disable NSOpenGLLayer.

private static native void
setNSOpenGLLayerEnabledImpl(long layer, boolean enable)

Interface to C language function: void setNSOpenGLLayerEnabled(NSOpenGLLayer * layer, Bool enable)

public static native void
setNSOpenGLLayerNeedsDisplayFBO(long layer, int texID)

Interface to C language function: void setNSOpenGLLayerNeedsDisplayFBO(NSOpenGLLayer * layer, uint32_t texID)

public static native void
setNSOpenGLLayerNeedsDisplayPBuffer(long layer, long p)

Interface to C language function: void setNSOpenGLLayerNeedsDisplayPBuffer(NSOpenGLLayer * layer, NSOpenGLPixelBuffer * p)

public static native void
setNSOpenGLLayerSwapInterval(long layer, int interval)

Interface to C language function: void setNSOpenGLLayerSwapInterval(NSOpenGLLayer * layer, int interval)

public static native void
setSwapInterval(long ctx, int interval)

Interface to C language function: void setSwapInterval(NSOpenGLContext * ctx, int interval)

public static native void
updateContext(long ctx)

Interface to C language function: void updateContext(NSOpenGLContext * ctx)

public static native boolean
updateContextNeedsUpdate(long updater)

Interface to C language function: Bool updateContextNeedsUpdate(void * updater)

public static native long
updateContextRegister(long ctx, long view)

Interface to C language function: void * updateContextRegister(NSOpenGLContext * ctx, NSView * view)

public static native void
updateContextUnregister(long updater)

Interface to C language function: void updateContextUnregister(void * updater)

public static native void
waitUntilNSOpenGLLayerIsReady(long layer, long to_micros)

Interface to C language function: void waitUntilNSOpenGLLayerIsReady(NSOpenGLLayer * layer, long to_micros)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait