mirror of
https://github.com/libretro/libretro-tyrquake.git
synced 2025-02-26 02:35:45 +00:00
bsp: make btof poly stuff local to r_bsp.c
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
parent
b075c60764
commit
82222e3bff
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -506,8 +506,6 @@ R_SetupFrame(void)
|
||||
|
||||
r_framecount++;
|
||||
|
||||
numbtofpolys = 0;
|
||||
|
||||
// debugging
|
||||
#if 0
|
||||
r_refdef.vieworg[0] = 80;
|
||||
|
@ -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);
|
||||
|
||||
//=========================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user