mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- removed some unnecessary r_ header #includes.
SVN r3257 (trunk)
This commit is contained in:
parent
f8ba5af858
commit
03177090c0
22 changed files with 46 additions and 58 deletions
|
@ -48,7 +48,6 @@ Everything that is changed is marked (maybe commented) with "Added by MC"
|
|||
#include "b_bot.h"
|
||||
#include "g_game.h"
|
||||
#include "m_random.h"
|
||||
#include "r_things.h"
|
||||
#include "doomstat.h"
|
||||
#include "cmdlib.h"
|
||||
#include "sc_man.h"
|
||||
|
|
|
@ -54,7 +54,6 @@
|
|||
#include "v_text.h"
|
||||
#include "w_wad.h"
|
||||
#include "r_main.h"
|
||||
#include "r_draw.h"
|
||||
#include "sbar.h"
|
||||
#include "s_sound.h"
|
||||
#include "s_sndseq.h"
|
||||
|
|
|
@ -60,7 +60,6 @@
|
|||
#include "gi.h"
|
||||
#include "c_dispatch.h"
|
||||
#include "decallib.h"
|
||||
#include "r_draw.h"
|
||||
#include "v_palette.h"
|
||||
#include "a_sharedglobal.h"
|
||||
#include "thingdef/thingdef.h"
|
||||
|
|
|
@ -47,7 +47,6 @@
|
|||
#include "v_palette.h"
|
||||
#include "v_video.h"
|
||||
#include "i_system.h"
|
||||
#include "r_draw.h"
|
||||
#include "r_state.h"
|
||||
#include "sbar.h"
|
||||
#include "gi.h"
|
||||
|
|
|
@ -42,7 +42,6 @@
|
|||
#include "weightedlist.h"
|
||||
#include "statnums.h"
|
||||
#include "templates.h"
|
||||
#include "r_draw.h"
|
||||
#include "a_sharedglobal.h"
|
||||
#include "r_data/r_translate.h"
|
||||
#include "gi.h"
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#include "actor.h"
|
||||
#include "p_enemy.h"
|
||||
#include "a_action.h"
|
||||
#include "r_draw.h"
|
||||
#include "m_random.h"
|
||||
#include "p_local.h"
|
||||
#include "a_doomglobal.h"
|
||||
|
|
|
@ -62,7 +62,6 @@
|
|||
#include "s_sound.h"
|
||||
#include "gstrings.h"
|
||||
#include "r_sky.h"
|
||||
#include "r_draw.h"
|
||||
#include "g_game.h"
|
||||
#include "g_level.h"
|
||||
#include "b_bot.h" //Added by MC:
|
||||
|
|
|
@ -41,7 +41,6 @@
|
|||
#include "c_console.h"
|
||||
#include "v_video.h"
|
||||
#include "m_swap.h"
|
||||
#include "r_draw.h"
|
||||
#include "w_wad.h"
|
||||
#include "v_text.h"
|
||||
#include "s_sound.h"
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
#include "v_video.h"
|
||||
#include "m_random.h"
|
||||
#include "r_defs.h"
|
||||
#include "r_things.h"
|
||||
#include "s_sound.h"
|
||||
#include "templates.h"
|
||||
#include "gi.h"
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
#include "doomstat.h"
|
||||
#include "s_sound.h"
|
||||
#include "i_system.h"
|
||||
#include "r_draw.h"
|
||||
#include "gi.h"
|
||||
#include "m_random.h"
|
||||
#include "p_pspr.h"
|
||||
|
|
|
@ -47,8 +47,6 @@
|
|||
#include "v_text.h"
|
||||
#include "st_start.h"
|
||||
#include "doomstat.h"
|
||||
#include "r_bsp.h"
|
||||
#include "r_segs.h"
|
||||
#include "v_palette.h"
|
||||
#include "colormatcher.h"
|
||||
#include "colormaps.h"
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
#include <stddef.h>
|
||||
|
||||
#include "templates.h"
|
||||
#include "r_draw.h"
|
||||
#include "r_main.h"
|
||||
#include "r_data/r_translate.h"
|
||||
#include "v_video.h"
|
||||
|
@ -54,6 +53,7 @@
|
|||
|
||||
TAutoGrowArray<FRemapTablePtr, FRemapTable *> translationtables[NUM_TRANSLATION_TABLES];
|
||||
|
||||
|
||||
const BYTE IcePalette[16][3] =
|
||||
{
|
||||
{ 10, 8, 18 },
|
||||
|
@ -681,7 +681,7 @@ static void PushIdentityTable(int slot)
|
|||
|
||||
void R_InitTranslationTables ()
|
||||
{
|
||||
int i, j;
|
||||
int i;
|
||||
|
||||
// Each player gets two translations. Doom and Strife don't use the
|
||||
// extra ones, but Heretic and Hexen do. These are set up during
|
||||
|
@ -815,41 +815,6 @@ void R_InitTranslationTables ()
|
|||
remap->Remap[i] = IcePaletteRemap[v];
|
||||
remap->Palette[i] = PalEntry(255, IcePalette[v][0], IcePalette[v][1], IcePalette[v][2]);
|
||||
}
|
||||
|
||||
// set up shading tables for shaded columns
|
||||
// 16 colormap sets, progressing from full alpha to minimum visible alpha
|
||||
|
||||
BYTE *table = shadetables;
|
||||
|
||||
// Full alpha
|
||||
for (i = 0; i < 16; ++i)
|
||||
{
|
||||
ShadeFakeColormap[i].Color = ~0u;
|
||||
ShadeFakeColormap[i].Desaturate = ~0u;
|
||||
ShadeFakeColormap[i].Next = NULL;
|
||||
ShadeFakeColormap[i].Maps = table;
|
||||
|
||||
for (j = 0; j < NUMCOLORMAPS; ++j)
|
||||
{
|
||||
int a = (NUMCOLORMAPS - j) * 256 / NUMCOLORMAPS * (16-i);
|
||||
for (int k = 0; k < 256; ++k)
|
||||
{
|
||||
BYTE v = (((k+2) * a) + 256) >> 14;
|
||||
table[k] = MIN<BYTE> (v, 64);
|
||||
}
|
||||
table += 256;
|
||||
}
|
||||
}
|
||||
for (i = 0; i < NUMCOLORMAPS*16*256; ++i)
|
||||
{
|
||||
assert(shadetables[i] <= 64);
|
||||
}
|
||||
|
||||
// Set up a guaranteed identity map
|
||||
for (i = 0; i < 256; ++i)
|
||||
{
|
||||
identitymap[i] = i;
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
|
|
@ -58,9 +58,6 @@
|
|||
#include "d_net.h"
|
||||
#include "colormatcher.h"
|
||||
#include "d_netinf.h"
|
||||
#include "r_bsp.h"
|
||||
#include "r_plane.h"
|
||||
#include "r_segs.h"
|
||||
#include "v_palette.h"
|
||||
#include "r_data/r_translate.h"
|
||||
#include "r_data/colormaps.h"
|
||||
|
|
|
@ -127,6 +127,46 @@ BYTE identitymap[256];
|
|||
|
||||
EXTERN_CVAR (Int, r_columnmethod)
|
||||
|
||||
|
||||
void R_InitShadeMaps()
|
||||
{
|
||||
int i,j;
|
||||
// set up shading tables for shaded columns
|
||||
// 16 colormap sets, progressing from full alpha to minimum visible alpha
|
||||
|
||||
BYTE *table = shadetables;
|
||||
|
||||
// Full alpha
|
||||
for (i = 0; i < 16; ++i)
|
||||
{
|
||||
ShadeFakeColormap[i].Color = ~0u;
|
||||
ShadeFakeColormap[i].Desaturate = ~0u;
|
||||
ShadeFakeColormap[i].Next = NULL;
|
||||
ShadeFakeColormap[i].Maps = table;
|
||||
|
||||
for (j = 0; j < NUMCOLORMAPS; ++j)
|
||||
{
|
||||
int a = (NUMCOLORMAPS - j) * 256 / NUMCOLORMAPS * (16-i);
|
||||
for (int k = 0; k < 256; ++k)
|
||||
{
|
||||
BYTE v = (((k+2) * a) + 256) >> 14;
|
||||
table[k] = MIN<BYTE> (v, 64);
|
||||
}
|
||||
table += 256;
|
||||
}
|
||||
}
|
||||
for (i = 0; i < NUMCOLORMAPS*16*256; ++i)
|
||||
{
|
||||
assert(shadetables[i] <= 64);
|
||||
}
|
||||
|
||||
// Set up a guaranteed identity map
|
||||
for (i = 0; i < 256; ++i)
|
||||
{
|
||||
identitymap[i] = i;
|
||||
}
|
||||
}
|
||||
|
||||
/************************************/
|
||||
/* */
|
||||
/* Palettized drawers (C versions) */
|
||||
|
|
|
@ -252,6 +252,7 @@ extern BYTE identitymap[256];
|
|||
extern BYTE *dc_translation;
|
||||
|
||||
// [RH] Added for muliresolution support
|
||||
void R_InitShadeMaps();
|
||||
void R_InitFuzzTable (int fuzzoff);
|
||||
|
||||
// [RH] Consolidate column drawer selection
|
||||
|
|
|
@ -827,6 +827,7 @@ void R_Init ()
|
|||
R_SetViewSize (screenblocks);
|
||||
R_InitPlanes ();
|
||||
R_InitTranslationTables ();
|
||||
R_InitShadeMaps();
|
||||
R_InitParticles (); // [RH] Setup particle engine
|
||||
R_InitColumnDrawers ();
|
||||
|
||||
|
|
|
@ -40,7 +40,6 @@
|
|||
#include "tarray.h"
|
||||
#include "templates.h"
|
||||
#include "r_defs.h"
|
||||
#include "r_draw.h"
|
||||
#include "a_pickups.h"
|
||||
#include "s_sound.h"
|
||||
#include "cmdlib.h"
|
||||
|
|
|
@ -46,7 +46,6 @@
|
|||
#include "w_wad.h"
|
||||
#include "templates.h"
|
||||
#include "r_defs.h"
|
||||
#include "r_draw.h"
|
||||
#include "a_pickups.h"
|
||||
#include "s_sound.h"
|
||||
#include "cmdlib.h"
|
||||
|
|
|
@ -47,7 +47,6 @@
|
|||
#include "w_wad.h"
|
||||
#include "templates.h"
|
||||
#include "r_defs.h"
|
||||
#include "r_draw.h"
|
||||
#include "a_pickups.h"
|
||||
#include "s_sound.h"
|
||||
#include "cmdlib.h"
|
||||
|
|
|
@ -45,7 +45,6 @@
|
|||
#include "w_wad.h"
|
||||
#include "templates.h"
|
||||
#include "r_defs.h"
|
||||
#include "r_draw.h"
|
||||
#include "a_pickups.h"
|
||||
#include "s_sound.h"
|
||||
#include "cmdlib.h"
|
||||
|
|
|
@ -90,7 +90,8 @@ The FON2 header is followed by variable length data:
|
|||
#include "cmdlib.h"
|
||||
#include "sc_man.h"
|
||||
#include "hu_stuff.h"
|
||||
#include "r_draw.h"
|
||||
#include "farchive.h"
|
||||
#include "textures/textures.h"
|
||||
#include "r_data/r_translate.h"
|
||||
#include "colormatcher.h"
|
||||
#include "v_palette.h"
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
#include "x86.h"
|
||||
#include "i_video.h"
|
||||
#include "r_local.h"
|
||||
#include "r_draw.h"
|
||||
#include "r_state.h"
|
||||
|
||||
#include "doomdef.h"
|
||||
|
|
Loading…
Reference in a new issue