SRB2/src/r_state.h

109 lines
2.2 KiB
C
Raw Normal View History

2014-03-15 16:59:03 +00:00
// SONIC ROBO BLAST 2
//-----------------------------------------------------------------------------
// Copyright (C) 1993-1996 by id Software, Inc.
// Copyright (C) 1998-2000 by DooM Legacy Team.
2020-02-19 22:08:45 +00:00
// Copyright (C) 1999-2020 by Sonic Team Junior.
2014-03-15 16:59:03 +00:00
//
// This program is free software distributed under the
// terms of the GNU General Public License, version 2.
// See the 'LICENSE' file for more details.
//-----------------------------------------------------------------------------
/// \file r_state.h
/// \brief Refresh/render internal state variables (global)
#ifndef __R_STATE__
#define __R_STATE__
// Need data structure definitions.
#include "d_player.h"
#include "r_data.h"
#ifdef __GNUG__
#pragma interface
#endif
//
// Refresh internal data structures, for rendering.
//
// needed for pre rendering (fracs)
typedef struct
{
fixed_t width;
fixed_t offset;
fixed_t topoffset;
fixed_t height;
} sprcache_t;
extern sprcache_t *spritecachedinfo;
extern lighttable_t *colormaps;
2019-09-10 02:31:48 +00:00
extern lighttable_t *fadecolormap;
2014-03-15 16:59:03 +00:00
// Boom colormaps.
extern extracolormap_t *extra_colormaps;
2014-03-15 16:59:03 +00:00
// for global animation
extern INT32 *texturetranslation;
// Sprites
extern size_t numspritelumps, max_spritelumps;
//
// Lookup tables for map data.
//
extern boolean udmf;
2014-03-15 16:59:03 +00:00
extern size_t numsprites;
extern spritedef_t *sprites;
extern size_t numvertexes;
extern vertex_t *vertexes;
extern size_t numsegs;
extern seg_t *segs;
extern size_t numsectors;
extern sector_t *sectors;
extern sector_t *spawnsectors;
2014-03-15 16:59:03 +00:00
extern size_t numsubsectors;
extern subsector_t *subsectors;
extern size_t numnodes;
extern node_t *nodes;
extern size_t numlines;
extern line_t *lines;
extern line_t *spawnlines;
2014-03-15 16:59:03 +00:00
extern size_t numsides;
extern side_t *sides;
extern side_t *spawnsides;
2014-03-15 16:59:03 +00:00
//
// POV data.
//
extern fixed_t viewx, viewy, viewz;
extern angle_t viewangle, aimingangle;
extern sector_t *viewsector;
extern player_t *viewplayer;
2020-01-16 11:09:02 +00:00
extern mobj_t *r_viewmobj;
2014-03-15 16:59:03 +00:00
extern consvar_t cv_allowmlook;
2014-11-12 00:55:07 +00:00
extern consvar_t cv_maxportals;
2014-03-15 16:59:03 +00:00
extern angle_t clipangle;
extern angle_t doubleclipangle;
extern INT32 viewangletox[FINEANGLES/2];
extern angle_t xtoviewangle[MAXVIDWIDTH+1];
extern fixed_t rw_distance;
extern angle_t rw_normalangle;
// angle to line origin
extern angle_t rw_angle1;
#endif