|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.render.ImageRenderTarget
public class ImageRenderTarget
This type of RenderTarget is used to render (copy) the scene to a BufferedImage. Apply it to a RenderPass to bring it into effect.
| Constructor Summary | |
|---|---|
ImageRenderTarget(GroupNode group)
|
|
ImageRenderTarget(GroupNode group,
org.openmali.vecmath2.Colorf backgroundColor)
|
|
| Method Summary | |
|---|---|
void |
copyBufferToImage()
|
void |
freeOpenGLResources(Canvas3D canvas)
This method frees OpenGL resources (names) for all Nodes in the traversal of this Node(-Group). |
void |
freeOpenGLResources(CanvasPeer canvasPeer)
This method frees OpenGL resources (names) for all Nodes in the traversal of this Node(-Group). |
org.openmali.vecmath2.Colorf |
getBackgroundColor()
|
java.nio.ByteBuffer |
getByteBuffer()
|
GroupNode |
getGroup()
|
java.awt.image.BufferedImage |
getImage()
|
boolean |
isBackgroundRenderingEnabled()
If this is true, the background is rendered into the RenderTarget. |
void |
setBackgroundColor(org.openmali.vecmath2.Colorf color)
Sets the color, the texture is to be cleared before the Renderer renders to it. |
void |
setBackgroundRenderingEnabled(boolean enabled)
If this is true, the background is rendered into the RenderTarget. |
void |
setGroup(GroupNode group)
Sets the Group to be rendered to this RenderTarget. |
void |
setImage(java.awt.image.BufferedImage image)
Sets the assotiated Texture instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageRenderTarget(GroupNode group,
org.openmali.vecmath2.Colorf backgroundColor)
public ImageRenderTarget(GroupNode group)
| Method Detail |
|---|
public final void setGroup(GroupNode group)
public final GroupNode getGroup()
getGroup in interface RenderTargetpublic final void setImage(java.awt.image.BufferedImage image)
image - public final java.awt.image.BufferedImage getImage()
public final java.nio.ByteBuffer getByteBuffer()
public final void setBackgroundColor(org.openmali.vecmath2.Colorf color)
null to do no clearing.
public final org.openmali.vecmath2.Colorf getBackgroundColor()
null to do no clearing.public void setBackgroundRenderingEnabled(boolean enabled)
setBackgroundRenderingEnabled in interface RenderTargetpublic final boolean isBackgroundRenderingEnabled()
isBackgroundRenderingEnabled in interface RenderTargetpublic final void copyBufferToImage()
public void freeOpenGLResources(CanvasPeer canvasPeer)
freeOpenGLResources in interface RenderTargetpublic final void freeOpenGLResources(Canvas3D canvas)
freeOpenGLResources in interface RenderTarget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||