X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=palette.h;h=2824717ab96e031a6dfed3362e9a5f2098c7da64;hp=7e3ef152f9c46723102c32a07e81b588a458ccbd;hb=69409e01d114e379ef09df6aaab9fac15da27d94;hpb=c2995f2c4c030b1c3adb163fd84b4ea5b3d2b104 diff --git a/palette.h b/palette.h index 7e3ef152..2824717a 100644 --- a/palette.h +++ b/palette.h @@ -1,20 +1,22 @@ -extern cvar_t v_gamma; -extern cvar_t v_contrast; -extern cvar_t v_brightness; -extern cvar_t v_overbrightbits; -extern cvar_t v_hwgamma; +#ifndef PALLETE_H +#define PALLETE_H -extern unsigned int d_8to24table[256]; -//extern byte d_15to8table[32768]; - -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 +