Polycode
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:
targetSceneTarget scene to render.
Camerato render from.
renderWidthHorizontal size of the render texture.
renderHeightVertical size of the render texture.
floatingPointPass true if you want fp16 target renders