]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - palette.h
eliminated qbyte type, now uses unsigned char throughout the engine for this purpose
[xonotic/darkplaces.git] / palette.h
index d12c40a8db976d40231f00b756e091e98c958a9c..d344df278201762e84e1dc9c5fe21248d4137f70 100644 (file)
--- a/palette.h
+++ b/palette.h
@@ -1,18 +1,22 @@
 
-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 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, unsigned char *out);
 void BuildGammaTable16(float prescale, float gamma, float scale, float base, unsigned short *out);
 
-void Gamma_Init(void);
 void Palette_Init(void);
+
+#endif
+