cocos2d-iphone  2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
TGAlib.h File Reference

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
tImageTGAtgaLoad (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

Detailed Description

TGA image support


Function Documentation

void tgaDestroy ( tImageTGA info)

releases the memory used for the image

tImageTGA* tgaLoad ( const char *  filename)

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