HAL::CreateRenderTarget

HAL::CreateRenderTarget
virtual RenderTarget* CreateRenderTarget(Texture* texture, bool needsStencil) = 0;
Description

CreateRenderTarget creates a user render target. Note that we cannot render to textures which have multiple HW representations. 

Note: Platform specific versions of CreateRenderTarget exist in platform-based derived HAL.

Parameters
Parameters 
Description 
Texture* texture 
The texture associated with the render target. 
bool needsStencil 
A Boolean value of true allocates an internal depth/stencil buffer. 
Return Value

Returns the newly created render target.