public class OffscreenAutoDrawable extends GLAutoDrawableDelegate
This class distinguishes itself from GLAutoDrawableDelegate
with it's setSize(int, int) functionality.
DEBUGSCREEN_CHANGE_ACTION_ENABLEDDEFAULT_FRAMES_PER_INTERVAL| Constructor and Description |
|---|
OffscreenAutoDrawable(GLDrawable drawable,
GLContext context,
boolean ownDevice) |
| Modifier and Type | Method and Description |
|---|---|
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).
|
destroy, display, getFactory, getUpstreamWidget, setRealized, swapBuffers, windowDestroyNotifyOp, windowRepaintOp, windowResizedOpaddGLEventListener, 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, setUpdateFPSFramesequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStringpublic 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.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.Copyright 2010 JogAmp Community.