Public Member Functions |
| | Image (const u32 Handle, const char *FileName, const char *Name, void *ExtraParam) |
| | Constructor don't use this but use ImageManager And call add from there.
|
| | Image (const char *Name) |
| | Constructor for creating images later.
|
| | ~Image () |
| | Destructor.
|
| bool | CreateImage (int Width, int Height, int Depth=1, int BytesPerPixel=4, ImageFormat imgFormat=EIF_BGRA, void *Data=NULL) |
| | Creates an Image and store it.
|
| u8 * | GetData (u32 MipMapLevel=0) |
| | Returns the image data.
|
| u32 | GetPixels (int XOff, int YOff, int ZOff, int Width, int Height, int Depth, ImageFormat imgFormat, u8 *OutData, u32 MipMapLevel=0) |
| | copies a region of the image to the OutData. Note: the OutData have not to be NULL
|
| u32 | SetData (u8 *pData) |
| | Sets the image data.
|
| void | SetPixels (int XOff, int YOff, int ZOff, int Width, int Height, int Depth, ImageFormat imgFormat, u8 *OutData, u32 MipMapLevel=0) |
| | Changes the image data.
|
| u32 | Scale (u32 Width, u32 Height, u32 Depth, u32 MipMapLevel=0) |
| | Scales the image or current mipmap.
|
| u8 | BuildMipMaps () |
| | Build MipMap for this Image.
|
| bool | BuildTileMipMap (int NumCols, int NumRows) |
| | Building the mipmap for a tile based image.
|
| int | GetWidth () |
| | Returns the image width.
|
| int | GetHeight () |
| | Returns the image height.
|
| u8 * | GetCompressData (CompressType ct, u32 &Size) |
| | Returns the compressed data.
|
| int | GetBytePerPixel () |
| ImageFormat | GetFormat () |
| | 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.
|
Definition at line 27 of file Image.h.