My Project
SallyAPI::Core::CTexture Class Reference

Texture. More...

#include <Texture.h>

List of all members.

Public Member Functions

 CTexture ()
 Default constructor.
virtual ~CTexture ()
bool LoadTexture (const std::string &fileName, int id, bool createMipMaps=false)
 Loads a texture.
bool CreateEmpty (int iWidth, int iHeight, int id, D3DFORMAT d3dFormat)
 Creates an empty.
bool CreateEmptyRenderTarget (int iWidth, int iHeight, int id, D3DFORMAT d3dFormat)
 Creates an empty render target.
std::string GetFileName ()
 Gets the file name.
LPDIRECT3DTEXTURE9 GetTexture ()
 Gets the texture.
int GetWidth ()
 Gets the width.
int GetHeight ()
 Gets the height.
int GetId ()
 Gets the identifier.
void SetTexture (LPDIRECT3DTEXTURE9 m_Texture)
 Sets a texture.

Detailed Description

Texture.

Author:
Christian Knobloch
Date:
19.04.2010

Constructor & Destructor Documentation

Default constructor.

Author:
Christian Knobloch
Date:
19.04.2010
CTexture::~CTexture ( ) [virtual]

Member Function Documentation

bool CTexture::CreateEmpty ( int  iWidth,
int  iHeight,
int  id,
D3DFORMAT  d3dFormat 
)

Creates an empty.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
iWidthThe width.
iHeightThe height.
idThe identifier.
d3dFormatThe 3d format.
Returns:
true if it succeeds, false if it fails.
bool CTexture::CreateEmptyRenderTarget ( int  iWidth,
int  iHeight,
int  id,
D3DFORMAT  d3dFormat 
)

Creates an empty render target.

Author:
Christian Knobloch
Date:
01.06.2010
Parameters:
iWidthThe width.
iHeightThe height.
idThe identifier.
d3dFormatThe 3d format.
Returns:
true if it succeeds, false if it fails.
std::string CTexture::GetFileName ( )

Gets the file name.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The file name.

Gets the height.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The height.
int CTexture::GetId ( )

Gets the identifier.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The identifier.
LPDIRECT3DTEXTURE9 CTexture::GetTexture ( )

Gets the texture.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The texture.

Gets the width.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The width.
bool CTexture::LoadTexture ( const std::string &  fileName,
int  id,
bool  createMipMaps = false 
)

Loads a texture.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
fileNameFilename of the file.
idThe identifier.
createMipMapstrue to create mip maps.
Returns:
true if it succeeds, false if it fails.
void CTexture::SetTexture ( LPDIRECT3DTEXTURE9  m_Texture)

Sets a texture.

Author:
Christian Knobloch
Date:
03.12.2010
Parameters:
m_TextureThe texture.

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