Package com.jogamp.opengl
Interface GLOffscreenAutoDrawable
- All Superinterfaces:
GLAutoDrawable
,GLDrawable
,GLSharedContextSetter
,NativeSurfaceHolder
- All Known Subinterfaces:
GLOffscreenAutoDrawable.FBO
Platform-independent
GLAutoDrawable
specialization,
exposing offscreen functionality.
This class distinguishes itself from GLAutoDrawable
with it's setSurfaceSize(int, int)
functionality.
OpenGL Context Sharing
To share a GLContext
see the following note in the documentation overview:
context sharing
as well as GLSharedContextSetter
.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
FBObject
basedGLOffscreenAutoDrawable
specialization -
Field Summary
Fields inherited from interface com.jogamp.opengl.GLAutoDrawable
SCREEN_CHANGE_ACTION_ENABLED
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
setSurfaceSize
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
Set the upstream UI toolkit object.- See Also:
-