D:/Projects/dark-oberon.svn/game/sources/libtga/tga.h File Reference


Detailed Description

Author:
Marcus Geelnard, Peter Knut
Date:
2002 - 2006
TGA Loader Library.

Version:
1.0 - Initial.

#include <stdio.h>

Classes

struct  TGA_Callbacks
struct  TGA

Defines

#define TGA_ORIGIN_UL   0x00000004

Enumerations

enum  TGA_Format { TGA_PIXFMT_UNKNOWN, TGA_PIXFMT_GRAY, TGA_PIXFMT_RGB, TGA_PIXFMT_RGBA }

Functions

void tgaPrepare (TGA *tga)
long tgaRead (const char *file_name, TGA *tga, int flags)
long tgaRead (FILE *fd, TGA *tga, int flags)
long tgaRead (void *source, TGA *tga, int flags)
int tgaWrite (const char *file_name, TGA *tga, int flags)
int tgaWrite (FILE *fd, TGA *tga, int flags)
int tgaWrite (void *source, TGA *tga, int flags)


Define Documentation

#define TGA_ORIGIN_UL   0x00000004

Forces the first pixel of the image to be the upper left corner of the image (default is the lower left corner of the image).


Enumeration Type Documentation

enum TGA_Format

Valid pixel format.

Enumerator:
TGA_PIXFMT_UNKNOWN  Unknown format.
TGA_PIXFMT_GRAY  Grayscale pixel format.
TGA_PIXFMT_RGB  RGB pixel format.
TGA_PIXFMT_RGBA  RGB-Alpha pixel format.


Function Documentation

void tgaPrepare ( TGA tga  ) 

long tgaRead ( void *  source,
TGA tga,
int  flags 
)

Reads a TGA image from a file.

Parameters:
source Data source to read the TGA image from.
tga Pointer to information structure which will be filled by the function.
flags Flags TGA_ORIGIN_UL, ... .
Returns:
1 on success, 0 otherwise.

long tgaRead ( FILE *  fd,
TGA tga,
int  flags 
)

long tgaRead ( const char *  file_name,
TGA tga,
int  flags 
)

int tgaWrite ( void *  source,
TGA tga,
int  flags 
)

int tgaWrite ( FILE *  fd,
TGA tga,
int  flags 
)

int tgaWrite ( const char *  file_name,
TGA tga,
int  flags 
)


Generated on Sat Oct 20 14:47:30 2007 for Dark Oberon by  doxygen 1.5.3