#include <TGAClass.h>
|
virtual | ~TGAClass () |
| Destructor.
|
|
| TGAClass (FileHandle *fileName) |
|
virtual bool | Load (FileHandle *fileName) |
|
|
static const u8 | mHeaderSize = 18 |
| size of the TGA header (in bytes)
|
|
static const u8 | mFooterSize = 26 |
| size of the TGA footer (in bytes)
|
|
TinyImage specialized for TGA management.
◆ TGAFormats
list of tga image formats
Enumerator |
---|
NO_COMPRESSION_COLORMAPPED | no image data
|
NO_COMPRESSION_TRUECOLOR | uncompressed, color-mapped image
|
NO_COMPRESSION_BLACKWHITE | uncompressed, true-color image
|
RLE_COMPRESSION_COLORMAPPED | uncompressed, black&white image
|
RLE_COMPRESSION_TRUECOLOR | run-length encoded, color-mapped image
|
RLE_COMPRESSION_BLACKWHITE | run-length encoded, true-color image
|
NDS_A3I5_TRANSLUCENT | run-length encoded, black&white image
|
NDS_A5I3_TRANSLUCENT | 3 alpha bits 5 index bits, translucent texture
|
NDS_4X4_COMPRESSED | 5 alpha bits 3 index bits, translucent texture
|
◆ TGAClass()
TGAClass::TGAClass |
( |
FileHandle * |
fileName | ) |
|
◆ Load()
bool TGAClass::Load |
( |
FileHandle * |
fileName | ) |
|
|
virtual |
Main loading method
- Parameters
-
Reimplemented from TinyImage.
◆ loadHeader()
void TGAClass::loadHeader |
( |
tgaheader & |
header, |
|
|
u8 * |
memfile |
|
) |
| |
|
staticprotected |
load the tga header from the file
- Parameters
-
header | the header to fill |
memfile | the loaded file |
◆ readColorData16_RGBA_4444()
template<unsigned int bytes>
void TGAClass::readColorData16_RGBA_4444 |
( |
unsigned char * |
src, |
|
|
unsigned char * |
dst |
|
) |
| |
|
static |
read color from specified source, convert it and copy it to destination
- Parameters
-
src | pointer on the color data to read |
dst | pointer to the color data to write |
bytes | number of bytes to read |
The documentation for this class was generated from the following files:
- G:/Projects/Github/kigs/framework/TinyImage/Headers/TGAClass.h
- G:/Projects/Github/kigs/framework/TinyImage/Sources/TGAClass.cpp