Polycode
|
Renders scenes to texture. More...
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. | |
Scene * | getTargetScene () |
Returns the target scene. | |
Camera * | getTargetCamera () |
Returns the target camera. |
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.
SceneRenderTexture::SceneRenderTexture | ( | Scene * | targetScene, |
Camera * | targetCamera, | ||
int | renderWidth, | ||
int | renderHeight, | ||
bool | floatingPoint = false |
||
) |
Construct a new render texture with 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 |