The image resource class.
More...
#include <ImageData.h>
Public Member Functions |
| ImageData (const u32 Handle, const char *FileName, u8 *data, int datasize, int width, int height, int BytePerPixel, int bitPerPixel, TextureFormat format, int mipmapcount) |
| Constructor.
|
virtual | ~ImageData () |
| Destructor.
|
virtual int | GetImageDataSize () |
| Returns the image data size.
|
virtual u8 * | GetImageData () |
| Returns the image data pointer.
|
virtual bool | Convert (TextureFormat ToThisFormat) |
| Converts the image format.
|
virtual void | FlipY () |
| Flip the image Y.
|
| 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.
|
Detailed Description
The image resource class.
Definition at line 12 of file ImageData.h.
Constructor & Destructor Documentation
kge::gfx::ImageData::ImageData |
( |
const u32 |
Handle, |
|
|
const char * |
FileName, |
|
|
u8 * |
data, |
|
|
int |
datasize, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
BytePerPixel, |
|
|
int |
bitPerPixel, |
|
|
TextureFormat |
format, |
|
|
int |
mipmapcount |
|
) |
| |
virtual kge::gfx::ImageData::~ImageData |
( |
| ) |
|
|
virtual |
Member Function Documentation
virtual bool kge::gfx::ImageData::Convert |
( |
TextureFormat |
ToThisFormat | ) |
|
|
virtual |
Converts the image format.
virtual void kge::gfx::ImageData::FlipY |
( |
| ) |
|
|
virtual |
virtual u8* kge::gfx::ImageData::GetImageData |
( |
| ) |
|
|
inlinevirtual |
Returns the image data pointer.
Definition at line 28 of file ImageData.h.
virtual int kge::gfx::ImageData::GetImageDataSize |
( |
| ) |
|
|
inlinevirtual |
Returns the image data size.
Definition at line 25 of file ImageData.h.
Friends And Related Function Documentation
Member Data Documentation
int kge::gfx::ImageData::m_iBpp |
|
protected |
int kge::gfx::ImageData::m_ibpp |
|
protected |
int kge::gfx::ImageData::m_iDataSize |
|
protected |
int kge::gfx::ImageData::m_iHeight |
|
protected |
int kge::gfx::ImageData::m_iMipmapsCount |
|
protected |
int kge::gfx::ImageData::m_iWidth |
|
protected |
u8* kge::gfx::ImageData::m_pImageData |
|
protected |
The documentation for this class was generated from the following file: