#include <SurfaceManager.h>
Public Member Functions | |
| SurfaceManager (void) | |
| ~SurfaceManager (void) | |
| Surface * | CreateSurface (unsigned width, unsigned height, D3DFORMAT format, D3DPOOL pool=D3DPOOL_DEFAULT) |
| Surface * | CreateSurface (textures::Texture *texture) |
| ColorRenderTarget * | CreateRenderTarget (unsigned width, unsigned height, D3DFORMAT format, D3DMULTISAMPLE_TYPE multi_sample_type=D3DMULTISAMPLE_NONE, unsigned multi_sample_quality=0) |
| DepthStencilTarget * | CreateDepthStencil (unsigned width, unsigned height, D3DFORMAT format, D3DMULTISAMPLE_TYPE multi_sample_type=D3DMULTISAMPLE_NONE, unsigned multi_sample_quality=0) |
The class for managing (texture) surfaces in general and render targets in particular.
| xl7::direct3d::surfaces::SurfaceManager::SurfaceManager | ( | void | ) |
Default constructor.
| xl7::direct3d::surfaces::SurfaceManager::~SurfaceManager | ( | void | ) |
Destructor.
| DepthStencilTarget * xl7::direct3d::surfaces::SurfaceManager::CreateDepthStencil | ( | unsigned | width, | |
| unsigned | height, | |||
| D3DFORMAT | format, | |||
| D3DMULTISAMPLE_TYPE | multi_sample_type = D3DMULTISAMPLE_NONE, |
|||
| unsigned | multi_sample_quality = 0 | |||
| ) |
Creates a new depth-stencil surface.
| ColorRenderTarget * xl7::direct3d::surfaces::SurfaceManager::CreateRenderTarget | ( | unsigned | width, | |
| unsigned | height, | |||
| D3DFORMAT | format, | |||
| D3DMULTISAMPLE_TYPE | multi_sample_type = D3DMULTISAMPLE_NONE, |
|||
| unsigned | multi_sample_quality = 0 | |||
| ) |
Creates a new render-target surface.
| Surface * xl7::direct3d::surfaces::SurfaceManager::CreateSurface | ( | unsigned | width, | |
| unsigned | height, | |||
| D3DFORMAT | format, | |||
| D3DPOOL | pool = D3DPOOL_DEFAULT | |||
| ) |
Creates a new off-screen surface.
| Surface * xl7::direct3d::surfaces::SurfaceManager::CreateSurface | ( | textures::Texture * | texture | ) |
Creates a new surface from a texture.
1.7.1