UFO: Alien Invasion
|
Battlescape radar code. More...
#include "../client.h"
#include "cl_radar.h"
#include "../renderer/r_draw.h"
#include "../renderer/r_misc.h"
#include "../cl_video.h"
#include "../ui/ui_main.h"
#include "../ui/ui_timer.h"
#include "cl_localentity.h"
#include "cl_camera.h"
#include "cl_battlescape.h"
Go to the source code of this file.
Functions | |
static void | CL_BattlescapeRadarOpen_f (void) |
static void | CL_BattlescapeRadarClose_f (void) |
static void | CL_BattlescapeRadarMapInFrameBuffer (int *x, int *y, int *width, int *height) |
static void | CL_BattlescapeRadarGenPreview_f (void) |
static void | CL_BattlescapeRadarGenerate_f (void) |
Take a screen shot of the map with the position of the radar. More... | |
static void | CL_BattlescapeRadarGenerateAll (uiNode_t *node, uiTimer_t *timer) |
static void | CL_BattlescapeRadarGenerateAll_f (void) |
Take all screenshots from lower to upper map level. Use a timer to delay each capture. More... | |
static void | CL_BattlescapeRadarGenerateAllRelease_f (void) |
void | CL_BattlescapeRadarInit (void) |
Variables | |
static uiTimer_t * | timer |
Battlescape radar code.
Definition in file cl_radar.cpp.
Definition at line 44 of file cl_radar.cpp.
References UI_CloseWindow().
Referenced by CL_BattlescapeRadarInit().
Take a screen shot of the map with the position of the radar.
We add 1 pixel into the border to easy check the result: the screen shot must have a border of 1 black pixel
Definition at line 96 of file cl_radar.cpp.
References CL_BattlescapeRadarMapInFrameBuffer(), Cvar_GetInteger(), Cvar_GetString(), level, mapName, R_ScreenShot(), and va().
Referenced by CL_BattlescapeRadarInit().
Definition at line 111 of file cl_radar.cpp.
References uiTimer_s::calledTime, Cbuf_AddText(), cl, Cmd_ExecuteString(), Cvar_SetValue(), level, and clientBattleScape_s::mapMaxLevel.
Referenced by CL_BattlescapeRadarGenerateAll_f().
Take all screenshots from lower to upper map level. Use a timer to delay each capture.
Definition at line 131 of file cl_radar.cpp.
References CL_BattlescapeRadarGenerateAll(), UI_AllocTimer(), and UI_TimerStart().
Referenced by CL_BattlescapeRadarInit().
Definition at line 141 of file cl_radar.cpp.
References UI_ExecuteConfunc(), and UI_TimerRelease().
Referenced by CL_BattlescapeRadarInit().
Definition at line 74 of file cl_radar.cpp.
References CL_BattlescapeRadarMapInFrameBuffer(), viddef_t::rx, viddef_t::ry, UI_ExecuteConfunc(), viddef, and viddef_t::virtualHeight.
Referenced by CL_BattlescapeRadarInit().
Definition at line 147 of file cl_radar.cpp.
References CL_BattlescapeRadarClose_f(), CL_BattlescapeRadarGenerate_f(), CL_BattlescapeRadarGenerateAll_f(), CL_BattlescapeRadarGenerateAllRelease_f(), CL_BattlescapeRadarGenPreview_f(), CL_BattlescapeRadarOpen_f(), and Cmd_AddCommand().
Referenced by CL_InitLocal().
|
static |
[out] | x | X position of the rect in the frame buffer (from bottom-to-top according to the screen) |
[out] | y | Y position of the rect in the frame buffer (from bottom-to-top according to the screen) |
[out] | width | Width of the rect in the frame buffer (from bottom-to-top according to the screen) |
[out] | height | Height of the rect in the frame buffer (from bottom-to-top according to the screen) |
Definition at line 57 of file cl_radar.cpp.
References cl, viddef_t::context, AABB::getWidthX(), AABB::getWidthY(), viddefContext_t::height, mapData_s::mapBox, clientBattleScape_s::mapData, viddef, and viddefContext_t::width.
Referenced by CL_BattlescapeRadarGenerate_f(), and CL_BattlescapeRadarGenPreview_f().
Definition at line 39 of file cl_radar.cpp.
References UI_PushWindow().
Referenced by CL_BattlescapeRadarInit().
Definition at line 37 of file cl_radar.cpp.
Referenced by CP_CampaignRun(), and UI_AllocTimer().