mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-24 13:21:20 +00:00
101 lines
2.1 KiB
C
101 lines
2.1 KiB
C
// SONIC ROBO BLAST 2
|
|
//-----------------------------------------------------------------------------
|
|
// Copyright (C) 1993-1996 by id Software, Inc.
|
|
// Copyright (C) 1998-2000 by DooM Legacy Team.
|
|
// Copyright (C) 1999-2018 by Sonic Team Junior.
|
|
//
|
|
// 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;
|
|
|
|
// Boom colormaps.
|
|
extern extracolormap_t *extra_colormaps;
|
|
|
|
// for global animation
|
|
extern INT32 *texturetranslation;
|
|
|
|
// Sprites
|
|
extern size_t numspritelumps, max_spritelumps;
|
|
|
|
//
|
|
// Lookup tables for map data.
|
|
//
|
|
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 size_t numsubsectors;
|
|
extern subsector_t *subsectors;
|
|
|
|
extern size_t numnodes;
|
|
extern node_t *nodes;
|
|
|
|
extern size_t numlines;
|
|
extern line_t *lines;
|
|
|
|
extern size_t numsides;
|
|
extern side_t *sides;
|
|
|
|
//
|
|
// POV data.
|
|
//
|
|
extern fixed_t viewx, viewy, viewz;
|
|
extern angle_t viewangle, aimingangle;
|
|
extern sector_t *viewsector;
|
|
extern player_t *viewplayer;
|
|
|
|
extern consvar_t cv_allowmlook;
|
|
extern consvar_t cv_maxportals;
|
|
|
|
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
|