gfx_targa.cc File Reference

Loader for Truevision Targa images. More...

#include "base.hh"
#include "gfx.hh"
#include "gfx_targa.hh"

Namespaces

namespace  gfx

Classes

struct  gfx::tga_header
struct  gfx::tga_footer

Defines

#define GFX_TARGA_CC   1
#define MAX_BUF_LEN   (32 * MEGABYTE)
#define TGA_TYPE_MAPPED   1
#define TGA_TYPE_COLOR   2
#define TGA_TYPE_GRAY   3
#define TGA_TYPE_MAPPED_RLE   9
#define TGA_TYPE_COLOR_RLE   10
#define TGA_TYPE_GRAY_RLE   11
#define TGA_DESC_ABITS   0x0f
#define TGA_DESC_HORIZONTAL   0x10
#define TGA_DESC_VERTICAL   0x20
#define TGA_SIGNATURE   "TRUEVISION-XFILE"
#define TGA_FOOTER_LEN   26

Functions

void gfx::DefaultTargaFilterFunc (uint8 *p, uint8 r, uint8 g, uint8 b, uint8 a)
uint8 * gfx::tga_load (const uint8 *const ibuf, uint ibufLen, uint *olen, uint *w, uint *h, bool *hasAlpha, TargaFilterFuncType filterFunc)


Detailed Description

Loader for Truevision Targa images.

Id
LastChangedDate

Author:
Dan Maas <dmaas@dcine.com>, Piotr Pawlow <pp@siedziba.pl>, Jim E. Brooks http://www.palomino3d.org
Remarks:
- Based on TGA specifications available at: http://www.wotsit.org/cgi-bin/search.cgi?TGA

Define Documentation

#define GFX_TARGA_CC   1

#define MAX_BUF_LEN   (32 * MEGABYTE)

#define TGA_DESC_ABITS   0x0f

#define TGA_DESC_HORIZONTAL   0x10

#define TGA_DESC_VERTICAL   0x20

#define TGA_FOOTER_LEN   26

#define TGA_SIGNATURE   "TRUEVISION-XFILE"

#define TGA_TYPE_COLOR   2

#define TGA_TYPE_COLOR_RLE   10

#define TGA_TYPE_GRAY   3

#define TGA_TYPE_GRAY_RLE   11

#define TGA_TYPE_MAPPED   1

#define TGA_TYPE_MAPPED_RLE   9

Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:15 2007