XenevaOS
Loading...
Searching...
No Matches
r_bsp.h
Go to the documentation of this file.
1//
2// Copyright(C) 1993-1996 Id Software, Inc.
3// Copyright(C) 2005-2014 Simon Howard
4//
5// This program is free software; you can redistribute it and/or
6// modify it under the terms of the GNU General Public License
7// as published by the Free Software Foundation; either version 2
8// of the License, or (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// DESCRIPTION:
16// Refresh module, BSP traversal and handling.
17//
18
19
20#ifndef __R_BSP__
21#define __R_BSP__
22
23
24
25extern seg_t* curline;
26extern side_t* sidedef;
27extern line_t* linedef;
28extern sector_t* frontsector;
29extern sector_t* backsector;
30
31extern int rw_x;
32extern int rw_stopx;
33
34extern boolean segtextured;
35
36// false if the back side is the same plane
37extern boolean markfloor;
38extern boolean markceiling;
39
40extern boolean skymap;
41
43extern drawseg_t* ds_p;
44
48
49
50typedef void (*drawfunc_t) (int start, int stop);
51
52
53// BSP?
54void R_ClearClipSegs (void);
55void R_ClearDrawSegs (void);
56
57
58void R_RenderBSPNode (int bspnum);
59
60
61#endif
side_t * sidedef
Definition r_bsp.c:41
lighttable_t ** dscalelight
void(* drawfunc_t)(int start, int stop)
Definition r_bsp.h:50
line_t * linedef
Definition r_bsp.c:42
boolean markfloor
Definition r_segs.c:42
boolean skymap
sector_t * backsector
Definition r_bsp.c:44
lighttable_t ** hscalelight
sector_t * frontsector
Definition r_bsp.c:43
drawseg_t drawsegs[MAXDRAWSEGS]
Definition r_bsp.c:46
int rw_x
Definition r_segs.c:58
boolean markceiling
Definition r_segs.c:43
void R_ClearClipSegs(void)
Definition r_bsp.c:238
void R_ClearDrawSegs(void)
Definition r_bsp.c:61
drawseg_t * ds_p
Definition r_bsp.c:47
seg_t * curline
Definition r_bsp.c:40
lighttable_t ** vscalelight
void R_RenderBSPNode(int bspnum)
Definition r_bsp.c:545
int rw_stopx
Definition r_segs.c:59
boolean segtextured
Definition r_segs.c:39
byte lighttable_t
Definition r_defs.h:298
#define MAXDRAWSEGS
Definition r_defs.h:51
Definition r_defs.h:307
Definition r_defs.h:176
Definition r_defs.h:98
Definition r_defs.h:237
Definition r_defs.h:141