doom

a minimalistic implementation of doom
git clone git://ssnf.xyz/doom
Log | Files | Refs

r_state.h (1304B)


      1 #ifndef __R_STATE__
      2 #define __R_STATE__
      3 
      4 #include "d_player.h"
      5 #include "r_data.h"
      6 
      7 extern fixed_t*		textureheight_g;
      8 extern fixed_t*		spritewidth;
      9 extern fixed_t*		spriteoffset;
     10 extern fixed_t*		spritetopoffset;
     11 extern lighttable_t*	colormaps;
     12 extern int		viewwidth;
     13 extern int		scaledviewwidth;
     14 extern int		viewheight;
     15 extern int		firstflat;
     16 extern int*		flattranslation;	
     17 extern int*		texturetranslation;	
     18 extern int		firstspritelump;
     19 extern int		lastspritelump;
     20 extern int		numspritelumps;
     21 extern int		numsprites;
     22 extern spritedef_t*	sprites;
     23 extern int		numvertexes;
     24 extern vertex_t*	vertexes;
     25 extern int		numsegs;
     26 extern seg_t*		segs;
     27 extern int		numsectors;
     28 extern sector_t*	sectors;
     29 extern int		numsubsectors;
     30 extern subsector_t*	subsectors;
     31 extern int		numnodes;
     32 extern node_t*		nodes;
     33 extern int		numlines;
     34 extern line_t*		lines;
     35 extern int		numsides;
     36 extern side_t*		sides;
     37 extern fixed_t		viewx;
     38 extern fixed_t		viewy;
     39 extern fixed_t		viewz;
     40 extern angle_t		viewangle;
     41 extern player_t*	viewplayer;
     42 extern angle_t		clipangle;
     43 extern int		viewangletox[FINEANGLES/2];
     44 extern angle_t		xtoviewangle[SCREENWIDTH+1];
     45 extern fixed_t		rw_distance;
     46 extern angle_t		rw_normalangle;
     47 extern int		rw_angle1;
     48 extern int		sscount;
     49 extern visplane_t*	floorplane;
     50 extern visplane_t*	ceilingplane;
     51 
     52 #endif
     53 
     54 
     55 
     56 
     57