virtual RenderTarget* CreateRenderTarget(IDirect3DSurface9* pcolor, IDirect3DSurface9* pdepth); virtual RenderTarget* CreateRenderTarget(Render::Texture* texture, bool needsStencil);
CreateRenderTarget creates a render target. Note that we cannot render to textures which have multiple HW representations.
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. |
Returns the created render target.