|
|
1.1 root 1: // Emacs style mode select -*- C++ -*-
2: //-----------------------------------------------------------------------------
3: //
4: // $Id:$
5: //
6: // Copyright (C) 1993-1996 by id Software, Inc.
7: //
1.1.1.2 ! root 8: // This program is free software; you can redistribute it and/or
! 9: // modify it under the terms of the GNU General Public License
! 10: // as published by the Free Software Foundation; either version 2
! 11: // of the License, or (at your option) any later version.
1.1 root 12: //
1.1.1.2 ! root 13: // This program is distributed in the hope that it will be useful,
1.1 root 14: // but WITHOUT ANY WARRANTY; without even the implied warranty of
1.1.1.2 ! root 15: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! 16: // GNU General Public License for more details.
1.1 root 17: //
18: // DESCRIPTION:
19: // Refresh module, BSP traversal and handling.
20: //
21: //-----------------------------------------------------------------------------
22:
23:
24: #ifndef __R_BSP__
25: #define __R_BSP__
26:
27: #ifdef __GNUG__
28: #pragma interface
29: #endif
30:
31:
32: extern seg_t* curline;
33: extern side_t* sidedef;
34: extern line_t* linedef;
35: extern sector_t* frontsector;
36: extern sector_t* backsector;
37:
38: extern int rw_x;
39: extern int rw_stopx;
40:
41: extern boolean segtextured;
42:
43: // false if the back side is the same plane
44: extern boolean markfloor;
45: extern boolean markceiling;
46:
47: extern boolean skymap;
48:
49: extern drawseg_t drawsegs[MAXDRAWSEGS];
50: extern drawseg_t* ds_p;
51:
52: extern lighttable_t** hscalelight;
53: extern lighttable_t** vscalelight;
54: extern lighttable_t** dscalelight;
55:
56:
57: typedef void (*drawfunc_t) (int start, int stop);
58:
59:
60: // BSP?
61: void R_ClearClipSegs (void);
62: void R_ClearDrawSegs (void);
63:
64:
65: void R_RenderBSPNode (int bspnum);
66:
67:
68: #endif
69: //-----------------------------------------------------------------------------
70: //
71: // $Log:$
72: //
73: //-----------------------------------------------------------------------------
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.