cocos2d-x  3.4
 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  (unsigned char *buffer, unsigned long bufSize, tImageTGA *info)
 load the image header fields. We only keep those that matter! More...
 
var  ( var buffer, var bufSize, var info)
 load the image header fields. We only keep those that matter! More...
 
local  ( local buffer, local bufSize, local info)
 load the image header fields. We only keep those that matter! More...
 
bool  (unsigned char *buffer, unsigned long bufSize, tImageTGA *info)
 loads the image pixels. You shouldn't call this function directly More...
 
tImageTGA (unsigned char *buffer, long size)
 this is the function to call when we want to load an image buffer. More...
 
tImageTGA (const char *filename)
 this is the function to call when we want to load an image More...
 
void  (tImageTGA *info)
var  ( var info)
local  ( local info)
void  (tImageTGA *info)
 releases the memory used for the image More...
 
var  ( var info)
 releases the memory used for the image More...
 
local  ( local info)
 releases the memory used for the image More...