virtual bool PushRenderTarget(RenderTarget* prt, unsigned flags = 0, const RectF& frameRect = RectF(), Color clearColor = 0);
PushRenderTarget begins rendering to the specified target. The view is adjusted so that frameRect fills the framebuffer. Texture referenced by prt must not be used as an input until PopRenderTarget. Flags are available, see PushRenderTargetFlags. If the PRT_NoClear flag is not set, the target will be cleared to 'clearColor'.
If PRT_Subscene is in the flags, the frameRect represents the scene space area that contains the content to be rendered.
Parameters |
Description |
RenderTarget* prt |
The render target. |
unsigned flags = 0 |
Flags available to the PushRenderTarget method. |
const RectF& frameRect = RectF() |
The frame rectangle. |
Color clearColor = 0 |
The color to clear the buffer with. |