mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 23:12:24 +00:00
ea1d6634f7
- replaced TStaticArray with regular TArrays. They had incomplete implementations preventing proper cleanup of the level loading code. It makes more sense to add the missing methods to the regular TArray and use that. This also makes some changes to how the game nodes are used to avoid creating a copy: If the head node's pointer is stored in a separate variable, no code needs to check which of the two arrays gets used.
55 lines
1.3 KiB
C++
55 lines
1.3 KiB
C++
// Emacs style mode select -*- C++ -*-
|
|
//-----------------------------------------------------------------------------
|
|
//
|
|
// $Id:$
|
|
//
|
|
// Copyright (C) 1993-1996 by id Software, Inc.
|
|
//
|
|
// This source is available for distribution and/or modification
|
|
// only under the terms of the DOOM Source Code License as
|
|
// published by id Software. All rights reserved.
|
|
//
|
|
// The source is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
|
|
// for more details.
|
|
//
|
|
// DESCRIPTION:
|
|
// Refresh/render internal state variables (global).
|
|
//
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
#ifndef __R_STATE_H__
|
|
#define __R_STATE_H__
|
|
|
|
// Need data structure definitions.
|
|
#include "doomtype.h"
|
|
#include "r_defs.h"
|
|
#include "r_data/sprites.h"
|
|
|
|
//
|
|
// Refresh internal data structures,
|
|
// for rendering.
|
|
//
|
|
|
|
extern int viewwindowx;
|
|
extern int viewwindowy;
|
|
extern int viewwidth;
|
|
extern int viewheight;
|
|
|
|
//
|
|
// Lookup tables for map data.
|
|
//
|
|
extern TArray<spritedef_t> sprites;
|
|
extern uint32_t NumStdSprites;
|
|
|
|
extern TArray<vertexdata_t> vertexdatas;
|
|
|
|
//
|
|
// POV data.
|
|
//
|
|
|
|
int R_FindSkin (const char *name, int pclass); // [RH] Find a skin
|
|
|
|
#endif // __R_STATE_H__
|