Package com.jogamp.opengl
Interface GLOffscreenAutoDrawable
-
- All Superinterfaces:
GLAutoDrawable,GLDrawable,GLSharedContextSetter,NativeSurfaceHolder
- All Known Subinterfaces:
GLOffscreenAutoDrawable.FBO
public interface GLOffscreenAutoDrawable extends GLAutoDrawable, GLSharedContextSetter
Platform-independentGLAutoDrawablespecialization, exposing offscreen functionality.This class distinguishes itself from
GLAutoDrawablewith it'ssetSurfaceSize(int, int)functionality.OpenGL Context Sharing
To share aGLContextsee the following note in the documentation overview: context sharing as well asGLSharedContextSetter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceGLOffscreenAutoDrawable.FBOFBObjectbasedGLOffscreenAutoDrawablespecialization
-
Field Summary
-
Fields inherited from interface com.jogamp.opengl.GLAutoDrawable
SCREEN_CHANGE_ACTION_ENABLED
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetSurfaceSize(int newWidth, int newHeight)Resize thisGLAutoDrawable's surfacevoidsetUpstreamWidget(Object newUpstreamWidget)Set the upstream UI toolkit object.-
Methods inherited from interface com.jogamp.opengl.GLAutoDrawable
addGLEventListener, addGLEventListener, areAllGLEventListenerInitialized, createContext, destroy, display, disposeGLEventListener, flushGLRunnables, getAnimator, getAutoSwapBufferMode, getContext, getContextCreationFlags, getDelegatedDrawable, getExclusiveContextThread, getGL, getGLEventListener, getGLEventListenerCount, getGLEventListenerInitState, getUpstreamLock, getUpstreamWidget, invoke, invoke, isThreadGLCapable, removeGLEventListener, setAnimator, setAutoSwapBufferMode, setContext, setContextCreationFlags, setExclusiveContextThread, setGL, setGLEventListenerInitState
-
Methods inherited from interface com.jogamp.opengl.GLDrawable
getChosenGLCapabilities, getFactory, getGLProfile, getHandle, getNativeSurface, getRequestedGLCapabilities, getSurfaceHeight, getSurfaceWidth, isGLOriented, isRealized, setRealized, swapBuffers, toString
-
Methods inherited from interface com.jogamp.opengl.GLSharedContextSetter
setSharedAutoDrawable, setSharedContext
-
-
-
-
Method Detail
-
setSurfaceSize
void setSurfaceSize(int newWidth, int newHeight) throws NativeWindowException, GLExceptionResize thisGLAutoDrawable's surface- Parameters:
newWidth- new width in pixel unitsnewHeight- new height in pixel units- Throws:
NativeWindowException- in case the surface could no be lockedGLException- in case of an error during the resize operation
-
setUpstreamWidget
void setUpstreamWidget(Object newUpstreamWidget)
Set the upstream UI toolkit object.- See Also:
GLAutoDrawable.getUpstreamWidget()
-
-