com.jogamp.opengl.impl.macosx.cgl
Class MacOSXPbufferCGLDrawable
java.lang.Object
com.jogamp.opengl.impl.GLDrawableImpl
com.jogamp.opengl.impl.macosx.cgl.MacOSXCGLDrawable
com.jogamp.opengl.impl.macosx.cgl.MacOSXPbufferCGLDrawable
- All Implemented Interfaces:
- GLDrawable
- Direct Known Subclasses:
- MacOSXOffscreenCGLDrawable
public class MacOSXPbufferCGLDrawable
- extends MacOSXCGLDrawable
Field Summary |
protected com.jogamp.opengl.impl.macosx.cgl.MacOSXPbufferCGLDrawable.Impl |
impl
|
protected long |
pBuffer
|
Method Summary |
GLContext |
createContext(GLContext shareWith)
Creates a new context for drawing to this drawable that will
optionally share display lists and other server-side OpenGL
objects with the specified GLContext. |
void |
destroy()
For offscreen GLDrawables (pbuffers and "pixmap" drawables),
indicates that native resources should be reclaimed. |
long |
getHandle()
This is the GL/Windowing drawable handle.
It is usually the NativeWindow.getSurfaceHandle() ,
ie the native surface handle of the underlying windowing toolkit.
However, on X11/GLX this reflects a GLXDrawable, which represents a GLXWindow, GLXPixmap, or GLXPbuffer.
On EGL, this represents the EGLSurface.
|
int |
getOpenGLMode()
|
void |
setOpenGLMode(int mode)
|
protected void |
setRealizedImpl()
|
protected void |
swapBuffersImpl()
|
Methods inherited from class com.jogamp.opengl.impl.GLDrawableImpl |
destroyHandle, getChosenGLCapabilities, getFactory, getFactoryImpl, getGLProfile, getHeight, getNativeWindow, getRequestedGLCapabilities, getWidth, isRealized, isSurfaceLocked, lockSurface, setRealized, swapBuffers, toHexString, toString, unlockSurface, updateHandle |
pBuffer
protected long pBuffer
impl
protected com.jogamp.opengl.impl.macosx.cgl.MacOSXPbufferCGLDrawable.Impl impl
MacOSXPbufferCGLDrawable
public MacOSXPbufferCGLDrawable(GLDrawableFactory factory,
NativeWindow target)
setRealizedImpl
protected void setRealizedImpl()
- Overrides:
setRealizedImpl
in class MacOSXCGLDrawable
createContext
public GLContext createContext(GLContext shareWith)
- Description copied from interface:
GLDrawable
- Creates a new context for drawing to this drawable that will
optionally share display lists and other server-side OpenGL
objects with the specified GLContext.
The GLContext share
need not be associated with this
GLDrawable and may be null if sharing of display lists and other
objects is not desired. See the note in the overview
documentation on
context sharing.
destroy
public void destroy()
- Description copied from class:
GLDrawableImpl
- For offscreen GLDrawables (pbuffers and "pixmap" drawables),
indicates that native resources should be reclaimed.
- Overrides:
destroy
in class GLDrawableImpl
getHandle
public long getHandle()
- Description copied from interface:
GLDrawable
- This is the GL/Windowing drawable handle.
It is usually the NativeWindow.getSurfaceHandle()
,
ie the native surface handle of the underlying windowing toolkit.
However, on X11/GLX this reflects a GLXDrawable, which represents a GLXWindow, GLXPixmap, or GLXPbuffer.
On EGL, this represents the EGLSurface.
- Specified by:
getHandle
in interface GLDrawable
- Overrides:
getHandle
in class GLDrawableImpl
swapBuffersImpl
protected void swapBuffersImpl()
- Specified by:
swapBuffersImpl
in class GLDrawableImpl
setOpenGLMode
public void setOpenGLMode(int mode)
- Specified by:
setOpenGLMode
in class MacOSXCGLDrawable
getOpenGLMode
public int getOpenGLMode()
- Specified by:
getOpenGLMode
in class MacOSXCGLDrawable
Copyright 2010 JogAmp Community.