Package com.jogamp.opengl
Interface GLOffscreenAutoDrawable
-
- All Superinterfaces:
GLAutoDrawable
,GLDrawable
,GLSharedContextSetter
,NativeSurfaceHolder
- All Known Subinterfaces:
GLOffscreenAutoDrawable.FBO
public interface GLOffscreenAutoDrawable extends GLAutoDrawable, GLSharedContextSetter
Platform-independentGLAutoDrawable
specialization, exposing offscreen functionality.This class distinguishes itself from
GLAutoDrawable
with it'ssetSurfaceSize(int, int)
functionality.OpenGL Context Sharing
To share aGLContext
see the following note in the documentation overview: context sharing as well asGLSharedContextSetter
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
GLOffscreenAutoDrawable.FBO
FBObject
basedGLOffscreenAutoDrawable
specialization
-
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 void
setSurfaceSize(int newWidth, int newHeight)
Resize thisGLAutoDrawable
's surfacevoid
setUpstreamWidget(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, GLException
Resize 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()
-
-