X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=palette.h;fp=palette.h;h=f9044653f3a149838909250c4c38701dceff25ad;hb=fae52291efa344ad98f83a13308ffa5dd583a11e;hp=e534b9c58fd66455cf1190776efa097c05418719;hpb=3478ab0718d5250c9043aedc4549a808698a1aeb;p=xonotic%2Fdarkplaces.git diff --git a/palette.h b/palette.h index e534b9c5..f9044653 100644 --- a/palette.h +++ b/palette.h @@ -2,6 +2,14 @@ #ifndef PALLETE_H #define PALLETE_H +#define PALETTEFEATURE_STANDARD 1 +#define PALETTEFEATURE_REVERSED 2 +#define PALETTEFEATURE_PANTS 4 +#define PALETTEFEATURE_SHIRT 8 +#define PALETTEFEATURE_GLOW 16 +#define PALETTEFEATURE_ZERO 32 +#define PALETTEFEATURE_TRANSPARENT 128 + extern unsigned char palette_rgb[256][3]; extern unsigned char palette_rgb_pantscolormap[16][3]; extern unsigned char palette_rgb_shirtcolormap[16][3]; @@ -19,6 +27,7 @@ extern unsigned int palette_bgra_pantsaswhite[256]; extern unsigned int palette_bgra_shirtaswhite[256]; extern unsigned int palette_bgra_transparent[256]; extern unsigned int palette_bgra_embeddedpic[256]; +extern unsigned char palette_featureflags[256]; // used by hardware gamma functions in vid_* files void BuildGammaTable8(float prescale, float gamma, float scale, float base, float contrastboost, unsigned char *out, int rampsize);