![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Functions | |
void | BuildGammaTable16 (float prescale, float gamma, float scale, float base, float contrastboost, unsigned short *out, int rampsize) |
void | BuildGammaTable8 (float prescale, float gamma, float scale, float base, float contrastboost, unsigned char *out, int rampsize) |
void | Palette_Init (void) |
static void | Palette_Load (void) |
static void | Palette_LoadQ2Colormap (void) |
static void | Palette_NewMap (void) |
static void | Palette_SetupSpecialPalettes (void) |
static void | Palette_Shutdown (void) |
Variables | |
unsigned char | host_quakepal [768] |
unsigned int | palette_bgra_alpha [256] |
unsigned int | palette_bgra_complete [256] |
unsigned int | palette_bgra_embeddedpic [256] |
unsigned int | palette_bgra_font [256] |
unsigned int | palette_bgra_nocolormap [256] |
unsigned int | palette_bgra_nocolormapnofullbrights [256] |
unsigned int | palette_bgra_nofullbrights [256] |
unsigned int | palette_bgra_nofullbrights_transparent [256] |
unsigned int | palette_bgra_onlyfullbrights [256] |
unsigned int | palette_bgra_onlyfullbrights_transparent [256] |
unsigned int | palette_bgra_pantsaswhite [256] |
unsigned int | palette_bgra_shirtaswhite [256] |
unsigned int | palette_bgra_transparent [256] |
unsigned char | palette_featureflags [256] |
unsigned char | palette_rgb [256][3] |
unsigned char | palette_rgb_pantscolormap [16][3] |
unsigned char | palette_rgb_pantsscoreboard [16][3] |
unsigned char | palette_rgb_shirtcolormap [16][3] |
unsigned char | palette_rgb_shirtscoreboard [16][3] |
unsigned int | q2palette_bgra_complete [256] |
cvar_t | r_colormap_palette = {CF_CLIENT, "r_colormap_palette", "gfx/colormap_palette.lmp", "name of a palette lmp file to override the shirt/pants colors of player models. It consists of 16 shirt colors, 16 scoreboard shirt colors, 16 pants colors and 16 scoreboard pants colors"} |
void BuildGammaTable16 | ( | float | prescale, |
float | gamma, | ||
float | scale, | ||
float | base, | ||
float | contrastboost, | ||
unsigned short * | out, | ||
int | rampsize ) |
Definition at line 240 of file palette.c.
References bound, i, int(), pow(), and scale.
Referenced by SCR_ScreenShot(), and VID_BuildGammaTables().
void BuildGammaTable8 | ( | float | prescale, |
float | gamma, | ||
float | scale, | ||
float | base, | ||
float | contrastboost, | ||
unsigned char * | out, | ||
int | rampsize ) |
Definition at line 219 of file palette.c.
References bound, i, int(), pow(), and scale.
Referenced by Palette_Load().
Definition at line 366 of file palette.c.
References Cvar_RegisterVariable(), NULL, Palette_Load(), Palette_NewMap(), Palette_Shutdown(), r_colormap_palette, and R_RegisterModule().
Referenced by CL_Init().
Definition at line 265 of file palette.c.
References sys_t::argv, b, bound, BuildGammaTable8(), Con_DPrint(), CON_WARN, FS_LoadFile(), host_quakepal, i, Mem_Free, NULL, palette_bgra_complete, palette_bgra_embeddedpic, Palette_LoadQ2Colormap(), palette_rgb, palette_rgb_pantscolormap, palette_rgb_pantsscoreboard, palette_rgb_shirtcolormap, palette_rgb_shirtscoreboard, Palette_SetupSpecialPalettes(), r_colormap_palette, scale, cvar_t::string, sys, Sys_CheckParm(), tempmempool, Vector4Set, and VectorCopy.
Referenced by Palette_Init().
Definition at line 197 of file palette.c.
References FS_LoadFile(), i, LoadPCX_PaletteOnly(), Mem_Free, q2palette_bgra_complete, and tempmempool.
Referenced by Palette_Load().
Definition at line 84 of file palette.c.
References b, colormap, FS_LoadFile(), i, Mem_Free, palette_bgra_alpha, palette_bgra_complete, palette_bgra_font, palette_bgra_nocolormap, palette_bgra_nocolormapnofullbrights, palette_bgra_nofullbrights, palette_bgra_nofullbrights_transparent, palette_bgra_onlyfullbrights, palette_bgra_onlyfullbrights_transparent, palette_bgra_pantsaswhite, palette_bgra_shirtaswhite, palette_bgra_transparent, palette_featureflags, PALETTEFEATURE_GLOW, PALETTEFEATURE_PANTS, PALETTEFEATURE_REVERSED, PALETTEFEATURE_SHIRT, PALETTEFEATURE_STANDARD, PALETTEFEATURE_TRANSPARENT, PALETTEFEATURE_ZERO, and tempmempool.
Referenced by Palette_Load().
unsigned char host_quakepal[768] |
Definition at line 31 of file palette.c.
Referenced by Palette_Load().
unsigned int palette_bgra_alpha[256] |
Definition at line 15 of file palette.c.
Referenced by Palette_SetupSpecialPalettes().
unsigned int palette_bgra_complete[256] |
Definition at line 13 of file palette.c.
Referenced by Mod_Q1BSP_LoadSplitSky(), Palette_Load(), Palette_SetupSpecialPalettes(), R_SkinFrame_GenerateTexturesFromQPixels(), and R_SkinFrame_LoadInternalQuake().
unsigned int palette_bgra_embeddedpic[256] |
Definition at line 25 of file palette.c.
Referenced by Image_GetEmbeddedPicBGRA(), Palette_Load(), and R_Shadow_MakeTextures().
unsigned int palette_bgra_font[256] |
Definition at line 14 of file palette.c.
Referenced by LoadConChars_BGRA(), and Palette_SetupSpecialPalettes().
unsigned int palette_bgra_nocolormap[256] |
Definition at line 16 of file palette.c.
Referenced by Palette_SetupSpecialPalettes(), and R_SkinFrame_GenerateTexturesFromQPixels().
unsigned int palette_bgra_nocolormapnofullbrights[256] |
Definition at line 17 of file palette.c.
Referenced by Palette_SetupSpecialPalettes(), and R_SkinFrame_GenerateTexturesFromQPixels().
unsigned int palette_bgra_nofullbrights[256] |
Definition at line 18 of file palette.c.
Referenced by Palette_SetupSpecialPalettes(), and R_SkinFrame_GenerateTexturesFromQPixels().
unsigned int palette_bgra_nofullbrights_transparent[256] |
Definition at line 19 of file palette.c.
Referenced by Palette_SetupSpecialPalettes(), and R_SkinFrame_GenerateTexturesFromQPixels().
unsigned int palette_bgra_onlyfullbrights[256] |
Definition at line 20 of file palette.c.
Referenced by Palette_SetupSpecialPalettes(), and R_SkinFrame_GenerateTexturesFromQPixels().
unsigned int palette_bgra_onlyfullbrights_transparent[256] |
Definition at line 21 of file palette.c.
Referenced by Palette_SetupSpecialPalettes(), and R_SkinFrame_GenerateTexturesFromQPixels().
unsigned int palette_bgra_pantsaswhite[256] |
Definition at line 22 of file palette.c.
Referenced by Palette_SetupSpecialPalettes(), and R_SkinFrame_GenerateTexturesFromQPixels().
unsigned int palette_bgra_shirtaswhite[256] |
Definition at line 23 of file palette.c.
Referenced by Palette_SetupSpecialPalettes(), and R_SkinFrame_GenerateTexturesFromQPixels().
unsigned int palette_bgra_transparent[256] |
Definition at line 24 of file palette.c.
Referenced by LoadLMP_BGRA(), M_Setup_Draw(), Mod_Sprite_SharedSetup(), Palette_SetupSpecialPalettes(), and R_SkinFrame_GenerateTexturesFromQPixels().
unsigned char palette_featureflags[256] |
Definition at line 26 of file palette.c.
Referenced by Palette_SetupSpecialPalettes(), and R_SkinFrame_LoadInternalQuake().
unsigned char palette_rgb[256][3] |
Definition at line 7 of file palette.c.
Referenced by CL_LinkNetworkEntity(), CL_ParseTempEntity(), Mod_Q1BSP_LoadSplitSky(), Palette_Load(), r_part_start(), and VM_CL_te_explosion2().
unsigned char palette_rgb_pantscolormap[16][3] |
Definition at line 8 of file palette.c.
Referenced by CL_SetEntityColormapColors(), CL_UpdateScreen(), and Palette_Load().
unsigned char palette_rgb_pantsscoreboard[16][3] |
Definition at line 10 of file palette.c.
Referenced by CL_UpdateScreen(), Palette_Load(), Sbar_DrawFace(), Sbar_DrawFrags(), and Sbar_PrintScoreboardItem().
unsigned char palette_rgb_shirtcolormap[16][3] |
Definition at line 9 of file palette.c.
Referenced by CL_SetEntityColormapColors(), CL_UpdateScreen(), and Palette_Load().
unsigned char palette_rgb_shirtscoreboard[16][3] |
Definition at line 11 of file palette.c.
Referenced by CL_UpdateScreen(), Palette_Load(), Sbar_DrawFace(), Sbar_DrawFrags(), Sbar_PrintScoreboardItem(), and Sbar_Score().
unsigned int q2palette_bgra_complete[256] |
Definition at line 28 of file palette.c.
Referenced by LoadWAL_BGRA(), and Palette_LoadQ2Colormap().
cvar_t r_colormap_palette = {CF_CLIENT, "r_colormap_palette", "gfx/colormap_palette.lmp", "name of a palette lmp file to override the shirt/pants colors of player models. It consists of 16 shirt colors, 16 scoreboard shirt colors, 16 pants colors and 16 scoreboard pants colors"} |
Definition at line 5 of file palette.c.
Referenced by Palette_Init(), and Palette_Load().