2008-12-02 10:44:39 +00:00
|
|
|
#ifndef HIGHTILE_PRIV_H
|
|
|
|
#define HIGHTILE_PRIV_H
|
|
|
|
|
|
|
|
struct hicskybox_t {
|
|
|
|
int ignore;
|
|
|
|
char *face[6];
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct hicreplc_t {
|
|
|
|
struct hicreplc_t *next;
|
|
|
|
char palnum, ignore, flags, filler;
|
|
|
|
char *filename;
|
2009-03-28 12:14:37 +00:00
|
|
|
float alphacut, xscale, yscale, specpower, specfactor;
|
2008-12-02 10:44:39 +00:00
|
|
|
struct hicskybox_t *skybox;
|
|
|
|
} hicreplctyp;
|
|
|
|
|
|
|
|
extern palette_t hictinting[MAXPALOOKUPS];
|
|
|
|
extern hicreplctyp *hicreplc[MAXTILES];
|
|
|
|
extern char hicfirstinit;
|
|
|
|
|
2009-01-21 22:43:44 +00:00
|
|
|
typedef struct texcachehead_t
|
2008-12-02 10:44:39 +00:00
|
|
|
{
|
|
|
|
char magic[4]; // 'PMST', was 'Polymost'
|
|
|
|
int xdim, ydim; // of image, unpadded
|
|
|
|
int flags; // 1 = !2^x, 2 = has alpha, 4 = lzw compressed
|
|
|
|
int quality; // r_downsize at the time the cache was written
|
|
|
|
} texcacheheader;
|
|
|
|
|
2009-01-21 22:43:44 +00:00
|
|
|
typedef struct texcachepic_t
|
2008-12-02 10:44:39 +00:00
|
|
|
{
|
|
|
|
int size;
|
|
|
|
int format;
|
|
|
|
int xdim, ydim; // of mipmap (possibly padded)
|
|
|
|
int border, depth;
|
|
|
|
} texcachepicture;
|
|
|
|
|
|
|
|
hicreplctyp * hicfindsubst(int picnum, int palnum, int skybox);
|
|
|
|
#define HICEFFECTMASK (1|2|4|8)
|
|
|
|
|
|
|
|
#endif
|