cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TGAlib.h File Reference

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...
 
tImageTGAtgaLoadBuffer (unsigned char *buffer, long size)
 this is the function to call when we want to load an image buffer. More...
 
tImageTGAtgaLoad (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...