+unsigned int palette_nocolormapnofullbrights[256];
unsigned int palette_nofullbrights[256];
unsigned int palette_onlyfullbrights[256];
unsigned int palette_nofullbrights[256];
unsigned int palette_onlyfullbrights[256];
-unsigned int palette_nocolormapnofullbrights[256];
-unsigned int palette_nocolormap[256];
unsigned int palette_pantsaswhite[256];
unsigned int palette_shirtaswhite[256];
unsigned int palette_pantsaswhite[256];
unsigned int palette_shirtaswhite[256];
-unsigned int palette_alpha[256];
-unsigned int palette_font[256];
-
-qbyte host_basepal[768];
+unsigned int palette_transparent[256];
// John Carmack said the quake palette.lmp can be considered public domain because it is not an important asset to id, so I include it here as a fallback if no external palette file is found.
// John Carmack said the quake palette.lmp can be considered public domain because it is not an important asset to id, so I include it here as a fallback if no external palette file is found.
- pal = (qbyte *)FS_LoadFile ("gfx/palette.lmp", tempmempool, false);
- if (pal && fs_filesize >= 768)
- {
- memcpy(host_basepal, pal, 765);
- Mem_Free(pal);
- }
- else
- {
- Con_DPrint("Couldn't load gfx/palette.lmp, falling back on internal palette\n");
- memcpy(host_basepal, host_quakepal, 765);
- }
- host_basepal[765] = host_basepal[766] = host_basepal[767] = 0; // LordHavoc: force the transparent color to black
+ fs_offset_t filesize;
+ unsigned char *in, *out, *palfile;
+ unsigned char texturegammaramp[256];
gamma = 1;
scale = 1;
base = 0;
gamma = 1;
scale = 1;
base = 0;
-// COMMANDLINEOPTION: -texgamma <number> sets the quake palette gamma, allowing you to make quake textures brighter/darker, not recommended
+// COMMANDLINEOPTION: Client: -texgamma <number> sets the quake palette gamma, allowing you to make quake textures brighter/darker, not recommended
i = COM_CheckParm("-texgamma");
if (i)
gamma = atof(com_argv[i + 1]);
i = COM_CheckParm("-texgamma");
if (i)
gamma = atof(com_argv[i + 1]);
-// COMMANDLINEOPTION: -texcontrast <number> sets the quake palette contrast, allowing you to make quake textures brighter/darker, not recommended
+// COMMANDLINEOPTION: Client: -texcontrast <number> sets the quake palette contrast, allowing you to make quake textures brighter/darker, not recommended
i = COM_CheckParm("-texcontrast");
if (i)
scale = atof(com_argv[i + 1]);
i = COM_CheckParm("-texcontrast");
if (i)
scale = atof(com_argv[i + 1]);
-// COMMANDLINEOPTION: -texbrightness <number> sets the quake palette brightness (brightness of black), allowing you to make quake textures brighter/darker, not recommended
+// COMMANDLINEOPTION: Client: -texbrightness <number> sets the quake palette brightness (brightness of black), allowing you to make quake textures brighter/darker, not recommended