]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - palette.h
check for negative pr_depth in PR_Crash just to be obsessive
[xonotic/darkplaces.git] / palette.h
index f6e862e05c5c7d4049113fa39511b17c050b6342..e1dcfda44b1730ae82e723cd68b4f4c67a5a1c6f 100644 (file)
--- a/palette.h
+++ b/palette.h
@@ -1,12 +1,21 @@
 
+#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 d_8to24table[256];
-//extern qbyte d_15to8table[32768];
+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;
 
@@ -18,3 +27,6 @@ void BuildGammaTable16(float prescale, float gamma, float scale, float base, uns
 
 void Gamma_Init(void);
 void Palette_Init(void);
+
+#endif
+