virtual RenderTarget* CreateRenderTarget(const ImageSize& size, RenderBufferType type, ImageFormat format, Texture* texture = 0) = 0;
CreateRenderTarget creates a RenderTarget. Texture* should be provided only for RBuffer_Texture type.
|
Parameters |
Description |
|
const ImageSize& size |
The buffer size. |
|
RenderBufferType type |
The type of the render buffer. |
|
ImageFormat format |
The format of the render target. |
|
Texture* texture = 0 |
The texture that is attached to a render target. |
Returns the primary render target.