|
UFO: Alien Invasion
|

Go to the source code of this file.
Macros | |
| #define | MAPDEBUG_TEXT (1<<1) |
| cvar debug_map options: debug_map is a bit mask, like the developer cvar. There is no ALL bit. 1 (1<<0) = Turn on pathfinding floor tiles. Red can not be entered, green can be reached with current TUs, yellow can be reached but actor does not have needed TUs, and black should never be able to be reached because there is not floor to support an actor there (not tuned for flyers yet) 2 (1<<1) = Turn on cursor debug text display. The information at the top is the ceiling value where the cursor is and the (x, y, z) coordinates for the cursor at the current level. The z value will always match the level - 1. The bottom information is the floor value at teh cursor at the current level and the location of the actual displayed cursor. The distinction is made because our GUI currently always places the cursor on the ground beneath the mouse pointer, even if the ground is a few levels beneath the current level. Eventually, we will need to be able to disable that for actors that can fly and remain in the air between turns, if any. 4 (1<<2) = Turn on obstruction arrows for the floor and the ceiling. These arrows point to the ceiling surface and the floor surface for teh current cell. 8 (1<<3) = Turn on obstruction arrows. These currently look broken from what I've seen in screenshots. These arrows are supposed to point to the brushes that limit movement in a given direction. The arrows either touch the floor/ceiling of the current cell in the tested direction if it is possible to move in that direction, or touch the obstruction (surface) that prevents movement in a given direction. I want to redo these anyhow, as they are meant for map editors to be able to see what surfaces are actually preventing movement at the routing level. Feedback is encouraged. | |
| #define | MAPDEBUG_PATHING (1<<0) |
| #define | MAPDEBUG_CELLS (1<<2) |
| #define | MAPDEBUG_WALLS (1<<3) |
Functions | |
| void | CL_ViewRender (void) |
| void | CL_ViewUpdateRenderData (void) |
| Updates the refdef. | |
| void | CL_ViewCenterAtGridPosition (const pos3_t pos) |
| Centers the camera on a given grid field. | |
| 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). | |
| void | CL_ViewLoadMedia (void) |
| Call before entering a new level, or after vid_restart. | |
| void | CL_ViewInit (void) |
| void | CL_ViewPrecacheModels (void) |
| Precaches all models at game startup - for faster access. | |
Variables | |
| cvar_t * | cl_isometric |
| cvar_t * | cl_map_debug |
| #define MAPDEBUG_CELLS (1<<2) |
Definition at line 65 of file cl_view.h.
Referenced by CL_ViewRender().
| #define MAPDEBUG_PATHING (1<<0) |
Definition at line 64 of file cl_view.h.
Referenced by CL_ViewRender().
| #define MAPDEBUG_TEXT (1<<1) |
cvar debug_map options: debug_map is a bit mask, like the developer cvar. There is no ALL bit. 1 (1<<0) = Turn on pathfinding floor tiles. Red can not be entered, green can be reached with current TUs, yellow can be reached but actor does not have needed TUs, and black should never be able to be reached because there is not floor to support an actor there (not tuned for flyers yet) 2 (1<<1) = Turn on cursor debug text display. The information at the top is the ceiling value where the cursor is and the (x, y, z) coordinates for the cursor at the current level. The z value will always match the level - 1. The bottom information is the floor value at teh cursor at the current level and the location of the actual displayed cursor. The distinction is made because our GUI currently always places the cursor on the ground beneath the mouse pointer, even if the ground is a few levels beneath the current level. Eventually, we will need to be able to disable that for actors that can fly and remain in the air between turns, if any. 4 (1<<2) = Turn on obstruction arrows for the floor and the ceiling. These arrows point to the ceiling surface and the floor surface for teh current cell. 8 (1<<3) = Turn on obstruction arrows. These currently look broken from what I've seen in screenshots. These arrows are supposed to point to the brushes that limit movement in a given direction. The arrows either touch the floor/ceiling of the current cell in the tested direction if it is possible to move in that direction, or touch the obstruction (surface) that prevents movement in a given direction. I want to redo these anyhow, as they are meant for map editors to be able to see what surfaces are actually preventing movement at the routing level. Feedback is encouraged.
Definition at line 63 of file cl_view.h.
Referenced by HUD_MapDebugCursor(), and HUD_UpdateCursor().
| #define MAPDEBUG_WALLS (1<<3) |
Definition at line 66 of file cl_view.h.
Referenced by CL_ViewRender().
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, CL_ViewCalcFieldOfViewX(), 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(), CL_ViewCalcFieldOfViewX(), and SEQ_SetCamera().
Centers the camera on a given grid field.
Definition at line 289 of file cl_view.cpp.
References clientBattleScape_t::cam, cl, CL_ViewCenterAtGridPosition(), Cvar_SetValue(), camera_t::origin, PosToVec, and VectorCopy.
Referenced by CL_CenterView(), CL_NextAlien_f(), CL_NextAlienVisibleFromActor_f(), CL_PrevAlien_f(), CL_StartGame(), and CL_ViewCenterAtGridPosition().
Definition at line 298 of file cl_view.cpp.
References cl_map_displayavailablecells, cl_map_draw_rescue_zone, cl_precache, CL_ViewInit(), CVAR_ARCHIVE, and Cvar_Get().
Referenced by CL_Init(), and CL_ViewInit().
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_ViewLoadMedia(), 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(), and CL_ViewLoadMedia().
Precaches all models at game startup - for faster access.
Definition at line 152 of file cl_view.cpp.
References CL_PrecacheCharacterModels(), CL_ViewPrecacheModels(), 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(), CL_ViewPrecacheModels(), 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_ViewRender(), 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, RDF_NOWORLDMODEL, rendererData_t::ready, refdef, rendererData_t::rendererFlags, rendererData_t::shaderToFFPCount, rendererData_t::shaderToShaderCount, client_static_t::state, renderer_threadstate_t::state, THREAD_BSP, viddef, viddef_t::viewHeight, and viddef_t::viewWidth.
Referenced by CL_ViewRender(), and 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_ViewUpdateRenderData(), 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(), CL_ViewUpdateRenderData(), and SEQ_Render3D().
|
extern |
Definition at line 73 of file cl_input.cpp.
Referenced by CL_CameraMove(), CL_GetWorldCoordsUnderMouse(), CL_ViewCalcFieldOfViewX(), IN_Init(), and SEQ_SetCamera().
|
extern |
Definition at line 41 of file cl_view.cpp.
Referenced by CL_InitLocal(), CL_ViewRender(), HUD_MapDebugCursor(), and HUD_UpdateCursor().