mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 23:32:02 +00:00
Move floorclip, ceilingclip, floorplane and ceilingplane closer to their location
This commit is contained in:
parent
165134f1a7
commit
0884a09b38
6 changed files with 17 additions and 16 deletions
|
@ -12,6 +12,7 @@
|
|||
#include "swrenderer/r_main.h"
|
||||
#include "r_bsp.h"
|
||||
#include "r_plane.h"
|
||||
#include "r_segs.h"
|
||||
#include "c_cvars.h"
|
||||
#include "r_3dfloors.h"
|
||||
|
||||
|
|
|
@ -82,8 +82,6 @@ namespace swrenderer
|
|||
|
||||
extern subsector_t *InSubsector;
|
||||
|
||||
visplane_t *floorplane;
|
||||
visplane_t *ceilingplane;
|
||||
|
||||
// These are copies of the main parameters used when drawing stacked sectors.
|
||||
// When you change the main parameters, you should copy them here too *unless*
|
||||
|
@ -94,14 +92,6 @@ double stacked_visibility;
|
|||
DVector3 stacked_viewpos;
|
||||
DAngle stacked_angle;
|
||||
|
||||
//
|
||||
// Clip values are the solid pixel bounding the range.
|
||||
// floorclip starts out SCREENHEIGHT and is just outside the range
|
||||
// ceilingclip starts out 0 and is just inside the range
|
||||
//
|
||||
short floorclip[MAXWIDTH];
|
||||
short ceilingclip[MAXWIDTH];
|
||||
|
||||
//
|
||||
// texture mapping
|
||||
//
|
||||
|
|
|
@ -28,9 +28,6 @@
|
|||
namespace swrenderer
|
||||
{
|
||||
|
||||
extern short floorclip[MAXWIDTH];
|
||||
extern short ceilingclip[MAXWIDTH];
|
||||
|
||||
void R_ClearPlanes (bool fullclear);
|
||||
|
||||
void R_AddPlaneLights(visplane_t *plane, FLightNode *light_head);
|
||||
|
@ -42,9 +39,6 @@ void R_MapVisPlane (visplane_t *pl, void (*mapfunc)(int y, int x1, int x2), void
|
|||
visplane_t *R_FindPlane(const secplane_t &height, FTextureID picnum, int lightlevel, double alpha, bool additive, const FTransform &xform, int sky, FSectorPortal *portal);
|
||||
visplane_t *R_CheckPlane(visplane_t *pl, int start, int stop);
|
||||
|
||||
extern visplane_t* floorplane;
|
||||
extern visplane_t* ceilingplane;
|
||||
|
||||
}
|
||||
|
||||
#endif // __R_PLANE_H__
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
#include "swrenderer/segments/r_drawsegment.h"
|
||||
#include "r_things.h"
|
||||
#include "r_3dfloors.h"
|
||||
#include "r_segs.h"
|
||||
#include "swrenderer/r_main.h"
|
||||
#include "swrenderer/r_memory.h"
|
||||
|
||||
|
|
|
@ -141,6 +141,16 @@ FTexture *rw_pic;
|
|||
|
||||
static fixed_t *maskedtexturecol;
|
||||
|
||||
visplane_t *floorplane;
|
||||
visplane_t *ceilingplane;
|
||||
|
||||
// Clip values are the solid pixel bounding the range.
|
||||
// floorclip starts out SCREENHEIGHT and is just outside the range
|
||||
// ceilingclip starts out 0 and is just inside the range
|
||||
//
|
||||
short floorclip[MAXWIDTH];
|
||||
short ceilingclip[MAXWIDTH];
|
||||
|
||||
|
||||
inline bool IsFogBoundary (sector_t *front, sector_t *back)
|
||||
{
|
||||
|
|
|
@ -56,6 +56,11 @@ extern float rw_lightleft;
|
|||
extern fixed_t rw_offset;
|
||||
extern FTexture *rw_pic;
|
||||
|
||||
extern short floorclip[MAXWIDTH];
|
||||
extern short ceilingclip[MAXWIDTH];
|
||||
extern visplane_t *floorplane;
|
||||
extern visplane_t *ceilingplane;
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue