My Project
SallyAPI::Core::CTextureManager Class Reference

Manager for textures. More...

#include <TextureManager.h>

List of all members.

Public Member Functions

SallyAPI::Core::CTextureLoadTexture (const std::string &fileName, bool createMipMaps=false)
 Loads a texture.
SallyAPI::Core::CTextureCreateEmptyTexture (int iWidth, int iHeight, D3DFORMAT d3dFormat)
 Creates an emptey texture.
SallyAPI::Core::CTextureCreateEmptyTextureAsRenderTarget (int iWidth, int iHeight, D3DFORMAT d3dFormat)
 Creates an empty texture as a render target.
SallyAPI::Core::CTextureGetTextureById (int id)
 Gets a texture by identifier.
SallyAPI::Core::CTextureGetTextureByName (const std::string &fileName)
 Gets a texture by name.
bool RemoveTextureById (int id)
 Removes the texture by identifier described by id.
bool RemoveTextureByName (const std::string &fileName)
 Removes the texture by name described by fileName.
bool RemoveTextureByTexture (SallyAPI::Core::CTexture *texture)
 Removes the texture by texture described by texture.

Static Public Member Functions

static
SallyAPI::Core::CTextureManager
GetInstance ()
 Gets the instance.
static void DeleteInstance ()
 Deletes an instance.

Detailed Description

Manager for textures.

Author:
Christian Knobloch
Date:
19.04.2010

Member Function Documentation

SallyAPI::Core::CTexture * CTextureManager::CreateEmptyTexture ( int  iWidth,
int  iHeight,
D3DFORMAT  d3dFormat 
)

Creates an emptey texture.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
iWidthThe width.
iHeightThe height.
d3dFormatThe 3d format.
Returns:
null if it fails, else.
SallyAPI::Core::CTexture * CTextureManager::CreateEmptyTextureAsRenderTarget ( int  iWidth,
int  iHeight,
D3DFORMAT  d3dFormat 
)

Creates an empty texture as a render target.

Author:
Christian Knobloch
Date:
27.04.2010
Parameters:
iWidthThe width.
iHeightThe height.
d3dFormatThe 3d format.
Returns:
null if it fails, else.

Deletes an instance.

Author:
Christian Knobloch
Date:
19.04.2010

Gets the instance.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
null if it fails, else the instance.

Gets a texture by identifier.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
idThe identifier.
Returns:
null if it fails, else the texture by identifier.
SallyAPI::Core::CTexture * CTextureManager::GetTextureByName ( const std::string &  fileName)

Gets a texture by name.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
fileNameFilename of the file.
Returns:
null if it fails, else the texture by name.
SallyAPI::Core::CTexture * CTextureManager::LoadTexture ( const std::string &  fileName,
bool  createMipMaps = false 
)

Loads a texture.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
fileNameFilename of the file.
createMipMapstrue to create mip maps.
Returns:
null if it fails, else the texture.

Removes the texture by identifier described by id.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
idThe identifier.
Returns:
true if it succeeds, false if it fails.
bool CTextureManager::RemoveTextureByName ( const std::string &  fileName)

Removes the texture by name described by fileName.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
fileNameFilename of the file.
Returns:
true if it succeeds, false if it fails.

Removes the texture by texture described by texture.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
[in,out]textureIf non-null, the texture.
Returns:
true if it succeeds, false if it fails.

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