HAL::CreateRenderTarget

HAL::CreateRenderTarget
virtual RenderTarget* CreateRenderTarget(IDirect3DSurface9* pcolor, IDirect3DSurface9* pdepth);
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 
IDirect3DSurface9* pcolor 
Color for the buffer. 
IDirect3DSurface9* pdepth 
The depth stencil buffer. 
Render::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 created render target.