|
|
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.3 ! root 8: // This source is available for distribution and/or modification
! 9: // only under the terms of the DOOM Source Code License as
! 10: // published by id Software. All rights reserved.
1.1 root 11: //
1.1.1.3 ! root 12: // The source is distributed in the hope that it will be useful,
1.1 root 13: // but WITHOUT ANY WARRANTY; without even the implied warranty of
1.1.1.3 ! root 14: // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
! 15: // for more details.
1.1 root 16: //
17: // DESCRIPTION:
18: // Refresh module, BSP traversal and handling.
19: //
20: //-----------------------------------------------------------------------------
21:
22:
23: #ifndef __R_BSP__
24: #define __R_BSP__
25:
26: #ifdef __GNUG__
27: #pragma interface
28: #endif
29:
30:
31: extern seg_t* curline;
32: extern side_t* sidedef;
33: extern line_t* linedef;
34: extern sector_t* frontsector;
35: extern sector_t* backsector;
36:
37: extern int rw_x;
38: extern int rw_stopx;
39:
40: extern boolean segtextured;
41:
42: // false if the back side is the same plane
43: extern boolean markfloor;
44: extern boolean markceiling;
45:
46: extern boolean skymap;
47:
48: extern drawseg_t drawsegs[MAXDRAWSEGS];
49: extern drawseg_t* ds_p;
50:
51: extern lighttable_t** hscalelight;
52: extern lighttable_t** vscalelight;
53: extern lighttable_t** dscalelight;
54:
55:
56: typedef void (*drawfunc_t) (int start, int stop);
57:
58:
59: // BSP?
60: void R_ClearClipSegs (void);
61: void R_ClearDrawSegs (void);
62:
63:
64: void R_RenderBSPNode (int bspnum);
65:
66:
67: #endif
68: //-----------------------------------------------------------------------------
69: //
70: // $Log:$
71: //
72: //-----------------------------------------------------------------------------
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.