|
UFO: Alien Invasion
|
Player rendering positioning. More...
#include "../client.h"#include "../cl_screen.h"#include "../cgame/cl_game.h"#include "cl_particle.h"#include "cl_localentity.h"#include "cl_actor.h"#include "cl_hud.h"#include "cl_spawn.h"#include "cl_view.h"#include "../renderer/r_main.h"#include "../renderer/r_entity.h"
Go to the source code of this file.
Functions | |
| void | CL_ViewLoadMedia (void) |
| Call before entering a new level, or after vid_restart. | |
| static float | CL_PrecacheCharacterModels (float alreadyLoadedPercent) |
| Precache all menu models for faster access. | |
| void | CL_ViewPrecacheModels (void) |
| Precaches all models at game startup - for faster access. | |
| void | CL_ViewCalcFieldOfViewX (void) |
| Calculates refdef's FOV_X. Should generally be called after any changes are made to the zoom level (via cl.cam.zoom). | |
| static void | CL_ViewCalcFieldOfViewY (const float width, const float height) |
| void | CL_ViewUpdateRenderData (void) |
| Updates the refdef. | |
| void | CL_ViewRender (void) |
| void | CL_ViewCenterAtGridPosition (const pos3_t pos) |
| Centers the camera on a given grid field. | |
| void | CL_ViewInit (void) |
Variables | |
| cvar_t * | cl_map_debug |
| static cvar_t * | cl_precache |
| static cvar_t * | cl_map_displayavailablecells |
Player rendering positioning.
Definition in file cl_view.cpp.
|
static |
Precache all menu models for faster access.
Definition at line 117 of file cl_view.cpp.
References cl_precache, Com_Printf(), Com_sprintf(), csi, i, m, MAX_QPATH, teamDef_t::models, NAME_LAST, NAME_NEUTRAL, linkedList_t::next, teamDef_t::numModels, R_FindModel(), and SCR_DrawLoadingScreen().
Referenced by CL_ViewPrecacheModels().
Calculates refdef's FOV_X. Should generally be called after any changes are made to the zoom level (via cl.cam.zoom).
Definition at line 189 of file cl_view.cpp.
References cl, cl_camzoommin, cl_isometric, FOV, and refdef.
Referenced by CL_CameraMove(), CL_CameraZoomIn(), CL_CameraZoomOut(), CL_ClearState(), CL_StartGame(), and SEQ_SetCamera().
|
inlinestatic |
Definition at line 202 of file cl_view.cpp.
Referenced by CL_ViewUpdateRenderData().
Centers the camera on a given grid field.
Definition at line 289 of file cl_view.cpp.
References cl, Cvar_SetValue(), PosToVec, and VectorCopy.
Referenced by CL_CenterView(), CL_NextAlien_f(), CL_NextAlienVisibleFromActor_f(), CL_PrevAlien_f(), and CL_StartGame().
Definition at line 298 of file cl_view.cpp.
References cl_map_displayavailablecells, cl_map_draw_rescue_zone, cl_precache, CVAR_ARCHIVE, and Cvar_Get().
Referenced by CL_Init().
Call before entering a new level, or after vid_restart.
Definition at line 48 of file cl_view.cpp.
References _, cl, CL_GetConfigString(), CL_GetConfigStringInteger(), CL_ParticleRegisterArt(), CL_SpawnParseEntitystring(), CL_ViewUpdateRenderData(), CM_InlineModel(), Cmd_ExecuteString(), Com_Error(), CS_LIGHTMAP, CS_MAPTITLE, CS_MAPZONE, CS_MODELS, CS_NAME, CS_POSITIONS, CS_TILES, csi, ERR_DROP, GAME_InitMissionBriefing(), i, LE_GetDrawModel(), LE_GetNextInUse(), LM_Register(), MAX_MODELS, le_t::model1, le_t::model2, le_t::modelnum1, le_t::modelnum2, name, R_FindModel(), R_ModBeginLoading(), refdef, SCR_DrawLoading(), and SCR_EndLoadingPlaque().
Referenced by CL_RequestNextDownload().
Precaches all models at game startup - for faster access.
Definition at line 152 of file cl_view.cpp.
References CL_PrecacheCharacterModels(), cls, Com_DPrintf(), csi, DEBUG_CLIENT, i, INVSH_GetItemByIDX(), objDef_t::isDummy, objDef_t::model, R_FindModel(), R_SwitchModelMemPoolTag(), SCR_DrawLoadingScreen(), and objDef_t::type.
Referenced by CL_InitAfter(), and VID_Restart_f().
Definition at line 225 of file cl_view.cpp.
References ca_active, cl, CL_AddActorPathing(), CL_AddPathing(), CL_AddTargeting(), CL_DisplayFloorArrows(), CL_DisplayObstructionArrows(), cl_map_debug, cl_map_displayavailablecells, CL_ViewUpdateRenderData(), cls, LE_AddToScene(), LM_AddToScene(), MAPDEBUG_CELLS, MAPDEBUG_PATHING, MAPDEBUG_WALLS, R_RenderFrame(), r_threadstate, RDF_NOWORLDMODEL, refdef, THREAD_BSP, and viddef.
Referenced by SCR_UpdateScreen().
Updates the refdef.
Definition at line 210 of file cl_view.cpp.
References cl, CL_ViewCalcFieldOfViewY(), cl_worldlevel, refdef, VectorCopy, and viddef.
Referenced by CL_ViewLoadMedia(), CL_ViewRender(), and SEQ_Render3D().
| cvar_t* cl_map_debug |
Definition at line 41 of file cl_view.cpp.
Referenced by CL_InitLocal(), CL_ViewRender(), HUD_MapDebugCursor(), and HUD_UpdateCursor().
|
static |
Definition at line 43 of file cl_view.cpp.
Referenced by CL_ViewInit(), and CL_ViewRender().
|
static |
Definition at line 42 of file cl_view.cpp.
Referenced by CL_PrecacheCharacterModels(), and CL_ViewInit().