]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - palette.h
the light has been defeated by the shadow (r_light moved into r_shadow)
[xonotic/darkplaces.git] / palette.h
index d344df278201762e84e1dc9c5fe21248d4137f70..11058772baf00f9339c373f79cf18b5265de5052 100644 (file)
--- a/palette.h
+++ b/palette.h
@@ -2,19 +2,27 @@
 #ifndef PALLETE_H
 #define PALLETE_H
 
-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];
+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, unsigned char *out);
-void BuildGammaTable16(float prescale, float gamma, float scale, float base, unsigned short *out);
+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 Palette_Init(void);