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. More... | |
static float | CL_PrecacheCharacterModels (float alreadyLoadedPercent) |
Precache all menu models for faster access. More... | |
void | CL_ViewPrecacheModels (void) |
Precaches all models at game startup - for faster access. More... | |
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) More... | |
static void | CL_ViewCalcFieldOfViewY (const float width, const float height) |
void | CL_ViewUpdateRenderData (void) |
Updates the refdef. More... | |
void | CL_ViewRender (void) |
void | CL_ViewCenterAtGridPosition (const pos3_t pos) |
Centers the camera on a given grid field. More... | |
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 teamDef_s::model_t::body, Com_Printf(), Com_sprintf(), csi, teamDef_s::model_t::head, i, cvar_s::integer, m, MAX_QPATH, teamDef_s::models, NAME_LAST, NAME_NEUTRAL, linkedList_t::next, teamDef_s::numModels, csi_s::numTeamDefs, teamDef_s::model_t::path, R_FindModel(), SCR_DrawLoadingScreen(), and csi_s::teamDef.
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 clientBattleScape_s::cam, cl, cl_camzoommin, cl_isometric, rendererData_t::fieldOfViewX, FOV, cvar_s::integer, refdef, cvar_s::value, and camera_s::zoom.
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.
References rendererData_t::fieldOfViewX, rendererData_t::fieldOfViewY, M_PI, and refdef.
Referenced by CL_ViewUpdateRenderData().
Centers the camera on a given grid field.
Definition at line 289 of file cl_view.cpp.
References clientBattleScape_s::cam, cl, Cvar_SetValue(), camera_s::origin, 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_draw_rescue_zone, 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(), clientBattleScape_s::mapTiles, MAX_MODELS, le_s::model1, le_s::model2, clientBattleScape_s::model_clip, clientBattleScape_s::model_draw, le_s::modelnum1, le_s::modelnum2, name, csi_s::numODs, R_FindModel(), R_ModBeginLoading(), rendererData_t::ready, 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, f, i, INVSH_GetItemByIDX(), objDef_s::isDummy, objDef_s::model, client_static_s::modelPool, csi_s::numODs, R_FindModel(), R_SwitchModelMemPoolTag(), SCR_DrawLoadingScreen(), and objDef_s::type.
Referenced by CL_InitAfter(), and VID_Restart_f().
Definition at line 225 of file cl_view.cpp.
References rendererData_t::aliasCount, rendererData_t::batchCount, rendererData_t::brushCount, ca_active, cl, CL_AddActorPathing(), CL_AddPathing(), CL_AddTargeting(), CL_DisplayFloorArrows(), CL_DisplayObstructionArrows(), CL_ViewUpdateRenderData(), cls, rendererData_t::FFPToShaderCount, cvar_s::integer, LE_AddToScene(), LM_AddToScene(), MAPDEBUG_CELLS, MAPDEBUG_PATHING, MAPDEBUG_WALLS, clientBattleScape_s::mapTiles, rendererData_t::mapTiles, rendererData_t::numEntities, R_RenderFrame(), r_threadstate, RDF_NOWORLDMODEL, rendererData_t::ready, refdef, rendererData_t::rendererFlags, rendererData_t::shaderToFFPCount, rendererData_t::shaderToShaderCount, client_static_s::state, renderer_threadstate_s::state, THREAD_BSP, viddef, viddef_t::viewHeight, and viddef_t::viewWidth.
Referenced by SCR_UpdateScreen().
Updates the refdef.
Definition at line 210 of file cl_view.cpp.
References camera_s::angles, clientBattleScape_s::cam, camera_s::camorg, cl, CL_ViewCalcFieldOfViewY(), cl_worldlevel, cvar_s::integer, refdef, clientBattleScape_s::time, rendererData_t::time, VectorCopy, viddef, rendererData_t::viewAngles, viddef_t::viewHeight, rendererData_t::viewOrigin, viddef_t::viewWidth, and rendererData_t::worldlevel.
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(), HUD_MapDebugCursor(), and HUD_UpdateCursor().
|
static |
Definition at line 43 of file cl_view.cpp.
|
static |
Definition at line 42 of file cl_view.cpp.