X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=palette.h;h=e534b9c58fd66455cf1190776efa097c05418719;hb=31c60f86f584447beac6b654e54587229f2c9496;hp=e1dcfda44b1730ae82e723cd68b4f4c67a5a1c6f;hpb=63a4ff4563c4bbd232c265a288e9890e4015bd93;p=xonotic%2Fdarkplaces.git diff --git a/palette.h b/palette.h index e1dcfda4..e534b9c5 100644 --- a/palette.h +++ b/palette.h @@ -2,30 +2,28 @@ #ifndef PALLETE_H #define PALLETE_H -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; - -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_pantsaswhite[256]; -extern unsigned int palette_shirtaswhite[256]; -extern unsigned int palette_alpha[256]; -extern unsigned int palette_font[256]; - -extern qboolean hardwaregammasupported; - -void VID_UpdateGamma(qboolean force); +extern unsigned char palette_rgb[256][3]; +extern unsigned char palette_rgb_pantscolormap[16][3]; +extern unsigned char palette_rgb_shirtcolormap[16][3]; +extern unsigned char palette_rgb_pantsscoreboard[16][3]; +extern unsigned char palette_rgb_shirtscoreboard[16][3]; + +extern unsigned int palette_bgra_complete[256]; +extern unsigned int palette_bgra_font[256]; +extern unsigned int palette_bgra_alpha[256]; +extern unsigned int palette_bgra_nocolormap[256]; +extern unsigned int palette_bgra_nocolormapnofullbrights[256]; +extern unsigned int palette_bgra_nofullbrights[256]; +extern unsigned int palette_bgra_onlyfullbrights[256]; +extern unsigned int palette_bgra_pantsaswhite[256]; +extern unsigned int palette_bgra_shirtaswhite[256]; +extern unsigned int palette_bgra_transparent[256]; +extern unsigned int palette_bgra_embeddedpic[256]; // used by hardware gamma functions in vid_* files -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 BuildGammaTable8(float prescale, float gamma, float scale, float base, float contrastboost, unsigned char *out, int rampsize); +void BuildGammaTable16(float prescale, float gamma, float scale, float base, float contrastboost, unsigned short *out, int rampsize); -void Gamma_Init(void); void Palette_Init(void); #endif