Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::gfx::ImageData Class Reference

The image resource class. More...

#include <ImageData.h>

Inheritance diagram for kge::gfx::ImageData:
kge::Resource kge::KgeUnknown

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 u8GetImageData ()
 Returns the image data pointer.
virtual bool Convert (TextureFormat ToThisFormat)
 Converts the image format.
virtual void FlipY ()
 Flip the image Y.
- Public Member Functions inherited from kge::Resource
 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.
- Public Member Functions inherited from kge::KgeUnknown
 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.

Protected Attributes

u8m_pImageData
int m_iWidth
int m_iHeight
int m_iDataSize
int m_iBpp
int m_ibpp
int m_iMipmapsCount
TextureFormat m_Format
- Protected Attributes inherited from kge::Resource
char * m_pFileName
char * m_pName
void * m_pExtraParam
u32 m_iHandle
void * m_pMyMgr
 Resource manager pointer.

Friends

class Texture

Additional Inherited Members

- Protected Member Functions inherited from kge::KgeUnknown
void SetDebugText (char *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 
)

Constructor.

virtual kge::gfx::ImageData::~ImageData ( )
virtual

Destructor.

Member Function Documentation

virtual bool kge::gfx::ImageData::Convert ( TextureFormat  ToThisFormat)
virtual

Converts the image format.

virtual void kge::gfx::ImageData::FlipY ( )
virtual

Flip the image Y.

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

friend class Texture
friend

Definition at line 14 of file ImageData.h.

Member Data Documentation

TextureFormat kge::gfx::ImageData::m_Format
protected

Definition at line 45 of file ImageData.h.

int kge::gfx::ImageData::m_iBpp
protected

Definition at line 39 of file ImageData.h.

int kge::gfx::ImageData::m_ibpp
protected

Definition at line 39 of file ImageData.h.

int kge::gfx::ImageData::m_iDataSize
protected

Definition at line 39 of file ImageData.h.

int kge::gfx::ImageData::m_iHeight
protected

Definition at line 39 of file ImageData.h.

int kge::gfx::ImageData::m_iMipmapsCount
protected

Definition at line 39 of file ImageData.h.

int kge::gfx::ImageData::m_iWidth
protected

Definition at line 39 of file ImageData.h.

u8* kge::gfx::ImageData::m_pImageData
protected

Definition at line 38 of file ImageData.h.


The documentation for this class was generated from the following file: