Debian Codegraph @

prboom2/src/r_state.h

raw
1 /* Emacs style mode select -*- C -*-
2 *-----------------------------------------------------------------------------
3 *
4 *
5 * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 * based on BOOM, a modified and improved DOOM engine
7 * Copyright (C) 1999 by
8 * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 * Copyright (C) 1999-2000 by
10 * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 * Copyright 2005, 2006 by
12 * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 *
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 * 02111-1307, USA.
28 *
29 * DESCRIPTION:
30 * Refresh/render internal state variables (global).
31 *
32 *-----------------------------------------------------------------------------*/
33
34
35 #ifndef __R_STATE__
36 #define __R_STATE__
37
38 // Need data structure definitions.
39 #include "d_player.h"
40 #include "r_data.h"
41
42 //
43 // Refresh internal data structures,
44 // for rendering.
45 //
46
47 // needed for texture pegging
48 extern fixed_t *textureheight;
49
50 extern int firstflat, numflats;
51
52 // for global animation
53 extern int *flattranslation;
54 extern int *texturetranslation;
55
56 // Sprite....
57 extern int firstspritelump;
58 extern int lastspritelump;
59 extern int numspritelumps;
60
61 //
62 // Lookup tables for map data.
63 //
64 extern spritedef_t *sprites;
65
66 extern int numvertexes;
67 extern vertex_t *vertexes;
68
69 extern int numsegs;
70 extern seg_t *segs;
71
72 extern int numsectors;
73 extern sector_t *sectors;
74
75 extern int numsubsectors;
76 extern subsector_t *subsectors;
77
78 extern int numnodes;
79 extern node_t *nodes;
80
81 extern int numlines;
82 extern line_t *lines;
83
84 extern int numsides;
85 extern side_t *sides;
86
87 extern int *sslines_indexes;
88 extern ssline_t *sslines;
89
90 extern byte *map_subsectors;
91
92 //
93 // POV data.
94 //
95 extern fixed_t viewx;
96 extern fixed_t viewy;
97 extern fixed_t viewz;
98 extern angle_t viewangle;
99 extern player_t *viewplayer;
100 extern angle_t clipangle;
101 extern int viewangletox[FINEANGLES/2];
102
103 // e6y: resolution limitation is removed
104 extern angle_t *xtoviewangle; // killough 2/8/98
105
106 extern int FieldOfView;
107
108 extern fixed_t rw_distance;
109 extern angle_t rw_normalangle;
110
111 // angle to line origin
112 extern int rw_angle1;
113
114 extern visplane_t *floorplane;
115 extern visplane_t *ceilingplane;
116
117 // [FG] linear horizontal sky scrolling
118 extern angle_t *linearskyangle;
119
120 #endif