Polycode::SceneRenderTexture Class Reference

Renders scenes to texture. More...

List of all members.

Public Member Functions

 SceneRenderTexture (Scene *targetScene, Camera *targetCamera, int renderWidth, int renderHeight, bool floatingPoint=false)
 Construct a new render texture with parameters.
Texture * getTargetTexture ()
 Returns the actual render texture.
ScenegetTargetScene ()
 Returns the target scene.
CameragetTargetCamera ()
 Returns the target camera.

Detailed Description

Renders scenes to texture.

This class automatically renders a scene to a texture every frame that you can use to texture anything else. You can set a scene to virtual (see Scene for details) to only render a scene to a texture if you need to. This class automatically adds itself to the render cycle, so you do not need to do anything manual every frame.


Constructor & Destructor Documentation

SceneRenderTexture::SceneRenderTexture ( Scene targetScene,
Camera targetCamera,
int  renderWidth,
int  renderHeight,
bool  floatingPoint = false 
)

Construct a new render texture with parameters.

Parameters:
targetScene Target scene to render.
Camera to render from.
renderWidth Horizontal size of the render texture.
renderHeight Vertical size of the render texture.
floatingPoint Pass true if you want fp16 target renders
Generated on Sat Aug 11 18:04:11 2012 for Polycode by  doxygen 1.6.3