X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=palette.h;h=2824717ab96e031a6dfed3362e9a5f2098c7da64;hb=a953951712448641f8f9263add258b6a0fa58dbc;hp=9fd075c1b14061cd17dabe75c84fdaf5272011d8;hpb=e411cc7d14dad08cbbe27f5b3af86700f7eb5184;p=xonotic%2Fdarkplaces.git diff --git a/palette.h b/palette.h index 9fd075c1..2824717a 100644 --- a/palette.h +++ b/palette.h @@ -1,19 +1,22 @@ -extern cvar_t vid_gamma; -extern cvar_t vid_brightness; -extern cvar_t vid_contrast; +#ifndef PALLETE_H +#define PALLETE_H -extern unsigned int d_8to24table[256]; -//extern byte d_15to8table[32768]; -extern byte texgamma[256]; - -extern qboolean hardwaregammasupported; - -void VID_UpdateGamma(qboolean force); +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, byte *out); +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 Gamma_Init(void); void Palette_Init(void); + +#endif +