X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=palette.h;h=2824717ab96e031a6dfed3362e9a5f2098c7da64;hb=94ff2e45bbe25ae82a2fdaedac53d4844cd0a7bc;hp=ff8dc7984ac64facea9bfd89b728efcb05c0314e;hpb=9ba80c169d244d56e90f437c512f827953cc1208;p=xonotic%2Fdarkplaces.git diff --git a/palette.h b/palette.h index ff8dc798..2824717a 100644 --- a/palette.h +++ b/palette.h @@ -1,8 +1,22 @@ -extern unsigned int d_8to24table[256]; -//extern byte d_15to8table[32768]; -extern byte host_basepal[768]; -extern byte qgamma[256]; -extern float vid_gamma; +#ifndef PALLETE_H +#define PALLETE_H + +extern unsigned int palette_complete[256]; +extern unsigned int palette_nofullbrights[256]; +extern unsigned int palette_onlyfullbrights[256]; +extern unsigned int palette_nocolormapnofullbrights[256]; +extern unsigned int palette_nocolormap[256]; +extern unsigned int palette_pantsaswhite[256]; +extern unsigned int palette_shirtaswhite[256]; +extern unsigned int palette_alpha[256]; +extern unsigned int palette_font[256]; + +// used by hardware gamma functions in vid_* files +void BuildGammaTable8(float prescale, float gamma, float scale, float base, qbyte *out); +void BuildGammaTable16(float prescale, float gamma, float scale, float base, unsigned short *out); + +void Palette_Init(void); + +#endif -void Palette_Init();