Public Member Functions

xl7::direct3d::textures::TextureManager Class Reference

#include <TextureManager.h>

Inheritance diagram for xl7::direct3d::textures::TextureManager:
xl7::directx::ResourceManager

List of all members.

Public Member Functions

 TextureManager (void)
 ~TextureManager (void)
TextureCreateTexture (const cl7::string_type &identifier, unsigned width, unsigned height, unsigned levels=0, unsigned usage=0, D3DFORMAT format=D3DFMT_UNKNOWN, D3DPOOL pool=D3DPOOL_MANAGED)
TextureCreateTexture (const cl7::string_type &identifier, const images::Image &image, unsigned width=0, unsigned height=0, unsigned levels=0, unsigned usage=0, D3DFORMAT format=D3DFMT_UNKNOWN, D3DPOOL pool=D3DPOOL_MANAGED)
TextureLoadTextureFromFile (const cl7::string_type &identifier, const cl7::string_type &file_name, unsigned width=0, unsigned height=0, unsigned levels=0, unsigned usage=0, D3DFORMAT format=D3DFMT_UNKNOWN, D3DPOOL pool=D3DPOOL_MANAGED)
TextureCreateRenderTarget (const cl7::string_type &identifier, unsigned width, unsigned height, D3DFORMAT format=D3DFMT_UNKNOWN)
TextureCreateDepthStencil (const cl7::string_type &identifier, unsigned width, unsigned height, D3DFORMAT format=D3DFMT_UNKNOWN)

Detailed Description

The class for managing textures.


Constructor & Destructor Documentation

xl7::direct3d::textures::TextureManager::TextureManager ( void   ) 

Default constructor.

xl7::direct3d::textures::TextureManager::~TextureManager ( void   ) 

Destructor.


Member Function Documentation

Texture * xl7::direct3d::textures::TextureManager::CreateDepthStencil ( const cl7::string_type identifier,
unsigned  width,
unsigned  height,
D3DFORMAT  format = D3DFMT_UNKNOWN 
)

Creates a new texture as a depth-stencil buffer.

Texture * xl7::direct3d::textures::TextureManager::CreateRenderTarget ( const cl7::string_type identifier,
unsigned  width,
unsigned  height,
D3DFORMAT  format = D3DFMT_UNKNOWN 
)

Creates a new texture as a render target.

Texture * xl7::direct3d::textures::TextureManager::CreateTexture ( const cl7::string_type identifier,
const images::Image image,
unsigned  width = 0,
unsigned  height = 0,
unsigned  levels = 0,
unsigned  usage = 0,
D3DFORMAT  format = D3DFMT_UNKNOWN,
D3DPOOL  pool = D3DPOOL_MANAGED 
)

Creates a new texture from an image.

Texture * xl7::direct3d::textures::TextureManager::CreateTexture ( const cl7::string_type identifier,
unsigned  width,
unsigned  height,
unsigned  levels = 0,
unsigned  usage = 0,
D3DFORMAT  format = D3DFMT_UNKNOWN,
D3DPOOL  pool = D3DPOOL_MANAGED 
)

Creates a new texture.

Texture * xl7::direct3d::textures::TextureManager::LoadTextureFromFile ( const cl7::string_type identifier,
const cl7::string_type file_name,
unsigned  width = 0,
unsigned  height = 0,
unsigned  levels = 0,
unsigned  usage = 0,
D3DFORMAT  format = D3DFMT_UNKNOWN,
D3DPOOL  pool = D3DPOOL_MANAGED 
)

Creates a new texture by loading it from a file.


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