Tachyon (current)  Current Main Branch
Functions
tgafile.h File Reference

Go to the source code of this file.

Functions

int createtgafile (char *, unsigned short, unsigned short)
 
void * opentgafile (char *)
 
void writetgaregion (void *, int, int, int, int, unsigned char *)
 
void closetgafile (void *)
 
int readtga (char *name, int *xres, int *yres, unsigned char **imgdata)
 
int writetga (char *name, int xres, int yres, unsigned char *imgdata)
 

Function Documentation

◆ closetgafile()

void closetgafile ( void *  )

Definition at line 175 of file tgafile.c.

References tgahandle::ofp.

Referenced by writetga().

◆ createtgafile()

int createtgafile ( char *  ,
unsigned  short,
unsigned  short 
)

Definition at line 29 of file tgafile.c.

References IMAGENOERR, IMAGEWRITEERR, MSG_ABORT, MSG_ERR, and rt_ui_message().

Referenced by writetga().

◆ opentgafile()

void* opentgafile ( char *  )

Definition at line 75 of file tgafile.c.

References tgahandle::height, MSG_ABORT, MSG_ERR, tgahandle::ofp, rt_ui_message(), and tgahandle::width.

Referenced by writetga().

◆ readtga()

int readtga ( char *  name,
int *  xres,
int *  yres,
unsigned char **  imgdata 
)

Definition at line 182 of file tgafile.c.

References IMAGEBADFILE, IMAGENOERR, IMAGEREADERR, and IMAGEUNSUP.

Referenced by readimage().

◆ writetga()

int writetga ( char *  name,
int  xres,
int  yres,
unsigned char *  imgdata 
)

Definition at line 260 of file tgafile.c.

References closetgafile(), createtgafile(), IMAGENOERR, IMAGEWRITEERR, opentgafile(), and writetgaregion().

Referenced by writeimage().

◆ writetgaregion()

void writetgaregion ( void *  ,
int  ,
int  ,
int  ,
int  ,
unsigned char *   
)

Definition at line 97 of file tgafile.c.

References tgahandle::height, MSG_ERR, tgahandle::ofp, rt_ui_message(), and tgahandle::width.

Referenced by writetga().