6 extern cvar_t v_contrast;
7 extern cvar_t v_brightness;
8 extern cvar_t v_overbrightbits;
9 extern cvar_t v_hwgamma;
11 extern unsigned int palette_complete[256];
12 extern unsigned int palette_nofullbrights[256];
13 extern unsigned int palette_onlyfullbrights[256];
14 extern unsigned int palette_nocolormapnofullbrights[256];
15 extern unsigned int palette_pantsaswhite[256];
16 extern unsigned int palette_shirtaswhite[256];
17 extern unsigned int palette_alpha[256];
18 extern unsigned int palette_font[256];
20 extern qboolean hardwaregammasupported;
22 void VID_UpdateGamma(qboolean force);
24 // used by hardware gamma functions in vid_* files
25 void BuildGammaTable8(float prescale, float gamma, float scale, float base, qbyte *out);
26 void BuildGammaTable16(float prescale, float gamma, float scale, float base, unsigned short *out);
28 void Gamma_Init(void);
29 void Palette_Init(void);