public class FBOGlimpseCanvas extends AbstractGlimpseCanvas
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_TEXTURE_UNIT |
Constructor and Description |
---|
FBOGlimpseCanvas(javax.media.opengl.GLContext glContext,
int width,
int height) |
FBOGlimpseCanvas(javax.media.opengl.GLContext glContext,
int width,
int height,
boolean isBackgroundOpaque) |
FBOGlimpseCanvas(javax.media.opengl.GLProfile glProfile,
javax.media.opengl.GLContext glContext,
int width,
int height)
Deprecated.
Use
FBOGlimpseCanvas(GLContext,int,int) instead. The context implicitly provides a GLProfile. |
FBOGlimpseCanvas(javax.media.opengl.GLProfile glProfile,
int width,
int height) |
FBOGlimpseCanvas(String glProfileName,
javax.media.opengl.GLContext glContext,
int width,
int height)
Deprecated.
Use
FBOGlimpseCanvas(GLContext,int,int) instead. The context implicitly provides a GLProfile. |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the native surface which this canvas draws to.
|
javax.media.opengl.GLContext |
getGLContext() |
javax.media.opengl.GLOffscreenAutoDrawable.FBO |
getGLDrawable() |
javax.media.opengl.GLProfile |
getGLProfile() |
TextureProjected2D |
getProjectedTexture() |
int[] |
getSurfaceScale()
Returns the scale factors needed to convert the _native_ pixel coordinates to
the _window_ pixel coordinates.
|
GlimpseBounds |
getTargetBounds() |
GlimpseBounds |
getTargetBounds(GlimpseTargetStack stack)
Returns the cached or calculated bounds of this GlimpseTarget for a particular context.
|
com.jogamp.opengl.util.texture.Texture |
getTexture() |
int |
getTextureUnit() |
boolean |
isDestroyed() |
boolean |
isVisible()
If true, the GlimpseTarget should be drawn on the screen and mouse events
should be dispatched for it.
|
void |
paint()
Lays out any
GlimpseLayout instances
attached to the GlimpseCanvas and paints all
GlimpsePainter instances attached
to the GlimpseLayouts. |
void |
resize(int width,
int height) |
BufferedImage |
toBufferedImage() |
addDisposeListener, addLayout, addLayout, dispose, disposeAttached, disposePainter, getGlimpseContext, getTargetChildren, isEventConsumer, isEventGenerator, removeAllLayouts, removeLayout, setEventConsumer, setEventGenerator, setLookAndFeel, setZOrder
public static final int DEFAULT_TEXTURE_UNIT
public FBOGlimpseCanvas(javax.media.opengl.GLProfile glProfile, int width, int height)
public FBOGlimpseCanvas(javax.media.opengl.GLContext glContext, int width, int height)
public FBOGlimpseCanvas(javax.media.opengl.GLContext glContext, int width, int height, boolean isBackgroundOpaque)
public FBOGlimpseCanvas(String glProfileName, javax.media.opengl.GLContext glContext, int width, int height)
FBOGlimpseCanvas(GLContext,int,int)
instead. The context implicitly provides a GLProfile.public FBOGlimpseCanvas(javax.media.opengl.GLProfile glProfile, javax.media.opengl.GLContext glContext, int width, int height)
FBOGlimpseCanvas(GLContext,int,int)
instead. The context implicitly provides a GLProfile.public void resize(int width, int height)
public BufferedImage toBufferedImage()
public int getTextureUnit()
public TextureProjected2D getProjectedTexture()
public com.jogamp.opengl.util.texture.Texture getTexture()
public javax.media.opengl.GLProfile getGLProfile()
public javax.media.opengl.GLOffscreenAutoDrawable.FBO getGLDrawable()
public javax.media.opengl.GLContext getGLContext()
public void paint()
GlimpseCanvas
GlimpseLayout
instances
attached to the GlimpseCanvas and paints all
GlimpsePainter
instances attached
to the GlimpseLayouts.public GlimpseBounds getTargetBounds()
public GlimpseBounds getTargetBounds(GlimpseTargetStack stack)
GlimpseTarget
public void destroy()
GlimpseCanvas
#disposeAttached()
.GlimpseCanvas.disposeAttached()
public boolean isDestroyed()
#dispose()
has been successfully called. Once true, this GlimpseCanvas is no longer valid for rendering.public boolean isVisible()
GlimpseTarget
public int[] getSurfaceScale()
GlimpseCanvas
Copyright © 2016 Metron, Inc.. All rights reserved.