HAL::CreateRenderTarget

HAL::CreateRenderTarget
virtual RenderTarget* CreateRenderTarget(GLuint fbo);
virtual RenderTarget* CreateRenderTarget(Render::Texture* texture, bool needsStencil);
Description

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

Parameters
Parameters 
Description 
GLuint fbo 
_nt_ 
Render::Texture* texture 
The texture associated with the render target. 
bool needsStencil 
A value of true allocates and internal depth/stencil buffer. 
Return Value

Returns the newly created render target.