Defines | Functions

include/contrib/libtarga.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CONTRIB_EXPORT
#define byte   char
#define int32   int
#define int16   short
#define ubyte   unsigned byte
#define uint32   unsigned int32
#define uint16   unsigned int16
#define TGA_TRUECOLOR_32   (4)
#define TGA_TRUECOLOR_24   (3)

Functions

CONTRIB_EXPORT int tga_get_last_error ()
CONTRIB_EXPORT const char * tga_error_string (int error_code)
CONTRIB_EXPORT void * tga_create (int width, int height, unsigned int format)
CONTRIB_EXPORT void * tga_load (const char *file, int *width, int *height, unsigned int format)
CONTRIB_EXPORT int tga_write_raw (const char *file, int width, int height, unsigned char *dat, unsigned int format)
CONTRIB_EXPORT int tga_write_rle (const char *file, int width, int height, unsigned char *dat, unsigned int format)

Define Documentation

#define byte   char

Copyright (c) 2005 Michael L. Gleicher

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Definition at line 72 of file libtarga.h.

#define CONTRIB_EXPORT

DLL Defines for DGV library

Definition at line 40 of file libtarga.h.

#define int16   short

Definition at line 74 of file libtarga.h.

#define int32   int

Definition at line 73 of file libtarga.h.

#define TGA_TRUECOLOR_24   (3)

Definition at line 123 of file libtarga.h.

#define TGA_TRUECOLOR_32   (4)

Definition at line 122 of file libtarga.h.

#define ubyte   unsigned byte

Definition at line 76 of file libtarga.h.

#define uint16   unsigned int16

Definition at line 78 of file libtarga.h.

#define uint32   unsigned int32

Definition at line 77 of file libtarga.h.


Function Documentation

CONTRIB_EXPORT void* tga_create ( int  width,
int  height,
unsigned int  format 
)

Definition at line 180 of file libtarga.c.

CONTRIB_EXPORT const char* tga_error_string ( int  error_code  ) 

Definition at line 127 of file libtarga.c.

CONTRIB_EXPORT int tga_get_last_error (  ) 

Definition at line 121 of file libtarga.c.

CONTRIB_EXPORT void* tga_load ( const char *  file,
int *  width,
int *  height,
unsigned int  format 
)

Definition at line 203 of file libtarga.c.

CONTRIB_EXPORT int tga_write_raw ( const char *  file,
int  width,
int  height,
unsigned char *  dat,
unsigned int  format 
)

Definition at line 534 of file libtarga.c.

CONTRIB_EXPORT int tga_write_rle ( const char *  file,
int  width,
int  height,
unsigned char *  dat,
unsigned int  format 
)

Definition at line 672 of file libtarga.c.