UFO: Alien Invasion
Loading...
Searching...
No Matches
cl_view.h
Go to the documentation of this file.
1
4
5/*
6Copyright (C) 2002-2025 UFO: Alien Invasion.
7
8This program is free software; you can redistribute it and/or
9modify it under the terms of the GNU General Public License
10as published by the Free Software Foundation; either version 2
11of the License, or (at your option) any later version.
12
13This program is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
17See the GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along with this program; if not, write to the Free Software
21Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
23*/
24
25#pragma once
26
27void CL_ViewRender(void);
31void CL_ViewLoadMedia(void);
32void CL_ViewInit(void);
33void CL_ViewPrecacheModels(void);
34
35extern cvar_t* cl_isometric;
36
37/* Map debugging constants */
63#define MAPDEBUG_TEXT (1<<1) /* Creates arrows pointing at floors and ceilings at mouse cursor */
64#define MAPDEBUG_PATHING (1<<0) /* Turns on pathing tracing. */
65#define MAPDEBUG_CELLS (1<<2) /* Creates arrows pointing at floors and ceilings at mouse cursor */
66#define MAPDEBUG_WALLS (1<<3) /* Creates arrows pointing at obstructions in the 8 primary directions */
67
68extern cvar_t* cl_map_debug;
cvar_t * cl_map_debug
Definition cl_view.cpp:41
void CL_ViewLoadMedia(void)
Call before entering a new level, or after vid_restart.
Definition cl_view.cpp:48
void CL_ViewCenterAtGridPosition(const pos3_t pos)
Centers the camera on a given grid field.
Definition cl_view.cpp:289
void CL_ViewUpdateRenderData(void)
Updates the refdef.
Definition cl_view.cpp:210
void CL_ViewCalcFieldOfViewX(void)
Calculates refdef's FOV_X. Should generally be called after any changes are made to the zoom level (v...
Definition cl_view.cpp:189
void CL_ViewRender(void)
Definition cl_view.cpp:225
void CL_ViewPrecacheModels(void)
Precaches all models at game startup - for faster access.
Definition cl_view.cpp:152
void CL_ViewInit(void)
Definition cl_view.cpp:298
cvar_t * cl_isometric
Definition cl_input.cpp:73
This is a cvar definition. Cvars can be user modified and used in our menus e.g.
Definition cvar.h:71
pos_t pos3_t[3]
Definition ufotypes.h:58