|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.render.TextureRenderTarget
public class TextureRenderTarget
This type of RenderTarget is used for render-to-texture. Apply it to a RenderPass to bring it into effect.
| Constructor Summary | |
|---|---|
TextureRenderTarget(GroupNode group,
Texture texture)
|
|
TextureRenderTarget(GroupNode group,
Texture texture,
boolean pixelReadbackEnabled)
|
|
TextureRenderTarget(GroupNode group,
Texture texture,
org.openmali.vecmath2.Colorf backgroundColor)
|
|
TextureRenderTarget(GroupNode group,
Texture texture,
org.openmali.vecmath2.Colorf backgroundColor,
boolean pixelReadbackEnabled)
|
|
| Method Summary | |
|---|---|
protected void |
finalize()
|
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()
|
GroupNode |
getGroup()
|
SceneGraphOpenGLReferences |
getOpenGLReferences()
|
Texture |
getTexture()
|
boolean |
isBackgroundRenderingEnabled()
If this is true, the background is rendered into the RenderTarget. |
boolean |
isPixelReadbackEnabled()
Enables or disables pixel readback from the GL to local pixel data. |
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 |
setPixelReadbackEnabled(boolean enabled)
Enables or disables pixel readback from the GL to local pixel data. |
void |
setTexture(Texture texture)
Sets the assotiated Texture instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextureRenderTarget(GroupNode group,
Texture texture,
org.openmali.vecmath2.Colorf backgroundColor,
boolean pixelReadbackEnabled)
public TextureRenderTarget(GroupNode group,
Texture texture,
boolean pixelReadbackEnabled)
public TextureRenderTarget(GroupNode group,
Texture texture,
org.openmali.vecmath2.Colorf backgroundColor)
public TextureRenderTarget(GroupNode group,
Texture texture)
| Method Detail |
|---|
public final SceneGraphOpenGLReferences getOpenGLReferences()
public void setGroup(GroupNode group)
public final GroupNode getGroup()
getGroup in interface RenderTargetpublic void setTexture(Texture texture)
public final Texture getTexture()
public 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 void setPixelReadbackEnabled(boolean enabled)
Texture2D.
enabled - public final boolean isPixelReadbackEnabled()
public void freeOpenGLResources(CanvasPeer canvasPeer)
freeOpenGLResources in interface RenderTargetpublic final void freeOpenGLResources(Canvas3D canvas)
freeOpenGLResources in interface RenderTargetprotected void finalize()
finalize in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||