![]() |
Public API Reference |
Interface for automatic view-to-texture rendering. More...
#include <iengine/rendermanager.h>
Public Types | |
| enum | TargetFlags { updateOnce = 1, assumeAlwaysUsed = 2, clearScreen = 4 } |
| Flags for target registration. More... | |
Public Member Functions | |
| virtual void | MarkAsUsed (iTextureHandle *target)=0 |
| Manually mark a texture as used. | |
| virtual void | RegisterRenderTarget (iTextureHandle *target, iView *view, int subtexture=0, uint flags=0)=0 |
| Register a texture and view that should be rendered to the texture. | |
| virtual void | UnregisterRenderTarget (iTextureHandle *target, int subtexture=0)=0 |
| Unregister a texture to automatically render to. | |
Interface for automatic view-to-texture rendering.
Exposed by render managers which support this functionality.
Definition at line 55 of file rendermanager.h.
Flags for target registration.
| updateOnce |
Only render to the target once. |
| assumeAlwaysUsed |
Assumes the target is used every frame - means it is rendered to every frame.
|
| clearScreen |
Clear the frame buffer before rendering to it. |
Definition at line 60 of file rendermanager.h.
| virtual void iRenderManagerTargets::MarkAsUsed | ( | iTextureHandle * | target | ) | [pure virtual] |
Manually mark a texture as used.
Useful when the texture isn't used in the world itself (e.g. for HUD rendering) and thus is not detected as used by the render manager.
| virtual void iRenderManagerTargets::RegisterRenderTarget | ( | iTextureHandle * | target, |
| iView * | view, | ||
| int | subtexture = 0, |
||
| uint | flags = 0 |
||
| ) | [pure virtual] |
Register a texture and view that should be rendered to the texture.
The view is rendered automatically when the texture is used.
| target | The texture to render to. |
| view | The view to render. |
| subtexture | The subtexture. Typically the face of a cube map texture. |
| flags | Combination of TargetFlags. |
| virtual void iRenderManagerTargets::UnregisterRenderTarget | ( | iTextureHandle * | target, |
| int | subtexture = 0 |
||
| ) | [pure virtual] |
Unregister a texture to automatically render to.