#include <Texture.h>
Public Member Functions |
| | Texture (const u32 Handle, const char *FileName, const char *Name, void *ExtraParam) |
| | Constructor.
|
| | Texture (ImageData *pImg) |
| | ImageData constructor.
|
| virtual | ~Texture () |
| | Destructor.
|
| virtual bool | CreateTexture (int Width, int Height, TextureFormat fmt=ETF_A8R8G8B8, int numMipMaps=0, bool StoreCopy=true) |
| | Create an empty texture.
|
| virtual bool | SetData (u8 *Data, int DataSize, int mipmapLevel=0) |
| | Sets the texture data.
|
| virtual bool | SetData (int X, int Y, int Width, int Height, u8 *Data, u32 DataSize, int mipmaplevel=0) |
| | Sets a region of texture data.
|
| bool | IsAntiAliased () |
| | Check if the target is an Anti Aliased surface.
|
| virtual u8 * | GetCopyData (int MipMapLevel) |
| int | GetNumberOfMipmapLevels () |
| virtual void * | GetD3DTexture () |
| virtual void * | Lock () |
| virtual void | UnLock () |
| virtual TextureFormat | GetFormat () |
| int | GetWidth () |
| int | GetHeight () |
| | Resource (const u32 Handle, const char *FileName, const char *Name, void *ExtraParam) |
| | Constructor.
|
| virtual | ~Resource () |
| | Destructor.
|
| virtual const char * | GetFileName () |
| | Return resource file name.
|
| virtual const char * | GetName () |
| | Return resource name.
|
| virtual u32 | GetHandle () |
| | Return resource handle.
|
| | 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.
|
Static Public Member Functions |
| static int | GetPowerOf2Size (int size, int &mipmaplevel) |
| | Returns a power of 2 size for texture.
|
Detailed Description
Texture class
Definition at line 31 of file Texture.h.
Constructor & Destructor Documentation
| kge::gfx::Texture::Texture |
( |
const u32 |
Handle, |
|
|
const char * |
FileName, |
|
|
const char * |
Name, |
|
|
void * |
ExtraParam |
|
) |
| |
|
inline |
| kge::gfx::Texture::Texture |
( |
ImageData * |
pImg | ) |
|
| virtual kge::gfx::Texture::~Texture |
( |
| ) |
|
|
inlinevirtual |
Member Function Documentation
| virtual bool kge::gfx::Texture::CreateTexture |
( |
int |
Width, |
|
|
int |
Height, |
|
|
TextureFormat |
fmt = ETF_A8R8G8B8, |
|
|
int |
numMipMaps = 0, |
|
|
bool |
StoreCopy = true |
|
) |
| |
|
inlinevirtual |
Create an empty texture.
Definition at line 48 of file Texture.h.
| virtual u8* kge::gfx::Texture::GetCopyData |
( |
int |
MipMapLevel | ) |
|
|
inlinevirtual |
| virtual void* kge::gfx::Texture::GetD3DTexture |
( |
| ) |
|
|
inlinevirtual |
| int kge::gfx::Texture::GetHeight |
( |
| ) |
|
|
inline |
| int kge::gfx::Texture::GetNumberOfMipmapLevels |
( |
| ) |
|
|
inline |
| static int kge::gfx::Texture::GetPowerOf2Size |
( |
int |
size, |
|
|
int & |
mipmaplevel |
|
) |
| |
|
inlinestatic |
| int kge::gfx::Texture::GetWidth |
( |
| ) |
|
|
inline |
| bool kge::gfx::Texture::IsAntiAliased |
( |
| ) |
|
|
inline |
Check if the target is an Anti Aliased surface.
Definition at line 88 of file Texture.h.
| virtual void* kge::gfx::Texture::Lock |
( |
| ) |
|
|
inlinevirtual |
| virtual bool kge::gfx::Texture::SetData |
( |
u8 * |
Data, |
|
|
int |
DataSize, |
|
|
int |
mipmapLevel = 0 |
|
) |
| |
|
inlinevirtual |
Sets the texture data.
Definition at line 57 of file Texture.h.
| virtual bool kge::gfx::Texture::SetData |
( |
int |
X, |
|
|
int |
Y, |
|
|
int |
Width, |
|
|
int |
Height, |
|
|
u8 * |
Data, |
|
|
u32 |
DataSize, |
|
|
int |
mipmaplevel = 0 |
|
) |
| |
|
inlinevirtual |
Sets a region of texture data.
Definition at line 63 of file Texture.h.
| virtual void kge::gfx::Texture::UnLock |
( |
| ) |
|
|
inlinevirtual |
Member Data Documentation
| bool kge::gfx::Texture::m_bAA |
|
protected |
Has Anti Aliasing.
Definition at line 118 of file Texture.h.
| bool kge::gfx::Texture::m_bCompressed |
|
protected |
| bool kge::gfx::Texture::m_bStoreCopy |
|
protected |
Stores a copy of texture data.
Definition at line 118 of file Texture.h.
| int kge::gfx::Texture::m_iBpp |
|
protected |
| int kge::gfx::Texture::m_ibpp |
|
protected |
| int kge::gfx::Texture::m_iHeight |
|
protected |
| int kge::gfx::Texture::m_iMipmapsCount |
|
protected |
Number of mipmaps.
Definition at line 111 of file Texture.h.
| int kge::gfx::Texture::m_iWidth |
|
protected |
The documentation for this class was generated from the following file: