Move defines and enums to where they are used

This commit is contained in:
Magnus Norddahl 2017-01-11 15:09:35 +01:00
parent 72762e583f
commit f288d589ff
4 changed files with 7 additions and 5 deletions

View file

@ -29,9 +29,6 @@
struct particle_t;
struct FVoxel;
#define MINZ double((2048*4) / double(1 << 20))
#define BASEXCENTER (160)
#define BASEYCENTER (100)
EXTERN_CVAR(Bool, r_fullbrightignoresectorcolor);
@ -47,8 +44,6 @@ void R_DrawSprites ();
void R_ClearSprites ();
void R_DrawMasked ();
enum { DVF_OFFSCREEN = 1, DVF_SPANSONLY = 2, DVF_MIRRORED = 4 };
void R_ClipVisSprite (vissprite_t *vis, int xl, int xh);
extern bool DrewAVoxel;

View file

@ -15,6 +15,9 @@
#include "r_visiblesprite.h"
#define BASEXCENTER (160)
#define BASEYCENTER (100)
namespace swrenderer
{
void R_SetupPlayerSpriteScale();

View file

@ -16,6 +16,8 @@
#include "swrenderer/line/r_line.h"
#include "swrenderer/scene/r_bsp.h"
#define MINZ double((2048*4) / double(1 << 20))
struct particle_t;
struct FVoxel;

View file

@ -29,6 +29,8 @@ namespace swrenderer
{
struct vissprite_t;
enum { DVF_OFFSCREEN = 1, DVF_SPANSONLY = 2, DVF_MIRRORED = 4 };
void R_DrawVisVoxel(vissprite_t *sprite, int minZ, int maxZ, short *cliptop, short *clipbottom);
void R_FillBox(DVector3 origin, double extentX, double extentY, int color, short *cliptop, short *clipbottom, bool viewspace, bool pixelstretch);
kvxslab_t *R_GetSlabStart(const FVoxelMipLevel &mip, int x, int y);