#include <TextureManager.h>
Public Member Functions | |
| TextureManager (void) | |
| ~TextureManager (void) | |
| Texture * | CreateTexture (const cl7::string_type &identifier, unsigned width, unsigned height, unsigned levels=0, unsigned usage=0, D3DFORMAT format=D3DFMT_UNKNOWN, D3DPOOL pool=D3DPOOL_MANAGED) |
| Texture * | 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) |
| Texture * | 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) |
| Texture * | CreateRenderTarget (const cl7::string_type &identifier, unsigned width, unsigned height, D3DFORMAT format=D3DFMT_UNKNOWN) |
| Texture * | CreateDepthStencil (const cl7::string_type &identifier, unsigned width, unsigned height, D3DFORMAT format=D3DFMT_UNKNOWN) |
The class for managing textures.
| xl7::direct3d::textures::TextureManager::TextureManager | ( | void | ) |
Default constructor.
| xl7::direct3d::textures::TextureManager::~TextureManager | ( | void | ) |
Destructor.
| 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.
1.7.1