Public Member Functions

xl7::direct3d::rendering::RenderTargetHost Class Reference

#include <RenderTargetHost.h>

Inheritance diagram for xl7::direct3d::rendering::RenderTargetHost:
xl7::direct3d::rendering::Chain xl7::direct3d::rendering::Effect xl7::direct3d::rendering::PostEffect xl7::direct3d::rendering::SceneEffect gl7::repository::effect::ComicStyleEffect gl7::repository::effect::OutliningEffect gl7::repository::effect::TexturedPhongEffect

List of all members.

Public Member Functions

 RenderTargetHost (void)
 RenderTargetHost (RenderTargetHost *parent)
virtual ~RenderTargetHost (void)
bool CreateRenderTargetSurface (const cl7::string_type &identifier, unsigned width=0, unsigned height=0, D3DFORMAT format=D3DFMT_UNKNOWN)
bool CreateDepthStencilSurface (const cl7::string_type &identifier, unsigned width=0, unsigned height=0, D3DFORMAT format=D3DFMT_UNKNOWN)
bool CreateRenderTargetTextureSurface (const cl7::string_type &identifier, unsigned width=0, unsigned height=0, D3DFORMAT format=D3DFMT_UNKNOWN)
bool CreateDepthStencilTextureSurface (const cl7::string_type &identifier, unsigned width=0, unsigned height=0, D3DFORMAT format=D3DFMT_UNKNOWN)
surfaces::SurfaceGetSurface (const cl7::string_type &identifier)
textures::TextureGetTexture (const cl7::string_type &identifier)

Detailed Description

The base class supporting the creation and management of render-target and depth-stencil surfaces. Remarks: Rendering to a texture enables many possibilities, but there are also some restrictions you have to take care of. First the depth stencil surface must always be greater or equal to the size of the render target. Furthermore the format of the render target and the depth stencil surface must be compatible and the multisample type must be the same.


Constructor & Destructor Documentation

xl7::direct3d::rendering::RenderTargetHost::RenderTargetHost ( void   ) 

Default constructor.

xl7::direct3d::rendering::RenderTargetHost::RenderTargetHost ( RenderTargetHost parent  ) 

Explicit constructor.

xl7::direct3d::rendering::RenderTargetHost::~RenderTargetHost ( void   )  [virtual]

Destructor.


Member Function Documentation

bool xl7::direct3d::rendering::RenderTargetHost::CreateDepthStencilSurface ( const cl7::string_type identifier,
unsigned  width = 0,
unsigned  height = 0,
D3DFORMAT  format = D3DFMT_UNKNOWN 
)

Creates a new single depth-stencil surface with the given identifier.

bool xl7::direct3d::rendering::RenderTargetHost::CreateDepthStencilTextureSurface ( const cl7::string_type identifier,
unsigned  width = 0,
unsigned  height = 0,
D3DFORMAT  format = D3DFMT_UNKNOWN 
)

Creates a new depth-stencil surface and an underlying texture with the given identifier.

bool xl7::direct3d::rendering::RenderTargetHost::CreateRenderTargetSurface ( const cl7::string_type identifier,
unsigned  width = 0,
unsigned  height = 0,
D3DFORMAT  format = D3DFMT_UNKNOWN 
)

Creates a new single render-target surface with the given identifier.

bool xl7::direct3d::rendering::RenderTargetHost::CreateRenderTargetTextureSurface ( const cl7::string_type identifier,
unsigned  width = 0,
unsigned  height = 0,
D3DFORMAT  format = D3DFMT_UNKNOWN 
)

Creates a new render-target surface and an underlying texture with the given identifier.

surfaces::Surface * xl7::direct3d::rendering::RenderTargetHost::GetSurface ( const cl7::string_type identifier  ) 

Searches for and returns the surface with the given identifier.

textures::Texture * xl7::direct3d::rendering::RenderTargetHost::GetTexture ( const cl7::string_type identifier  ) 

Searches for and returns the texture with the given identifier.


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