org.xith3d.render
Interface RenderTarget

All Known Implementing Classes:
ImageRenderTarget, TextureRenderTarget

public interface RenderTarget

A RenderTarget can be used on RenderPass level to make the Renderer render to something different than the standard frame buffer.


Method Summary
 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).
 GroupNode getGroup()
           
 boolean isBackgroundRenderingEnabled()
          If this is true, the background is rendered into the RenderTarget.
 void setBackgroundRenderingEnabled(boolean enabled)
          If this is true, the background is rendered into the RenderTarget.
 

Method Detail

getGroup

GroupNode getGroup()
Returns:
the GroupNode to be rendered to this target.

setBackgroundRenderingEnabled

void setBackgroundRenderingEnabled(boolean enabled)
If this is true, the background is rendered into the RenderTarget.

Parameters:
enabled -

isBackgroundRenderingEnabled

boolean isBackgroundRenderingEnabled()
If this is true, the background is rendered into the RenderTarget.


freeOpenGLResources

void freeOpenGLResources(CanvasPeer canvasPeer)
This method frees OpenGL resources (names) for all Nodes in the traversal of this Node(-Group).

Parameters:
canvasPeer -

freeOpenGLResources

void freeOpenGLResources(Canvas3D canvas)
This method frees OpenGL resources (names) for all Nodes in the traversal of this Node(-Group).

Parameters:
canvas -