cocos2d-x  3.0-beta2
 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.
 

Constant Groups

 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...
 
bool  (unsigned char *buffer, unsigned long bufSize, tImageTGA *info)
 loads the image pixels. You shouldn't call this function directly More...
 
var  ( var buffer, var bufSize, var info)
 loads the image pixels. You shouldn't call this function directly More...
 
local  ( local buffer, local bufSize, local 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...
 
var  ( var filename)
 this is the function to call when we want to load an image More...
 
local  ( local filename)
 this is the function to call when we want to load an image More...
 
void  (tImageTGA *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...