Top Description Inners Fields Methods
com.jogamp.opengl

public Interface GLOffscreenAutoDrawable

extends GLAutoDrawable, GLSharedContextSetter
Known Direct Subinterfaces
com.jogamp.opengl.GLOffscreenAutoDrawable.FBO
Known Direct Implementers
jogamp.opengl.GLOffscreenAutoDrawableImpl
Imports
com.jogamp.nativewindow.NativeWindowException, com.jogamp.opengl.FBObject

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 and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Field Summary

Inherited from com.jogamp.opengl.GLAutoDrawable:
SCREEN_CHANGE_ACTION_ENABLED

Method Summary

Modifier and TypeMethod and Description
public void
setSurfaceSize(int
new width in pixel units
newWidth
,
int
new height in pixel units
newHeight
)

Resize this GLAutoDrawable's surface

public void
setUpstreamWidget(Object newUpstreamWidget)

Set the upstream UI toolkit object.

Inherited from com.jogamp.opengl.GLAutoDrawable:
addGLEventListeneraddGLEventListenerareAllGLEventListenerInitializedcreateContextdestroydisplaydisposeGLEventListenerflushGLRunnablesgetAnimatorgetAutoSwapBufferModegetContextgetContextCreationFlagsgetDelegatedDrawablegetExclusiveContextThreadgetGLgetGLEventListenergetGLEventListenerCountgetGLEventListenerInitStategetUpstreamLockgetUpstreamWidgetinvokeinvokeisThreadGLCapableremoveGLEventListenersetAnimatorsetAutoSwapBufferModesetContextsetContextCreationFlagssetExclusiveContextThreadsetGLsetGLEventListenerInitState
Inherited from com.jogamp.opengl.GLSharedContextSetter:
setSharedAutoDrawablesetSharedContext

Method Detail

setSurfaceSizeback to summary
public void setSurfaceSize(int newWidth, int newHeight) throws NativeWindowException, GLException

Resize this GLAutoDrawable's surface

Parameters
newWidth:int

new width in pixel units

newHeight:int

new height in pixel units

Exceptions
NativeWindowException:
in case the surface could no be locked
GLException:
in case of an error during the resize operation
setUpstreamWidgetback to summary
public void setUpstreamWidget(Object newUpstreamWidget)

Set the upstream UI toolkit object.

See Also
getUpstreamWidget()
com.jogamp.opengl back to summary

public Interface GLOffscreenAutoDrawable.FBO

extends GLOffscreenAutoDrawable, GLFBODrawable
Known Direct Implementers
jogamp.opengl.GLOffscreenAutoDrawableImpl.FBOImpl

FBObject based GLOffscreenAutoDrawable specialization

Field Summary

Inherited from com.jogamp.opengl.GLFBODrawable:
FBOMODE_USE_TEXTURE

Method Summary

Inherited from com.jogamp.opengl.GLFBODrawable:
getColorbuffergetFBObjectgetFBOModegetNumBuffersgetNumSamplesgetTextureUnitisInitializedresetSizesetFBOModesetNumBufferssetNumSamplessetTextureUnit
Inherited from com.jogamp.opengl.GLOffscreenAutoDrawable:
setSurfaceSizesetUpstreamWidget