|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjogamp.opengl.GLAutoDrawableBase
javax.media.opengl.GLAutoDrawableDelegate
com.jogamp.opengl.OffscreenAutoDrawable
public class OffscreenAutoDrawable
Platform-independent class exposing FBO offscreen functionality to applications.
This class distinguishes itself from GLAutoDrawableDelegate
with it's setSize(int, int)
functionality.
Field Summary |
---|
Fields inherited from class javax.media.opengl.GLAutoDrawableDelegate |
---|
DEBUG |
Fields inherited from interface javax.media.opengl.GLAutoDrawable |
---|
SCREEN_CHANGE_ACTION_ENABLED |
Fields inherited from interface javax.media.opengl.FPSCounter |
---|
DEFAULT_FRAMES_PER_INTERVAL |
Constructor Summary | |
---|---|
OffscreenAutoDrawable(GLDrawable drawable,
GLContext context,
boolean ownDevice)
|
Method Summary | |
---|---|
FBObject |
getFBObject()
If the underlying GLDrawable is an FBO implementation
and contains an {#link FBObject}, the same is returned. |
boolean |
setSize(int newWidth,
int newHeight)
Attempts to resize this offscreen auto drawable, if supported by the underlying {@link GLDrawable). |
Methods inherited from class javax.media.opengl.GLAutoDrawableDelegate |
---|
destroy, display, getFactory, getUpstreamWidget, setRealized, swapBuffers, windowDestroyNotifyOp, windowRepaintOp, windowResizedOp |
Methods inherited from class jogamp.opengl.GLAutoDrawableBase |
---|
addGLEventListener, addGLEventListener, createContext, defaultSwapBuffers, getAnimator, getAutoSwapBufferMode, getChosenGLCapabilities, getContext, getContextCreationFlags, getDelegatedDrawable, getFPSStartTime, getGL, getGLProfile, getHandle, getHeight, getLastFPS, getLastFPSPeriod, getLastFPSUpdateTime, getNativeSurface, getSkipContextReleaseThread, getTotalFPS, getTotalFPSDuration, getTotalFPSFrames, getUpdateFPSFrames, getWidth, invoke, isRealized, removeGLEventListener, removeGLEventListener, resetFPSCounter, setAnimator, setAutoSwapBufferMode, setContext, setContextCreationFlags, setGL, setSkipContextReleaseThread, setUpdateFPSFrames |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.media.opengl.GLDrawable |
---|
toString |
Constructor Detail |
---|
public OffscreenAutoDrawable(GLDrawable drawable, GLContext context, boolean ownDevice)
drawable
- a valid GLDrawable
, may not be realized yet.context
- a valid GLContext
, may not be made current (created) yet.ownDevice
- pass true
if AbstractGraphicsDevice.close()
shall be issued,
otherwise pass false
. Closing the device is required in case
the drawable is created w/ it's own new instance, e.g. offscreen drawables,
and no further lifecycle handling is applied.Method Detail |
---|
public boolean setSize(int newWidth, int newHeight) throws GLException
newWidth
- newHeight
-
true
if resize was executed, otherwise false
.
GLException
- in case of an error during the resize operationpublic FBObject getFBObject()
GLDrawable
is an FBO implementation
and contains an {#link FBObject}, the same is returned.
Otherwise returns null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |