|
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 cl_precache, Com_Printf(), Com_sprintf(), csi, i, cvar_t::integer, m, MAX_QPATH, teamDef_t::models, NAME_LAST, NAME_NEUTRAL, linkedList_t::next, teamDef_t::numModels, csi_t::numTeamDefs, R_FindModel(), SCR_DrawLoadingScreen(), and csi_t::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_t::cam, cl, cl_camzoommin, cl_isometric, rendererData_t::fieldOfViewX, FOV, cvar_t::integer, refdef, cvar_t::value, and camera_t::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_t::cam, cl, Cvar_SetValue(), camera_t::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_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(), clientBattleScape_t::mapTiles, MAX_MODELS, le_t::model1, le_t::model2, clientBattleScape_t::model_clip, clientBattleScape_t::model_draw, le_t::modelnum1, le_t::modelnum2, name, csi_t::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, i, INVSH_GetItemByIDX(), objDef_t::isDummy, objDef_t::model, client_static_t::modelPool, csi_t::numODs, 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 rendererData_t::aliasCount, rendererData_t::batchCount, rendererData_t::brushCount, ca_active, cl, CL_AddActorPathing(), CL_AddPathing(), CL_AddTargeting(), CL_DisplayFloorArrows(), CL_DisplayObstructionArrows(), cl_map_debug, cl_map_displayavailablecells, CL_ViewUpdateRenderData(), cls, rendererData_t::FFPToShaderCount, cvar_t::integer, LE_AddToScene(), LM_AddToScene(), MAPDEBUG_CELLS, MAPDEBUG_PATHING, MAPDEBUG_WALLS, clientBattleScape_t::mapTiles, rendererData_t::mapTiles, rendererData_t::numEntities, R_RenderFrame(), r_threadstate, rendererData_t::ready, refdef, rendererData_t::rendererFlags, rendererData_t::shaderToFFPCount, rendererData_t::shaderToShaderCount, renderer_threadstate_t::state, client_static_t::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_t::angles, clientBattleScape_t::cam, camera_t::camorg, cl, CL_ViewCalcFieldOfViewY(), cl_worldlevel, cvar_t::integer, refdef, clientBattleScape_t::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(), 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().