]> icculus.org git repositories - divverent/darkplaces.git/blob - palette.h
very nice command line tab completeion from Shawn Walker
[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 extern byte texgamma[256];
9
10 extern qboolean hardwaregammasupported;
11
12 void VID_UpdateGamma(qboolean force);
13
14 // used by hardware gamma functions in vid_* files
15 void BuildGammaTable8(float prescale, float gamma, float scale, float base, byte *out);
16 void BuildGammaTable16(float prescale, float gamma, float scale, float base, unsigned short *out);
17
18 void Gamma_Init(void);
19 void Palette_Init(void);