X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=palette.h;h=4a8fc0a305f113c285a57cc230dcd55c919c9231;hb=d178bb20c6e8634a194f6e91b9f410d0d625f71e;hp=7e6dbc4bc9742fda5929a48cef103d1a79ffea92;hpb=06d8455f84631224fb6bb29ab1bd56e3f849a086;p=xonotic%2Fdarkplaces.git diff --git a/palette.h b/palette.h index 7e6dbc4b..4a8fc0a3 100644 --- a/palette.h +++ b/palette.h @@ -1,19 +1,27 @@ -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 unsigned int palette_complete[256]; +extern unsigned int palette_font[256]; +extern unsigned int palette_alpha[256]; +extern unsigned int palette_nocolormap[256]; +extern unsigned int palette_nocolormapnofullbrights[256]; +extern unsigned int palette_nofullbrights[256]; +extern unsigned int palette_onlyfullbrights[256]; +extern unsigned int palette_pantsaswhite[256]; +extern unsigned int palette_shirtaswhite[256]; +extern unsigned int palette_transparent[256]; +extern unsigned int palette_pantscolormap[16]; +extern unsigned int palette_shirtcolormap[16]; +extern unsigned int palette_pantsscoreboard[16]; +extern unsigned int palette_shirtscoreboard[16]; -extern qboolean hardwaregammasupported; +// used by hardware gamma functions in vid_* files +void BuildGammaTable8(float prescale, float gamma, float scale, float base, unsigned char *out, int rampsize); +void BuildGammaTable16(float prescale, float gamma, float scale, float base, unsigned short *out, int rampsize); -void VID_UpdateGamma(qboolean force); +void Palette_Init(void); -// used by hardware gamma functions in vid_* files -void BuildGammaTable8(float prescale, float gamma, float scale, float base, byte *out); -void BuildGammaTable16(float prescale, float gamma, float scale, float base, unsigned short *out); +#endif -void Gamma_Init(); -void Palette_Init();