bsp: make btof poly stuff local to r_bsp.c

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-01-01 18:20:51 +10:30
parent b075c60764
commit 82222e3bff
4 changed files with 10 additions and 14 deletions

View File

@ -52,6 +52,15 @@ static mvertex_t *pfrontenter, *pfrontexit;
static qboolean makeclippededge;
typedef struct btofpoly_s {
int clipflags;
msurface_t *psurf;
} btofpoly_t;
#define MAX_BTOFPOLYS 5000 // FIXME: tune this
static int numbtofpolys;
static btofpoly_t *pbtofpolys;
//===========================================================================
@ -591,6 +600,7 @@ R_RenderWorld(void)
btofpoly_t btofpolys[MAX_BTOFPOLYS];
pbtofpolys = btofpolys;
numbtofpolys = 0;
e = &r_worldentity;
VectorCopy(r_origin, modelorg);

View File

@ -49,8 +49,6 @@ static alight_t r_viewlighting = { 128, 192, viewlightvec };
qboolean r_dowarp, r_dowarpold, r_viewchanged;
int numbtofpolys;
btofpoly_t *pbtofpolys;
mvertex_t *r_pcurrentvertbase;
int c_surf;

View File

@ -506,8 +506,6 @@ R_SetupFrame(void)
r_framecount++;
numbtofpolys = 0;
// debugging
#if 0
r_refdef.vieworg[0] = 80;

View File

@ -182,16 +182,6 @@ extern vec3_t sbaseaxis[3], tbaseaxis[3];
extern int r_currentkey;
extern int r_currentbkey;
typedef struct btofpoly_s {
int clipflags;
msurface_t *psurf;
} btofpoly_t;
#define MAX_BTOFPOLYS 5000 // FIXME: tune this
extern int numbtofpolys;
extern btofpoly_t *pbtofpolys;
void R_ZDrawSubmodelPolys(const entity_t *e, model_t *clmodel);
//=========================================================