#include <TileTexture.h>
Public Member Functions |
| TileTexture () |
| Constructor.
|
| ~TileTexture () |
| Destructor.
|
void | CreateTileTexture (const char *pTextureFileName, int numCols, int numRows) |
| Load a created tile texture from file.
|
void | CreateTileTexture (int Width, int Height, int numCols, int numRows) |
| Create the tile texture class with the needed data.
|
int | AddTile (Tile *pTile) |
| Add a tile to the tile texture and returns its ID. Returns -1 on fail.
|
Tile * | GetTile (u32 TileID) |
| Returns the tile by ID.
|
int | GetTileCount () |
| Returns tile count.
|
float | GetU () |
float | GetV () |
double | GetdU () |
double | GetdV () |
Texture * | GetTexture () |
void | Save (char *FileName) |
| Save the current tile texture to the file.
|
void | Load (char *FileName) |
| Load the current tile texture to the file.
|
void | TestTextureCompress () |
| KgeUnknown () |
| Constructor.
|
virtual | ~KgeUnknown () |
| Destructor.
|
virtual void | AddRef () |
| Add a reference to the object.
|
virtual void | DecRef () |
| Decrease a reference from the object. if its reference count get 0 then the object will destroy.
|
u32 | GetRefCount () |
| Return resource reference count.
|
const char * | GetDebugText () |
| returns the instance debug text.
|
Detailed Description
Definition at line 25 of file TileTexture.h.
Constructor & Destructor Documentation
kge::gfx::TileTexture::TileTexture |
( |
| ) |
|
kge::gfx::TileTexture::~TileTexture |
( |
| ) |
|
Member Function Documentation
int kge::gfx::TileTexture::AddTile |
( |
Tile * |
pTile | ) |
|
Add a tile to the tile texture and returns its ID. Returns -1 on fail.
bool kge::gfx::TileTexture::CheckTileCollision |
( |
int |
X, |
|
|
int |
Y, |
|
|
int |
XplusWidth, |
|
|
int |
YplusHeight |
|
) |
| |
|
protected |
void kge::gfx::TileTexture::CreateCompressedTexture |
( |
| ) |
|
|
protected |
Create a compressed texture.
void kge::gfx::TileTexture::CreateTileTexture |
( |
const char * |
pTextureFileName, |
|
|
int |
numCols, |
|
|
int |
numRows |
|
) |
| |
Load a created tile texture from file.
void kge::gfx::TileTexture::CreateTileTexture |
( |
int |
Width, |
|
|
int |
Height, |
|
|
int |
numCols, |
|
|
int |
numRows |
|
) |
| |
Create the tile texture class with the needed data.
double kge::gfx::TileTexture::GetdU |
( |
| ) |
|
|
inline |
double kge::gfx::TileTexture::GetdV |
( |
| ) |
|
|
inline |
Texture* kge::gfx::TileTexture::GetTexture |
( |
| ) |
|
|
inline |
Tile* kge::gfx::TileTexture::GetTile |
( |
u32 |
TileID | ) |
|
|
inline |
int kge::gfx::TileTexture::GetTileCount |
( |
| ) |
|
|
inline |
float kge::gfx::TileTexture::GetU |
( |
| ) |
|
|
inline |
float kge::gfx::TileTexture::GetV |
( |
| ) |
|
|
inline |
void kge::gfx::TileTexture::Load |
( |
char * |
FileName | ) |
|
Load the current tile texture to the file.
void kge::gfx::TileTexture::Save |
( |
char * |
FileName | ) |
|
Save the current tile texture to the file.
void kge::gfx::TileTexture::TestTextureCompress |
( |
| ) |
|
|
inline |
Member Data Documentation
double kge::gfx::TileTexture::m_dU |
|
protected |
double kge::gfx::TileTexture::m_dV |
|
protected |
float kge::gfx::TileTexture::m_fU |
|
protected |
float kge::gfx::TileTexture::m_fUO |
|
protected |
float kge::gfx::TileTexture::m_fV |
|
protected |
float kge::gfx::TileTexture::m_fVO |
|
protected |
int kge::gfx::TileTexture::m_iHeight |
|
protected |
int kge::gfx::TileTexture::m_iMaxMipMapLevel |
|
protected |
int kge::gfx::TileTexture::m_iNumCols |
|
protected |
int kge::gfx::TileTexture::m_iNumRows |
|
protected |
int kge::gfx::TileTexture::m_iWidth |
|
protected |
Texture * kge::gfx::TileTexture::m_pCompressedTexture |
|
protected |
Texture* kge::gfx::TileTexture::m_pTexture |
|
protected |
std::vector<Tile*> kge::gfx::TileTexture::m_vTiles |
|
protected |
The documentation for this class was generated from the following file: