DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
 
palette.h
Go to the documentation of this file.
1
2#ifndef PALLETE_H
3#define PALLETE_H
4
5#define PALETTEFEATURE_STANDARD 1
6#define PALETTEFEATURE_REVERSED 2
7#define PALETTEFEATURE_PANTS 4
8#define PALETTEFEATURE_SHIRT 8
9#define PALETTEFEATURE_GLOW 16
10#define PALETTEFEATURE_ZERO 32
11#define PALETTEFEATURE_TRANSPARENT 128
12
13extern unsigned char palette_rgb[256][3];
14extern unsigned char palette_rgb_pantscolormap[16][3];
15extern unsigned char palette_rgb_shirtcolormap[16][3];
16extern unsigned char palette_rgb_pantsscoreboard[16][3];
17extern unsigned char palette_rgb_shirtscoreboard[16][3];
18
19extern unsigned int palette_bgra_complete[256];
20extern unsigned int palette_bgra_font[256];
21extern unsigned int palette_bgra_alpha[256];
22extern unsigned int palette_bgra_nocolormap[256];
23extern unsigned int palette_bgra_nocolormapnofullbrights[256];
24extern unsigned int palette_bgra_nofullbrights[256];
25extern unsigned int palette_bgra_nofullbrights_transparent[256];
26extern unsigned int palette_bgra_onlyfullbrights[256];
27extern unsigned int palette_bgra_onlyfullbrights_transparent[256];
28extern unsigned int palette_bgra_pantsaswhite[256];
29extern unsigned int palette_bgra_shirtaswhite[256];
30extern unsigned int palette_bgra_transparent[256];
31extern unsigned int palette_bgra_embeddedpic[256];
32extern unsigned char palette_featureflags[256];
33
34extern unsigned int q2palette_bgra_complete[256];
35
36// used by hardware gamma functions in vid_* files
37void BuildGammaTable8(float prescale, float gamma, float scale, float base, float contrastboost, unsigned char *out, int rampsize);
38void BuildGammaTable16(float prescale, float gamma, float scale, float base, float contrastboost, unsigned short *out, int rampsize);
39
40void Palette_Init(void);
41
42#endif
43
float scale
unsigned int palette_bgra_alpha[256]
Definition palette.c:15
unsigned int palette_bgra_nocolormap[256]
Definition palette.c:16
void Palette_Init(void)
Definition palette.c:366
unsigned int palette_bgra_transparent[256]
Definition palette.c:24
unsigned int palette_bgra_onlyfullbrights_transparent[256]
Definition palette.c:21
unsigned int palette_bgra_font[256]
Definition palette.c:14
unsigned char palette_rgb_pantscolormap[16][3]
Definition palette.c:8
unsigned int q2palette_bgra_complete[256]
Definition palette.c:28
unsigned char palette_rgb_pantsscoreboard[16][3]
Definition palette.c:10
unsigned int palette_bgra_nocolormapnofullbrights[256]
Definition palette.c:17
unsigned char palette_rgb[256][3]
Definition palette.c:7
unsigned int palette_bgra_embeddedpic[256]
Definition palette.c:25
void BuildGammaTable8(float prescale, float gamma, float scale, float base, float contrastboost, unsigned char *out, int rampsize)
Definition palette.c:219
unsigned int palette_bgra_shirtaswhite[256]
Definition palette.c:23
unsigned int palette_bgra_complete[256]
Definition palette.c:13
unsigned int palette_bgra_nofullbrights_transparent[256]
Definition palette.c:19
unsigned char palette_featureflags[256]
Definition palette.c:26
unsigned int palette_bgra_nofullbrights[256]
Definition palette.c:18
unsigned int palette_bgra_onlyfullbrights[256]
Definition palette.c:20
unsigned char palette_rgb_shirtcolormap[16][3]
Definition palette.c:9
unsigned int palette_bgra_pantsaswhite[256]
Definition palette.c:22
unsigned char palette_rgb_shirtscoreboard[16][3]
Definition palette.c:11
void BuildGammaTable16(float prescale, float gamma, float scale, float base, float contrastboost, unsigned short *out, int rampsize)
Definition palette.c:240