]> icculus.org git repositories - divverent/darkplaces.git/blob - palette.h
yet more memory testing
[divverent/darkplaces.git] / palette.h
1
2 extern cvar_t vid_gamma;
3 extern cvar_t vid_brightness;
4 extern cvar_t vid_contrast;
5
6 extern unsigned int d_8to24table[256];
7 //extern byte d_15to8table[32768];
8
9 extern qboolean hardwaregammasupported;
10
11 void VID_UpdateGamma(qboolean force);
12
13 // used by hardware gamma functions in vid_* files
14 void BuildGammaTable8(float prescale, float gamma, float scale, float base, byte *out);
15 void BuildGammaTable16(float prescale, float gamma, float scale, float base, unsigned short *out);
16
17 void Gamma_Init(void);
18 void Palette_Init(void);