Public Member Functions

xl7::direct3d::surfaces::SurfaceManager Class Reference

#include <SurfaceManager.h>

Inheritance diagram for xl7::direct3d::surfaces::SurfaceManager:
xl7::directx::ResourceManager

List of all members.

Public Member Functions

 SurfaceManager (void)
 ~SurfaceManager (void)
SurfaceCreateSurface (unsigned width, unsigned height, D3DFORMAT format, D3DPOOL pool=D3DPOOL_DEFAULT)
SurfaceCreateSurface (textures::Texture *texture)
ColorRenderTargetCreateRenderTarget (unsigned width, unsigned height, D3DFORMAT format, D3DMULTISAMPLE_TYPE multi_sample_type=D3DMULTISAMPLE_NONE, unsigned multi_sample_quality=0)
DepthStencilTargetCreateDepthStencil (unsigned width, unsigned height, D3DFORMAT format, D3DMULTISAMPLE_TYPE multi_sample_type=D3DMULTISAMPLE_NONE, unsigned multi_sample_quality=0)

Detailed Description

The class for managing (texture) surfaces in general and render targets in particular.


Constructor & Destructor Documentation

xl7::direct3d::surfaces::SurfaceManager::SurfaceManager ( void   ) 

Default constructor.

xl7::direct3d::surfaces::SurfaceManager::~SurfaceManager ( void   ) 

Destructor.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines