- Added support for PCX textures (1, 4, 8 and 24 bit variants.)

SVN r303 (trunk)
This commit is contained in:
Christoph Oelckers 2006-08-21 13:09:55 +00:00
commit 5c7eeed018
7 changed files with 490 additions and 24 deletions

View file

@ -1,5 +1,5 @@
/*
** pmgtexture.cpp
** tgatexture.cpp
** Texture class for TGA images
**
**---------------------------------------------------------------------------
@ -40,28 +40,6 @@
#include "templates.h"
#pragma pack(1)
struct TGAHeader
{
BYTE id_len;
BYTE has_cm;
BYTE img_type;
SWORD cm_first;
SWORD cm_length;
BYTE cm_size;
SWORD x_origin;
SWORD y_origin;
SWORD width;
SWORD height;
BYTE bpp;
BYTE img_desc;
};
#pragma pack()
bool FTGATexture::Check(FileReader & data)
{