Classes | Files | Functions

TGALib

Classes

struct  tImageTGA

Files

file  TGAlib.h

Functions

void tgaDestroy (tImageTGA *info)
 releases the memory used for the image
tImageTGAtgaLoad (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

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