cocos2d-x
3.3
|
Classes | |
struct | tImageTGA |
TGA format. More... | |
Namespaces | |
cocos2d | |
Add deprecated global functions and variables here. | |
Enumerations | |
enum | { TGA_OK, TGA_ERROR_FILE_OPEN, TGA_ERROR_READING_FILE, TGA_ERROR_INDEXED_COLOR, TGA_ERROR_MEMORY, TGA_ERROR_COMPRESSED_FILE } |
Functions | |
bool | tgaLoadHeader (unsigned char *buffer, unsigned long bufSize, tImageTGA *info) |
load the image header fields. We only keep those that matter! More... | |
bool | tgaLoadImageData (unsigned char *buffer, unsigned long bufSize, tImageTGA *info) |
loads the image pixels. You shouldn't call this function directly More... | |
tImageTGA * | tgaLoadBuffer (unsigned char *buffer, long size) |
this is the function to call when we want to load an image buffer. More... | |
tImageTGA * | tgaLoad (const char *filename) |
this is the function to call when we want to load an image More... | |
void | tgaRGBtogreyscale (tImageTGA *info) |
void | tgaDestroy (tImageTGA *info) |
releases the memory used for the image More... | |