|
cocos2d-iphone
2.0
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
|
Classes | |
| struct | tImageTGA |
Enumerations | |
| enum | { TGA_OK, TGA_ERROR_FILE_OPEN, TGA_ERROR_READING_FILE, TGA_ERROR_INDEXED_COLOR, TGA_ERROR_MEMORY, TGA_ERROR_COMPRESSED_FILE } |
Functions | |
| void | tgaLoadHeader (FILE *file, tImageTGA *info) |
| load the image header fields. We only keep those that matter! | |
| void | tgaLoadImageData (FILE *file, tImageTGA *info) |
| loads the image pixels. You shouldn't call this function directly | |
| tImageTGA * | tgaLoad (const char *filename) |
| this is the function to call when we want to load an image | |
| void | tgaRGBtogreyscale (tImageTGA *info) |
| void | tgaDestroy (tImageTGA *info) |
| releases the memory used for the image | |
TGA image support
| void tgaDestroy | ( | tImageTGA * | info | ) |
releases the memory used for the image
this is the function to call when we want to load an image
| void tgaLoadHeader | ( | FILE * | file, |
| tImageTGA * | info | ||
| ) |
load the image header fields. We only keep those that matter!
| void tgaLoadImageData | ( | FILE * | file, |
| tImageTGA * | info | ||
| ) |
loads the image pixels. You shouldn't call this function directly