![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
#include "quakedef.h"
#include "cl_video.h"
#include "image.h"
#include "jpeg.h"
#include "image_png.h"
#include "cl_collision.h"
#include "libcurl.h"
#include "csprogs.h"
#include "r_stats.h"
#include "snd_main.h"
Go to the source code of this file.
Data Structures | |
struct | envmapinfo_s |
struct | loadingscreenstack_t |
Variables | |
char | cl_connect_status [MAX_QPATH] |
User-friendly connection status for the menu and/or loading screen, colours and not supported. | |
cvar_t | cl_demo_mousegrab = {CF_CLIENT, "cl_demo_mousegrab", "0", "Allows reading the mouse input while playing demos. Useful for camera mods developed in csqc. (0: never, 1: always)"} |
cvar_t | cl_minfps |
cvar_t | cl_minfps_fade |
cvar_t | cl_minfps_force |
cvar_t | cl_minfps_qualityhysteresis |
cvar_t | cl_minfps_qualitymax |
cvar_t | cl_minfps_qualitymin |
cvar_t | cl_minfps_qualitymultiply |
cvar_t | cl_minfps_qualitystepmax |
int | cl_punchangle_applied |
int | con_vislines |
struct envmapinfo_s | envmapinfo [12] |
int | jpeg_supported = false |
static int | loadingscreenpic_number = 0 |
static loadingscreenstack_t * | loadingscreenstack = NULL |
rtexture_t * | loadingscreentexture = NULL |
static float | loadingscreentexture_texcoord2f [8] |
static float | loadingscreentexture_vertex3f [12] |
cvar_t | net_graph = {CF_CLIENT | CF_ARCHIVE, "net_graph", "0", "shows a graph of packet sizes and other information, 0 = off, 1 = show client netgraph, 2 = show client and server netgraphs (when hosting a server)"} |
cvar_t | r_fog_clear |
cvar_t | r_letterbox = {CF_CLIENT, "r_letterbox", "0", "reduces vertical height of view to simulate a letterboxed movie effect (can be used by mods for cutscenes)"} |
rtexturepool_t * | r_main_texturepool |
cvar_t | r_stereo_angle = {CF_CLIENT, "r_stereo_angle", "0", "separation angle of eyes (makes the views look different directions, as an example, 90 gives a 90 degree separation where the views are 45 degrees left and 45 degrees right)"} |
cvar_t | r_stereo_horizontal = {CF_CLIENT, "r_stereo_horizontal", "0", "aspect skewed side by side view for special decoder/display hardware"} |
cvar_t | r_stereo_redblue = {CF_CLIENT, "r_stereo_redblue", "0", "red/blue anaglyph stereo glasses (note: most of these glasses are actually red/cyan, try that one too)"} |
cvar_t | r_stereo_redcyan = {CF_CLIENT, "r_stereo_redcyan", "0", "red/cyan anaglyph stereo glasses, the kind given away at drive-in movies like Creature From The Black Lagoon In 3D"} |
cvar_t | r_stereo_redgreen = {CF_CLIENT, "r_stereo_redgreen", "0", "red/green anaglyph stereo glasses (for those who don't mind yellow)"} |
cvar_t | r_stereo_separation = {CF_CLIENT, "r_stereo_separation", "4", "separation distance of eyes in the world (negative values are only useful for cross-eyed viewing)"} |
int | r_stereo_side |
cvar_t | r_stereo_sidebyside = {CF_CLIENT, "r_stereo_sidebyside", "0", "side by side views for those who can't afford glasses but can afford eye strain (note: use a negative r_stereo_separation if you want cross-eyed viewing)"} |
cvar_t | r_stereo_vertical = {CF_CLIENT, "r_stereo_vertical", "0", "aspect skewed top and bottom view for special decoder/display hardware"} |
cvar_t | sbar_info_pos |
int | scr_center_lines |
char | scr_centerstring [MAX_INPUTLINE] |
cvar_t | scr_centertime = {CF_CLIENT, "scr_centertime","2", "how long centerprint messages show"} |
float | scr_centertime_off |
float | scr_centertime_start |
unsigned int | scr_con_current |
static unsigned int | scr_con_margin_bottom |
cvar_t | scr_conalpha = {CF_CLIENT | CF_ARCHIVE, "scr_conalpha", "0.9", "opacity of console background gfx/conback (when console isn't forced fullscreen)"} |
cvar_t | scr_conalpha2factor = {CF_CLIENT | CF_ARCHIVE, "scr_conalpha2factor", "0", "opacity of console background gfx/conback2 relative to scr_conalpha; when 0, gfx/conback2 is not drawn"} |
cvar_t | scr_conalpha3factor = {CF_CLIENT | CF_ARCHIVE, "scr_conalpha3factor", "0", "opacity of console background gfx/conback3 relative to scr_conalpha; when 0, gfx/conback3 is not drawn"} |
cvar_t | scr_conalphafactor = {CF_CLIENT | CF_ARCHIVE, "scr_conalphafactor", "1", "opacity of console background gfx/conback relative to scr_conalpha; when 0, gfx/conback is not drawn"} |
cvar_t | scr_conbrightness = {CF_CLIENT | CF_ARCHIVE, "scr_conbrightness", "1", "brightness of console background (0 = black, 1 = image)"} |
cvar_t | scr_conforcewhiledisconnected = {CF_CLIENT, "scr_conforcewhiledisconnected", "1", "1 forces fullscreen console while disconnected, 2 also forces it when the listen server has started but the client is still loading"} |
cvar_t | scr_conheight = {CF_CLIENT | CF_ARCHIVE, "scr_conheight", "0.5", "fraction of screen height occupied by console (reduced as necessary for visibility of loading progress and infobar)"} |
cvar_t | scr_conscroll2_x = {CF_CLIENT | CF_ARCHIVE, "scr_conscroll2_x", "0", "scroll speed of gfx/conback2 in x direction"} |
cvar_t | scr_conscroll2_y = {CF_CLIENT | CF_ARCHIVE, "scr_conscroll2_y", "0", "scroll speed of gfx/conback2 in y direction"} |
cvar_t | scr_conscroll3_x = {CF_CLIENT | CF_ARCHIVE, "scr_conscroll3_x", "0", "scroll speed of gfx/conback3 in x direction"} |
cvar_t | scr_conscroll3_y = {CF_CLIENT | CF_ARCHIVE, "scr_conscroll3_y", "0", "scroll speed of gfx/conback3 in y direction"} |
cvar_t | scr_conscroll_x = {CF_CLIENT | CF_ARCHIVE, "scr_conscroll_x", "0", "scroll speed of gfx/conback in x direction"} |
cvar_t | scr_conscroll_y = {CF_CLIENT | CF_ARCHIVE, "scr_conscroll_y", "0", "scroll speed of gfx/conback in y direction"} |
int | scr_erase_center |
int | scr_erase_lines |
cvar_t | scr_fov = {CF_CLIENT | CF_ARCHIVE, "fov","90", "field of vision, 1-170 degrees, default 90, some players use 110-130"} |
cvar_t | scr_infobar_height = {CF_CLIENT, "scr_infobar_height", "8", "the height of the infobar items"} |
char | scr_infobarstring [MAX_INPUTLINE] |
float | scr_infobartime_off |
qbool | scr_initialized |
qbool | scr_loading = false |
cvar_t | scr_loadingscreen_background = {CF_CLIENT, "scr_loadingscreen_background","0", "show the last visible background during loading screen (costs one screenful of video memory)"} |
cvar_t | scr_loadingscreen_barcolor = {CF_CLIENT, "scr_loadingscreen_barcolor", "0 0 1", "rgb color of loadingscreen progress bar"} |
cvar_t | scr_loadingscreen_barheight = {CF_CLIENT, "scr_loadingscreen_barheight", "8", "the height of the loadingscreen progress bar"} |
cvar_t | scr_loadingscreen_count = {CF_CLIENT, "scr_loadingscreen_count","1", "number of loading screen files to use randomly (named loading.tga, loading2.tga, loading3.tga, ...)"} |
cvar_t | scr_loadingscreen_firstforstartup = {CF_CLIENT, "scr_loadingscreen_firstforstartup","0", "remove loading.tga from random scr_loadingscreen_count selection and only display it on client startup, 0 = normal, 1 = firstforstartup"} |
cvar_t | scr_loadingscreen_maxfps = {CF_CLIENT, "scr_loadingscreen_maxfps", "20", "maximum FPS for loading screen so it will not update very often (this reduces loading time with lots of models)"} |
cvar_t | scr_loadingscreen_picture = {CF_CLIENT, "scr_loadingscreen_picture", "gfx/loading", "picture shown during loading"} |
cvar_t | scr_loadingscreen_scale = {CF_CLIENT, "scr_loadingscreen_scale","1", "scale factor of the background"} |
cvar_t | scr_loadingscreen_scale_base = {CF_CLIENT, "scr_loadingscreen_scale_base","0", "0 = console pixels, 1 = video pixels"} |
cvar_t | scr_loadingscreen_scale_limit = {CF_CLIENT, "scr_loadingscreen_scale_limit","0", "0 = no limit, 1 = until first edge hits screen edge, 2 = until last edge hits screen edge, 3 = until width hits screen width, 4 = until height hits screen height"} |
int | scr_numtouchscreenareas |
cvar_t | scr_printspeed = {CF_CLIENT, "scr_printspeed","0", "speed of intermission printing (episode end texts), a value of 0 disables the slow printing"} |
cvar_t | scr_refresh = {CF_CLIENT, "scr_refresh", "1", "allows you to completely shut off rendering for benchmarking purposes"} |
cvar_t | scr_sbarscale = {CF_CLIENT | CF_READONLY, "scr_sbarscale", "1", "current vid_height/vid_conheight, for compatibility with csprogs that read this cvar (found in Fitzquake-derived engines and FTEQW; despite the name it's not specific to the status bar)"} |
cvar_t | scr_screenshot_alpha = {CF_CLIENT, "scr_screenshot_alpha","0", "try to write an alpha channel to screenshots (debugging feature)"} |
cvar_t | scr_screenshot_gammaboost = {CF_CLIENT | CF_ARCHIVE, "scr_screenshot_gammaboost","1", "gamma correction on saved screenshots and videos, 1.0 saves unmodified images"} |
cvar_t | scr_screenshot_jpeg = {CF_CLIENT | CF_ARCHIVE, "scr_screenshot_jpeg","1", "save jpeg instead of targa or PNG"} |
cvar_t | scr_screenshot_jpeg_quality = {CF_CLIENT | CF_ARCHIVE, "scr_screenshot_jpeg_quality","0.9", "image quality of saved jpeg"} |
cvar_t | scr_screenshot_name_in_mapdir = {CF_CLIENT | CF_ARCHIVE, "scr_screenshot_name_in_mapdir", "0", "if set to 1, screenshots are placed in a subdirectory named like the map they are from"} |
cvar_t | scr_screenshot_png = {CF_CLIENT | CF_ARCHIVE, "scr_screenshot_png","0", "save png instead of targa"} |
cvar_t | scr_screenshot_timestamp = {CF_CLIENT | CF_ARCHIVE, "scr_screenshot_timestamp", "1", "use a timestamp based number of the type YYYYMMDDHHMMSSsss instead of sequential numbering"} |
cvar_t | scr_showbrand = {CF_CLIENT, "showbrand","0", "shows gfx/brand.tga in a corner of the screen (different values select different positions, including centered)"} |
cvar_t | scr_showpause = {CF_CLIENT | CF_ARCHIVE, "showpause","1", "show pause icon when game is paused"} |
cvar_t | scr_showram = {CF_CLIENT | CF_ARCHIVE, "showram","1", "show ram icon if low on surface cache memory (not used)"} |
cvar_t | scr_showturtle = {CF_CLIENT | CF_ARCHIVE, "showturtle","0", "show turtle icon when framerate is too low"} |
cvar_t | scr_stipple = {CF_CLIENT, "scr_stipple", "0", "interlacing-like stippling of the display"} |
scr_touchscreenarea_t | scr_touchscreenareas [128] |
cvar_t | scr_viewsize = {CF_CLIENT | CF_ARCHIVE, "viewsize","100", "how large the view should be, 110 disables inventory bar, 120 disables status bar"} |
cvar_t | timedemo_screenshotframelist = {CF_CLIENT, "timedemo_screenshotframelist", "", "when performing a timedemo, take screenshots of each frame in this space-separated list - example: 1 201 401"} |
cvar_t | v_isometric |
cvar_t | v_isometric_verticalfov |
cvar_t | vid_conheight = {CF_CLIENT | CF_ARCHIVE, "vid_conheight", "480", "virtual height of 2D graphics system"} |
cvar_t | vid_conwidth = {CF_CLIENT | CF_ARCHIVE, "vid_conwidth", "640", "virtual width of 2D graphics system (note: changes may be overwritten, see vid_conwidthauto)"} |
cvar_t | vid_conwidthauto = {CF_CLIENT | CF_ARCHIVE, "vid_conwidthauto", "1", "automatically update vid_conwidth to match aspect ratio"} |
cvar_t | vid_pixelheight = {CF_CLIENT | CF_ARCHIVE, "vid_pixelheight", "1", "adjusts vertical field of vision to account for non-square pixels (1280x1024 on a CRT monitor for example)"} |
cvar_t | vid_touchscreen_outlinealpha = {CF_CLIENT, "vid_touchscreen_outlinealpha", "0", "opacity of touchscreen area outlines"} |
cvar_t | vid_touchscreen_overlayalpha = {CF_CLIENT, "vid_touchscreen_overlayalpha", "0.25", "opacity of touchscreen area icons"} |
Definition at line 804 of file cl_screen.c.
References CF_CLIENT, cl_demo_mousegrab, Cmd_AddCommand(), Cvar_RegisterVariable(), Cvar_RegisterVirtual(), Cvar_SetQuick(), i, int(), net_graph, R_Envmap_f(), r_letterbox, r_speeds_graph, r_speeds_graph_filter, r_speeds_graph_height, r_speeds_graph_length, r_speeds_graph_maxdefault, r_speeds_graph_maxtimedelta, r_speeds_graph_seconds, r_speeds_graph_width, r_speeds_graph_x, r_speeds_graph_y, r_stereo_angle, r_stereo_horizontal, r_stereo_redblue, r_stereo_redcyan, r_stereo_redgreen, r_stereo_separation, r_stereo_sidebyside, r_stereo_vertical, SCR_CaptureVideo_Ogg_Init(), SCR_Centerprint_f(), scr_centertime, scr_conalpha, scr_conalpha2factor, scr_conalpha3factor, scr_conalphafactor, scr_conbrightness, scr_conforcewhiledisconnected, scr_conheight, scr_conscroll2_x, scr_conscroll2_y, scr_conscroll3_x, scr_conscroll3_y, scr_conscroll_x, scr_conscroll_y, scr_fov, SCR_InfoBar_f(), scr_infobar_height, scr_initialized, scr_loadingscreen_background, scr_loadingscreen_barcolor, scr_loadingscreen_barheight, scr_loadingscreen_count, scr_loadingscreen_firstforstartup, scr_loadingscreen_maxfps, scr_loadingscreen_picture, scr_loadingscreen_scale, scr_loadingscreen_scale_base, scr_loadingscreen_scale_limit, scr_printspeed, scr_refresh, scr_sbarscale, scr_screenshot_alpha, SCR_ScreenShot_f(), scr_screenshot_gammaboost, scr_screenshot_jpeg, scr_screenshot_jpeg_quality, scr_screenshot_name_in_mapdir, scr_screenshot_png, scr_screenshot_timestamp, scr_showbrand, scr_showpause, scr_showram, scr_showturtle, SCR_SizeDown_f(), SCR_SizeUp_f(), scr_stipple, scr_viewsize, Sys_CheckParm(), timedemo_screenshotframelist, vid_conheight, vid_conwidth, vid_conwidthauto, vid_pixelheight, vid_touchscreen_outlinealpha, and vid_touchscreen_overlayalpha.
Referenced by CL_Init().
Definition at line 797 of file cl_screen.c.
Referenced by CL_Shutdown().
Definition at line 2130 of file cl_screen.c.
References bound, ca_connected, CHECKGLERROR, cl, cl_minfps, cl_minfps_fade, cl_minfps_force, cl_minfps_qualityhysteresis, cl_minfps_qualitymax, cl_minfps_qualitymin, cl_minfps_qualitymultiply, cl_minfps_qualitystepmax, cl_punchangle_applied, r_refdef_view_t::clear, cls, r_refdef_view_t::colormask, con_initialized, Con_Print(), client_static_t::connect_trying, Cvar_SetValueQuick(), f, gamemode, GL_BACK, GL_BACK_LEFT, GL_BACK_RIGHT, GL_ColorMask(), GL_DepthMask(), GL_ScissorTest(), viddef_mode_t::height, host, identitymatrix, cvar_t::integer, IS_NEXUIZ_DERIVED, r_refdef_view_t::isoverlay, r_refdef_t::lastdrawscreentime, loadingscreenstack, M_PI, r_refdef_view_t::matrix, Matrix4x4_OriginFromMatrix(), max, min, viddef_t::mode, NULL, palette_rgb_pantscolormap, palette_rgb_pantsscoreboard, palette_rgb_shirtcolormap, palette_rgb_shirtscoreboard, r_refdef_view_t::quality, R_BufferData_NewFrame(), R_ClearScreen(), R_FrameData_NewFrame(), R_HDR_UpdateIrisAdaptation(), R_Mesh_SetRenderTargets(), r_refdef, R_SetViewport(), R_Stereo_Active(), r_stereo_redblue, r_stereo_redcyan, r_stereo_redgreen, r_stereo_side, R_Viewport_InitOrtho(), host_static_t::realtime, Sbar_ShowFPS_Update(), SCR_DrawScreen(), SCR_EndLoadingPlaque(), scr_initialized, scr_loading, scr_loadingscreen_maxfps, scr_refresh, SCR_SetUpToDrawConsole(), scr_stipple, SCR_UpdateVars(), client_static_t::signon, SIGNONS, sin(), client_static_t::state, viddef_mode_t::stereobuffer, Sys_DirtyTime(), client_state_t::time, client_static_t::timedemo, cvar_t::value, vid, vid_conheight, vid_conwidth, VID_Finish(), vid_hidden, r_refdef_t::view, and viddef_mode_t::width.
Referenced by CL_Frame(), CL_TimeRefresh_f(), Key_Console(), SCR_BeginLoadingPlaque(), SCR_PopLoadingScreen(), and SCR_PushLoadingScreen().
Definition at line 1534 of file cl_screen.c.
References r_refdef_t::fogcolor, GL_Clear(), GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_STENCIL_BUFFER_BIT, cvar_t::integer, r_fog_clear, r_refdef, R_UpdateFog(), scr_screenshot_alpha, viddef_t::stencil, Vector4Set, VectorCopy, and vid.
Referenced by CL_UpdateScreen(), R_RenderView(), and R_Water_ProcessPlanes().
|
static |
Definition at line 1291 of file cl_screen.c.
References envmapinfo_s::angles, ca_connected, CL_UpdateEntityShading(), r_refdef_view_t::clear, cls, cmd(), Cmd_Argc(), Cmd_Argv(), r_rendertarget_t::colortexture, Con_Print(), Con_Printf(), r_refdef_view_t::depth, r_rendertarget_t::depthtexture, dp_strlcpy, dpsnprintf(), r_refdef_t::envmap, envmapinfo, r_rendertarget_t::fbo, envmapinfo_s::flipdiagonaly, envmapinfo_s::flipx, envmapinfo_s::flipy, r_refdef_view_t::frustum_x, r_refdef_view_t::frustum_y, r_refdef_view_t::height, viddef_mode_t::height, r_refdef_view_t::ismain, r_refdef_view_t::isoverlay, r_refdef_view_t::matrix, Matrix4x4_CreateFromQuakeEntity(), MAX_QPATH, Mem_Alloc, Mem_Free, viddef_t::mode, name, r_refdef_view_t::origin, r_refdef_view_t::ortho_x, r_refdef_view_t::ortho_y, r_refdef_view_t::quality, R_Mesh_Finish(), R_Mesh_Start(), r_refdef, R_RenderTarget_Get(), R_RenderView(), R_UpdateVariables(), SCR_ScreenShot(), size, client_static_t::state, tempmempool, TEXTYPE_COLORBUFFER, TEXTYPE_DEPTHBUFFER24STENCIL8, TEXTYPE_UNUSED, r_refdef_view_t::useperspective, vid, r_refdef_t::view, r_refdef_view_t::width, viddef_mode_t::width, r_refdef_view_t::x, r_refdef_view_t::y, and r_refdef_view_t::z.
Referenced by CL_Screen_Init().
Definition at line 2077 of file cl_screen.c.
References cvar_t::integer, viddef_t::mode, R_Stereo_ColorMasking(), r_stereo_horizontal, r_stereo_sidebyside, r_stereo_vertical, viddef_mode_t::stereobuffer, and vid.
Referenced by CL_UpdateScreen(), R_Bloom_StartFrame(), R_MotionBlurView(), and R_RenderView().
Definition at line 2072 of file cl_screen.c.
References cvar_t::integer, r_stereo_redblue, r_stereo_redcyan, and r_stereo_redgreen.
Referenced by R_BlendView(), R_BlendView_IsTrivial(), and R_Stereo_Active().
Definition at line 1838 of file cl_screen.c.
References loadingscreenstack_t::absolute_loading_amount_min, CL_UpdateScreen(), cvar_t::integer, loadingscreenstack, loadingscreenstack_t::msg, NULL, SCR_DeferLoadingPlaque(), scr_loadingscreen_background, and SCR_SetLoadingScreenTexture().
Referenced by CL_EstablishConnection(), CL_ParseServerInfo(), Host_Init(), R_Modules_Restart_f(), and SV_SpawnServer().
void SCR_CenterPrint | ( | const char * | str | ) |
Definition at line 144 of file cl_screen.c.
References cl, Con_CenterPrint(), dp_strlcpy, scr_center_lines, scr_centerstring, scr_centertime, scr_centertime_off, scr_centertime_start, client_state_t::time, and cvar_t::value.
Referenced by CL_ParseServerMessage(), CL_VM_Parse_CenterPrint(), SCR_Centerprint_f(), and VM_centerprint().
|
static |
Definition at line 175 of file cl_screen.c.
References cmd(), Cmd_Argc(), Cmd_Argv(), dp_strlcat, dp_strlcpy, i, int(), MAX_INPUTLINE, SCR_CenterPrint(), and strlen().
Referenced by CL_Screen_Init().
Definition at line 271 of file cl_screen.c.
References cl, client_state_t::intermission, key_dest, key_game, client_state_t::oldtime, scr_center_lines, scr_centertime_off, SCR_DrawCenterString(), scr_erase_lines, and client_state_t::time.
Referenced by SCR_DrawScreen().
Definition at line 1819 of file cl_screen.c.
References cvar_t::integer, loadingscreenpic_number, scr_loadingscreen_count, and scr_loadingscreen_firstforstartup.
Referenced by SCR_DeferLoadingPlaque().
Definition at line 1918 of file cl_screen.c.
References loadingscreenstack, loadingscreenstack_t::prev, and SCR_PopLoadingScreen().
Referenced by CL_DisconnectEx().
Definition at line 1786 of file cl_screen.c.
References loadingscreentexture, NULL, and R_FreeTexture().
Referenced by SCR_EndLoadingPlaque(), and SCR_SetLoadingScreenTexture().
Definition at line 1859 of file cl_screen.c.
References SCR_ChooseLoadingPic(), and scr_loading.
Referenced by SCR_BeginLoadingPlaque(), and VID_Restart_f().
Definition at line 485 of file cl_screen.c.
References Draw_CachePic(), Draw_GetPicHeight(), Draw_GetPicWidth(), DrawQ_Pic(), cvar_t::integer, scr_showbrand, cvar_t::value, vid_conheight, vid_conwidth, x, and y.
Referenced by SCR_DrawScreen().
Definition at line 214 of file cl_screen.c.
References cl, color, DrawQ_String(), DrawQ_TextWidth(), FONT_CENTERPRINT, int(), cvar_t::integer, client_state_t::intermission, sb_showscores, scr_center_lines, scr_centerstring, scr_centertime, scr_centertime_start, scr_erase_center, scr_printspeed, strlen(), client_state_t::time, cvar_t::value, vid_conheight, vid_conwidth, width, x, and y.
Referenced by SCR_CheckDrawCenterString().
Definition at line 750 of file cl_screen.c.
References Con_DrawConsole(), con_vislines, cvar_t::integer, key_consoleactive, KEY_CONSOLEACTIVE_FORCED, min, scr_con_current, scr_con_margin_bottom, SCR_InfobarHeight(), scr_loading, scr_loadingscreen_barheight, and vid_conheight.
Referenced by SCR_DrawScreen().
Definition at line 597 of file cl_screen.c.
References cls, Curl_GetDownloadInfo(), dpsnprintf(), DrawQ_Fill(), DrawQ_String(), DrawQ_TextWidth(), FONT_INFOBAR, i, int(), cvar_t::integer, NULL, offset, scr_infobar_height, client_static_t::signon, SIGNONS, size, strlen(), cvar_t::value, vid_conheight, vid_conwidth, x, y, and Z_Free.
Referenced by SCR_DrawInfobar().
Definition at line 648 of file cl_screen.c.
References Con_DPrintf(), cvar_t::integer, offset, scr_con_margin_bottom, SCR_DrawCurlDownload(), SCR_DrawInfobarString(), SCR_DrawQWDownload(), scr_infobartime_off, scr_loading, and scr_loadingscreen_barheight.
Referenced by SCR_DrawScreen().
Definition at line 578 of file cl_screen.c.
References cls, DrawQ_Fill(), DrawQ_String(), DrawQ_TextWidth(), FONT_INFOBAR, int(), cvar_t::integer, NULL, offset, scr_infobar_height, scr_infobarstring, client_static_t::signon, SIGNONS, size, strlen(), cvar_t::value, vid_conheight, vid_conwidth, x, and y.
Referenced by SCR_DrawInfobar().
Definition at line 1992 of file cl_screen.c.
References CACHEPICFLAG_NOTPERSISTENT, Draw_CachePic_Flags(), Draw_GetPicHeight(), Draw_GetPicTexture(), Draw_GetPicWidth(), f, float, GL_BlendFunc(), GL_Color(), GL_DepthRange(), GL_DepthTest(), GL_ONE_MINUS_SRC_ALPHA, GL_PolygonOffset(), GL_SRC_ALPHA, viddef_mode_t::height, cvar_t::integer, loadingscreenpic_number, loadingscreentexture, loadingscreentexture_texcoord2f, loadingscreentexture_vertex3f, max, min, viddef_t::mode, NULL, polygonelement3i, polygonelement3s, R_Mesh_Draw(), R_Mesh_PrepareVertices_Generic_Arrays(), R_SetupShader_Generic(), SCR_DrawLoadingStack(), scr_loadingscreen_picture, scr_loadingscreen_scale, scr_loadingscreen_scale_base, scr_loadingscreen_scale_limit, cvar_t::string, sw, va(), cvar_t::value, vid, vid_conheight, vid_conwidth, w, viddef_mode_t::width, x, and y.
Referenced by SCR_DrawScreen().
Definition at line 1958 of file cl_screen.c.
References loadingscreenstack_t::absolute_loading_amount_min, GL_BlendFunc(), GL_DepthRange(), GL_DepthTest(), GL_ONE, GL_PolygonOffset(), GL_SRC_ALPHA, cvar_t::integer, loadingscreenstack, NULL, polygonelement3i, polygonelement3s, R_Mesh_Draw(), R_Mesh_PrepareVertices_Generic_Arrays(), R_SetupShader_Generic_NoTexture(), SCR_DrawLoadingStack_r(), scr_loadingscreen_barcolor, scr_loadingscreen_barheight, cvar_t::string, cvar_t::value, vid_conheight, and vid_conwidth.
Referenced by SCR_DrawLoadingScreen().
|
static |
Definition at line 1924 of file cl_screen.c.
References DrawQ_String(), DrawQ_TextWidth(), FONT_INFOBAR, cvar_t::integer, loadingscreenstack_t::msg, NULL, loadingscreenstack_t::prev, SCR_DrawLoadingStack_r(), size, strlen(), vid_conwidth, x, and y.
Referenced by SCR_DrawLoadingStack(), and SCR_DrawLoadingStack_r().
Definition at line 446 of file cl_screen.c.
References ca_connected, cl, cls, client_static_t::demoplayback, Draw_CachePic(), DrawQ_Pic(), host, client_state_t::last_received_message, host_static_t::realtime, and client_static_t::state.
Referenced by SCR_DrawScreen().
Definition at line 364 of file cl_screen.c.
References server_t::active, ca_connected, cl_rate, server_static_t::clients, cls, i, netconn_t::incoming_netgraph, netconn_t::incoming_packetcounter, index, cvar_t::integer, max, server_static_t::maxclients, net_graph, client_static_t::netcon, netconn_t::outgoing_netgraph, netconn_t::outgoing_packetcounter, sbar_info_pos, SCR_DrawNetGraph_DrawGraph(), client_static_t::state, sv, svs, va(), vid_conheight, and vid_conwidth.
Referenced by SCR_DrawScreen().
|
static |
Definition at line 291 of file cl_screen.c.
References a, netgraphitem_t::ackbytes, b, bound, netgraphitem_t::cleartime, dpsnprintf(), DrawQ_Fill(), DrawQ_Line(), DrawQ_String(), FONT_DEFAULT, g, host, M_PI, NETGRAPH_CHOKEDPACKET, NETGRAPH_LOSTPACKET, NETGRAPH_PACKETS, NULL, host_static_t::realtime, netgraphitem_t::reliablebytes, netgraphitem_t::time, time, netgraphitem_t::unreliablebytes, x, and y.
Referenced by SCR_DrawNetGraph().
Definition at line 463 of file cl_screen.c.
References ca_connected, cl, cls, Draw_CachePic(), Draw_GetPicHeight(), Draw_GetPicWidth(), DrawQ_Pic(), cvar_t::integer, client_state_t::paused, scr_showpause, client_static_t::state, vid_conheight, and vid_conwidth.
Referenced by SCR_DrawScreen().
Definition at line 541 of file cl_screen.c.
References cls, dpsnprintf(), DrawQ_Fill(), DrawQ_String(), DrawQ_TextWidth(), FONT_INFOBAR, host, int(), cvar_t::integer, NULL, offset, client_static_t::protocol, PROTOCOL_QUAKEWORLD, client_static_t::qw_downloadmemorycursize, client_static_t::qw_downloadmemorymaxsize, client_static_t::qw_downloadname, client_static_t::qw_downloadpercent, client_static_t::qw_downloadspeedcount, client_static_t::qw_downloadspeedrate, client_static_t::qw_downloadspeedtime, host_static_t::realtime, scr_infobar_height, client_static_t::signon, SIGNONS, size, strlen(), cvar_t::value, vid_conheight, vid_conwidth, x, and y.
Referenced by SCR_DrawInfobar().
Definition at line 1576 of file cl_screen.c.
References loadingscreenstack_t::absolute_loading_amount_min, bound, cl, cl_connect_status, CL_DrawVideo(), CL_MeshEntities_Scene_FinalizeRenderEntity(), CL_UpdateEntityShading(), CL_VM_DrawHud(), CL_VM_UpdateView(), cls, CLVM_prog, Con_DrawNotify(), r_refdef_view_t::cullface_back, r_refdef_view_t::cullface_front, client_static_t::demoname, r_refdef_view_t::depth, dp_strlcpy, dpsnprintf(), Draw_Frame(), DrawQ_Finish(), DrawQ_Start(), float, r_refdef_view_t::frustum_x, r_refdef_view_t::frustum_y, r_refdef_t::frustumscale_x, r_refdef_t::frustumscale_y, GL_BACK, GL_FRONT, r_refdef_view_t::height, viddef_mode_t::height, host, int(), cvar_t::integer, client_state_t::islocalgame, r_refdef_view_t::ismain, key_consoleactive, KEY_CONSOLEACTIVE_FORCED, key_dest, key_game, key_message, loadingscreenstack, M_PI, max, MAX_QPATH, Mem_Alloc, Mem_Free, min, viddef_t::mode, MR_Draw, loadingscreenstack_t::msg, NULL, client_state_t::oldtime, r_refdef_view_t::ortho_x, r_refdef_view_t::ortho_y, host_static_t::paused, PRVM_CSQC_SIMPLE, r_letterbox, R_Mesh_Finish(), R_Mesh_Start(), r_refdef, R_RenderTarget_FreeUnused(), R_RenderView(), R_Shadow_EditLights_DrawSelectedLightProperties(), r_stereo_horizontal, r_stereo_side, r_stereo_sidebyside, r_stereo_vertical, R_TimeReport(), r_timereport_active, R_TimeReport_BeginFrame(), R_TimeReport_EndFrame(), R_UpdateVariables(), Sbar_Draw(), Sbar_ShowFPS(), SCR_CheckDrawCenterString(), scr_con_current, SCR_DrawBrand(), SCR_DrawConsole(), SCR_DrawInfobar(), SCR_DrawLoadingScreen(), SCR_DrawNet(), SCR_DrawNetGraph(), SCR_DrawPause(), SCR_DrawTouchscreenOverlay(), SCR_DrawTurtle(), scr_fov, scr_loading, SCR_ScreenShot(), scr_viewsize, r_refdef_view_t::showdebug, SHOWLMP_drawall(), client_static_t::signon, SIGNONS, size, cvar_t::string, client_static_t::td_frames, tempmempool, client_state_t::time, client_static_t::timedemo, timedemo_screenshotframelist, r_refdef_view_t::useperspective, cvar_t::value, vid, vid_pixelheight, r_refdef_t::view, client_state_t::viewzoom, r_refdef_view_t::width, viddef_mode_t::width, r_refdef_view_t::x, r_refdef_view_t::y, and r_refdef_view_t::z.
Referenced by CL_UpdateScreen().
Definition at line 1507 of file cl_screen.c.
References a, CACHEPICFLAG_FAILONMISSING, Draw_CachePic_Flags(), Draw_IsPicLoaded(), DrawQ_Fill(), DrawQ_Pic(), DrawQ_String(), DrawQ_TextWidth(), FONT_CHAT, i, NULL, scr_numtouchscreenareas, scr_touchscreenareas, cvar_t::value, vid_touchscreen_outlinealpha, and vid_touchscreen_overlayalpha.
Referenced by SCR_DrawScreen().
Definition at line 418 of file cl_screen.c.
References ca_connected, cl, cls, count, Draw_CachePic(), DrawQ_Pic(), cvar_t::integer, client_state_t::realframetime, scr_showturtle, and client_static_t::state.
Referenced by SCR_DrawScreen().
Definition at line 1865 of file cl_screen.c.
References SCR_ClearLoadingScreenTexture(), and scr_loading.
Referenced by CL_UpdateScreen().
|
static |
Definition at line 692 of file cl_screen.c.
References cmd(), Cmd_Argc(), Cmd_Argv(), Con_Printf(), dp_strlcpy, scr_infobarstring, and scr_infobartime_off.
Referenced by CL_Screen_Init().
Definition at line 661 of file cl_screen.c.
References cl, cls, Curl_GetDownloadInfo(), offset, client_state_t::oldtime, client_static_t::qw_downloadname, scr_infobar_height, scr_infobartime_off, client_state_t::time, cvar_t::value, and Z_Free.
Referenced by SCR_DrawConsole().
Definition at line 1899 of file cl_screen.c.
References loadingscreenstack_t::absolute_loading_amount_len, loadingscreenstack_t::absolute_loading_amount_min, CL_UpdateScreen(), Con_DPrintf(), loadingscreenstack, loadingscreenstack_t::prev, scr_loading, and Z_Free.
Referenced by CL_BeginDownloads(), Mod_LoadModel(), Mod_Reload(), mod_start(), S_LoadSound(), and SCR_ClearLoadingScreen().
Definition at line 1873 of file cl_screen.c.
References loadingscreenstack_t::absolute_loading_amount_len, loadingscreenstack_t::absolute_loading_amount_min, CL_UpdateScreen(), dp_strlcpy, loadingscreenstack, loadingscreenstack_t::msg, loadingscreenstack_t::prev, loadingscreenstack_t::relative_completion, scr_loading, and Z_Malloc.
Referenced by CL_BeginDownloads(), Mod_LoadModel(), Mod_Reload(), mod_start(), and S_LoadSound().
qbool SCR_ScreenShot | ( | char * | filename, |
unsigned char * | buffer1, | ||
unsigned char * | buffer2, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
qbool | flipx, | ||
qbool | flipy, | ||
qbool | flipdiagonal, | ||
qbool | jpeg, | ||
qbool | png, | ||
qbool | gammacorrect, | ||
qbool | keep_alpha ) |
Definition at line 1443 of file cl_screen.c.
References BuildGammaTable16(), GL_ReadPixelsBGRA(), height, i, Image_CopyMux(), Image_WriteTGABGR_preflipped(), Image_WriteTGABGRA(), indices, JPEG_SaveImage_preflipped(), PNG_SaveImage_preflipped(), pow(), ret, scr_screenshot_gammaboost, cvar_t::value, width, x, and y.
Referenced by R_Envmap_f(), SCR_DrawScreen(), and SCR_ScreenShot_f().
|
static |
Definition at line 919 of file cl_screen.c.
References cl, cmd(), Cmd_Argc(), Cmd_Argv(), CON_ERROR, Con_Print(), Con_Printf(), dp_strlcpy, dpsnprintf(), FS_FileExtension(), fs_gamedir, FS_SysFileExists(), viddef_mode_t::height, cvar_t::integer, MAX_QPATH, Mem_Alloc, Mem_Free, viddef_t::mode, SCR_ScreenShot(), scr_screenshot_alpha, scr_screenshot_jpeg, scr_screenshot_name, scr_screenshot_name_in_mapdir, scr_screenshot_png, scr_screenshot_timestamp, strlen(), Sys_TimeString(), tempmempool, va(), vid, viddef_mode_t::width, and client_state_t::worldbasename.
Referenced by CL_Screen_Init().
Definition at line 1794 of file cl_screen.c.
References viddef_mode_t::height, cvar_t::integer, loadingscreentexture, loadingscreentexture_texcoord2f, loadingscreentexture_vertex3f, viddef_t::mode, NULL, R_LoadTexture2D(), r_main_texturepool, R_Mesh_CopyToTexture(), SCR_ClearLoadingScreenTexture(), TEXF_CLAMP, TEXF_FORCENEAREST, TEXF_RENDERTARGET, TEXTYPE_COLORBUFFER, vid, vid_conheight, vid_conwidth, w, and viddef_mode_t::width.
Referenced by SCR_BeginLoadingPlaque().
Definition at line 711 of file cl_screen.c.
References server_t::active, ca_disconnected, cls, Con_CheckResize(), cvar_t::integer, key_consoleactive, KEY_CONSOLEACTIVE_FORCED, KEY_CONSOLEACTIVE_USER, key_dest, key_game, MR_ToggleMenu, scr_con_current, scr_conforcewhiledisconnected, scr_conheight, client_static_t::signon, SIGNONS, client_static_t::state, sv, cvar_t::value, and vid_conheight.
Referenced by CL_UpdateScreen().
|
static |
Definition at line 789 of file cl_screen.c.
References Cvar_SetValueQuick(), scr_viewsize, and cvar_t::value.
Referenced by CL_Screen_Init().
|
static |
Definition at line 776 of file cl_screen.c.
References Cvar_SetValueQuick(), scr_viewsize, and cvar_t::value.
Referenced by CL_Screen_Init().
Definition at line 2082 of file cl_screen.c.
References bound, cl, Cvar_SetValueQuick(), floor(), viddef_mode_t::height, cvar_t::integer, client_state_t::intermission, viddef_t::mode, sb_lines, scr_fov, scr_sbarscale, scr_viewsize, cvar_t::value, vid, vid_conheight, vid_conwidth, vid_conwidthauto, vid_pixelheight, and viddef_mode_t::width.
Referenced by CL_UpdateScreen().
Definition at line 1368 of file cl_screen.c.
References cl, cl_message, cl_readstring, i, showlmp_t::isactive, showlmp_t::label, MSG_ReadString(), client_state_t::num_showlmps, and client_state_t::showlmps.
Referenced by CL_ParseServerMessage().
Definition at line 1381 of file cl_screen.c.
References cl, cl_message, cl_readstring, cls, dp_strlcpy, GAME_NEHAHRA, gamemode, showlmp_t::isactive, showlmp_t::label, client_static_t::levelmempool, max, client_state_t::max_showlmps, Mem_Alloc, Mem_Free, MSG_ReadByte, MSG_ReadShort, MSG_ReadString(), client_state_t::num_showlmps, showlmp_t::pic, client_state_t::showlmps, showlmp_t::x, x, showlmp_t::y, and y.
Referenced by CL_ParseServerMessage().
Definition at line 1425 of file cl_screen.c.
References CACHEPICFLAG_NOTPERSISTENT, cl, Draw_CachePic_Flags(), DrawQ_Pic(), i, showlmp_t::isactive, client_state_t::num_showlmps, showlmp_t::pic, client_state_t::showlmps, showlmp_t::x, and showlmp_t::y.
Referenced by SCR_DrawScreen().
char cl_connect_status[MAX_QPATH] |
User-friendly connection status for the menu and/or loading screen, colours and
not supported.
Definition at line 1573 of file cl_screen.c.
Referenced by CL_DisconnectEx(), CL_EstablishConnection(), CL_SetSignonStage_WithMsg(), M_LanConfig_Draw(), M_Menu_LanConfig_f(), M_Menu_ModList_f(), M_Menu_ServerList_f(), M_ModList_Draw(), M_ServerList_Draw(), NetConn_ClientFrame(), NetConn_ClientParsePacket(), NetConn_ConnectionEstablished(), and SCR_DrawScreen().
cvar_t cl_demo_mousegrab = {CF_CLIENT, "cl_demo_mousegrab", "0", "Allows reading the mouse input while playing demos. Useful for camera mods developed in csqc. (0: never, 1: always)"} |
Definition at line 92 of file cl_screen.c.
Referenced by CL_Screen_Init(), and Sys_SDL_HandleEvents().
|
extern |
Definition at line 100 of file cl_main.c.
Referenced by CL_Init(), and CL_UpdateScreen().
|
extern |
Definition at line 101 of file cl_main.c.
Referenced by CL_Init(), and CL_UpdateScreen().
|
extern |
|
extern |
Definition at line 105 of file cl_main.c.
Referenced by CL_Init(), and CL_UpdateScreen().
|
extern |
Definition at line 102 of file cl_main.c.
Referenced by CL_Init(), and CL_UpdateScreen().
|
extern |
Definition at line 103 of file cl_main.c.
Referenced by CL_Init(), and CL_UpdateScreen().
|
extern |
Definition at line 104 of file cl_main.c.
Referenced by CL_Init(), and CL_UpdateScreen().
|
extern |
Definition at line 106 of file cl_main.c.
Referenced by CL_Init(), and CL_UpdateScreen().
|
extern |
Definition at line 149 of file view.c.
Referenced by CL_UpdateScreen(), and V_CalcRefdefUsing().
|
extern |
Definition at line 95 of file console.c.
Referenced by SCR_DrawConsole().
struct envmapinfo_s envmapinfo[12] |
Referenced by R_Envmap_f().
Definition at line 100 of file cl_screen.c.
|
static |
Definition at line 1570 of file cl_screen.c.
Referenced by SCR_ChooseLoadingPic(), and SCR_DrawLoadingScreen().
|
static |
Definition at line 1566 of file cl_screen.c.
Referenced by CL_UpdateScreen(), SCR_BeginLoadingPlaque(), SCR_ClearLoadingScreen(), SCR_DrawLoadingStack(), SCR_DrawScreen(), SCR_PopLoadingScreen(), and SCR_PushLoadingScreen().
rtexture_t* loadingscreentexture = NULL |
Definition at line 1567 of file cl_screen.c.
Referenced by gl_main_shutdown(), gl_main_start(), SCR_ClearLoadingScreenTexture(), SCR_DrawLoadingScreen(), and SCR_SetLoadingScreenTexture().
|
static |
Definition at line 1569 of file cl_screen.c.
Referenced by SCR_DrawLoadingScreen(), and SCR_SetLoadingScreenTexture().
|
static |
Definition at line 1568 of file cl_screen.c.
Referenced by SCR_DrawLoadingScreen(), and SCR_SetLoadingScreenTexture().
cvar_t net_graph = {CF_CLIENT | CF_ARCHIVE, "net_graph", "0", "shows a graph of packet sizes and other information, 0 = off, 1 = show client netgraph, 2 = show client and server netgraphs (when hosting a server)"} |
Definition at line 91 of file cl_screen.c.
Referenced by CL_Screen_Init(), and SCR_DrawNetGraph().
|
extern |
cvar_t r_letterbox = {CF_CLIENT, "r_letterbox", "0", "reduces vertical height of view to simulate a letterboxed movie effect (can be used by mods for cutscenes)"} |
Definition at line 79 of file cl_screen.c.
Referenced by CL_Screen_Init(), Sbar_Draw(), and SCR_DrawScreen().
|
extern |
Definition at line 43 of file gl_rmain.c.
Referenced by gl_main_shutdown(), gl_main_start(), R_Bloom_StartFrame(), R_BuildBlankTextures(), R_BuildFogHeightTexture(), R_BuildFogTexture(), R_BuildNormalizationCube(), R_BuildNoTexture(), R_BuildWhiteCube(), R_LoadCubemap(), R_RenderTarget_Get(), R_SkinFrame_GenerateTexturesFromQPixels(), R_SkinFrame_LoadExternal_SkinFrame(), R_SkinFrame_LoadInternal8bit(), R_SkinFrame_LoadInternalBGRA(), R_UpdateVariables(), and SCR_SetLoadingScreenTexture().
cvar_t r_stereo_angle = {CF_CLIENT, "r_stereo_angle", "0", "separation angle of eyes (makes the views look different directions, as an example, 90 gives a 90 degree separation where the views are 45 degrees left and 45 degrees right)"} |
Definition at line 87 of file cl_screen.c.
Referenced by CL_Screen_Init(), and R_RenderView().
cvar_t r_stereo_horizontal = {CF_CLIENT, "r_stereo_horizontal", "0", "aspect skewed side by side view for special decoder/display hardware"} |
Definition at line 82 of file cl_screen.c.
Referenced by CL_Screen_Init(), R_Stereo_Active(), and SCR_DrawScreen().
cvar_t r_stereo_redblue = {CF_CLIENT, "r_stereo_redblue", "0", "red/blue anaglyph stereo glasses (note: most of these glasses are actually red/cyan, try that one too)"} |
Definition at line 84 of file cl_screen.c.
Referenced by CL_Screen_Init(), CL_UpdateScreen(), and R_Stereo_ColorMasking().
cvar_t r_stereo_redcyan = {CF_CLIENT, "r_stereo_redcyan", "0", "red/cyan anaglyph stereo glasses, the kind given away at drive-in movies like Creature From The Black Lagoon In 3D"} |
Definition at line 85 of file cl_screen.c.
Referenced by CL_Screen_Init(), CL_UpdateScreen(), and R_Stereo_ColorMasking().
cvar_t r_stereo_redgreen = {CF_CLIENT, "r_stereo_redgreen", "0", "red/green anaglyph stereo glasses (for those who don't mind yellow)"} |
Definition at line 86 of file cl_screen.c.
Referenced by CL_Screen_Init(), CL_UpdateScreen(), and R_Stereo_ColorMasking().
cvar_t r_stereo_separation = {CF_CLIENT, "r_stereo_separation", "4", "separation distance of eyes in the world (negative values are only useful for cross-eyed viewing)"} |
Definition at line 80 of file cl_screen.c.
Referenced by CL_Screen_Init(), and R_RenderView().
int r_stereo_side |
Definition at line 1553 of file cl_screen.c.
Referenced by CL_UpdateScreen(), R_RenderView(), and SCR_DrawScreen().
cvar_t r_stereo_sidebyside = {CF_CLIENT, "r_stereo_sidebyside", "0", "side by side views for those who can't afford glasses but can afford eye strain (note: use a negative r_stereo_separation if you want cross-eyed viewing)"} |
Definition at line 81 of file cl_screen.c.
Referenced by CL_Screen_Init(), R_Stereo_Active(), and SCR_DrawScreen().
cvar_t r_stereo_vertical = {CF_CLIENT, "r_stereo_vertical", "0", "aspect skewed top and bottom view for special decoder/display hardware"} |
Definition at line 83 of file cl_screen.c.
Referenced by CL_Screen_Init(), R_Stereo_Active(), and SCR_DrawScreen().
|
extern |
Definition at line 108 of file sbar.c.
Referenced by Sbar_Init(), Sbar_ShowFPS(), and SCR_DrawNetGraph().
int scr_center_lines |
Definition at line 130 of file cl_screen.c.
Referenced by SCR_CenterPrint(), SCR_CheckDrawCenterString(), and SCR_DrawCenterString().
char scr_centerstring[MAX_INPUTLINE] |
Definition at line 127 of file cl_screen.c.
Referenced by SCR_CenterPrint(), and SCR_DrawCenterString().
cvar_t scr_centertime = {CF_CLIENT, "scr_centertime","2", "how long centerprint messages show"} |
Definition at line 37 of file cl_screen.c.
Referenced by CL_Screen_Init(), SCR_CenterPrint(), and SCR_DrawCenterString().
float scr_centertime_off |
Definition at line 129 of file cl_screen.c.
Referenced by SCR_CenterPrint(), SCR_CheckDrawCenterString(), and SV_SpawnServer().
float scr_centertime_start |
Definition at line 128 of file cl_screen.c.
Referenced by SCR_CenterPrint(), and SCR_DrawCenterString().
unsigned int scr_con_current |
Definition at line 106 of file cl_screen.c.
Referenced by CL_TimeDemo_f(), SCR_DrawConsole(), SCR_DrawScreen(), and SCR_SetUpToDrawConsole().
|
static |
Definition at line 107 of file cl_screen.c.
Referenced by SCR_DrawConsole(), and SCR_DrawInfobar().
cvar_t scr_conalpha = {CF_CLIENT | CF_ARCHIVE, "scr_conalpha", "0.9", "opacity of console background gfx/conback (when console isn't forced fullscreen)"} |
Definition at line 21 of file cl_screen.c.
Referenced by CL_Screen_Init(), and Con_DrawConsole().
cvar_t scr_conalpha2factor = {CF_CLIENT | CF_ARCHIVE, "scr_conalpha2factor", "0", "opacity of console background gfx/conback2 relative to scr_conalpha; when 0, gfx/conback2 is not drawn"} |
Definition at line 23 of file cl_screen.c.
Referenced by CL_Screen_Init(), and Con_DrawConsole().
cvar_t scr_conalpha3factor = {CF_CLIENT | CF_ARCHIVE, "scr_conalpha3factor", "0", "opacity of console background gfx/conback3 relative to scr_conalpha; when 0, gfx/conback3 is not drawn"} |
Definition at line 24 of file cl_screen.c.
Referenced by CL_Screen_Init(), and Con_DrawConsole().
cvar_t scr_conalphafactor = {CF_CLIENT | CF_ARCHIVE, "scr_conalphafactor", "1", "opacity of console background gfx/conback relative to scr_conalpha; when 0, gfx/conback is not drawn"} |
Definition at line 22 of file cl_screen.c.
Referenced by CL_Screen_Init(), and Con_DrawConsole().
cvar_t scr_conbrightness = {CF_CLIENT | CF_ARCHIVE, "scr_conbrightness", "1", "brightness of console background (0 = black, 1 = image)"} |
Definition at line 25 of file cl_screen.c.
Referenced by CL_Screen_Init(), and Con_DrawConsole().
cvar_t scr_conforcewhiledisconnected = {CF_CLIENT, "scr_conforcewhiledisconnected", "1", "1 forces fullscreen console while disconnected, 2 also forces it when the listen server has started but the client is still loading"} |
Definition at line 26 of file cl_screen.c.
Referenced by CL_Screen_Init(), and SCR_SetUpToDrawConsole().
cvar_t scr_conheight = {CF_CLIENT | CF_ARCHIVE, "scr_conheight", "0.5", "fraction of screen height occupied by console (reduced as necessary for visibility of loading progress and infobar)"} |
Definition at line 27 of file cl_screen.c.
Referenced by CL_Screen_Init(), and SCR_SetUpToDrawConsole().
cvar_t scr_conscroll2_x = {CF_CLIENT | CF_ARCHIVE, "scr_conscroll2_x", "0", "scroll speed of gfx/conback2 in x direction"} |
cvar_t scr_conscroll2_y = {CF_CLIENT | CF_ARCHIVE, "scr_conscroll2_y", "0", "scroll speed of gfx/conback2 in y direction"} |
cvar_t scr_conscroll3_x = {CF_CLIENT | CF_ARCHIVE, "scr_conscroll3_x", "0", "scroll speed of gfx/conback3 in x direction"} |
cvar_t scr_conscroll3_y = {CF_CLIENT | CF_ARCHIVE, "scr_conscroll3_y", "0", "scroll speed of gfx/conback3 in y direction"} |
cvar_t scr_conscroll_x = {CF_CLIENT | CF_ARCHIVE, "scr_conscroll_x", "0", "scroll speed of gfx/conback in x direction"} |
cvar_t scr_conscroll_y = {CF_CLIENT | CF_ARCHIVE, "scr_conscroll_y", "0", "scroll speed of gfx/conback in y direction"} |
int scr_erase_center |
Definition at line 132 of file cl_screen.c.
Referenced by SCR_DrawCenterString().
int scr_erase_lines |
Definition at line 131 of file cl_screen.c.
Referenced by SCR_CheckDrawCenterString().
cvar_t scr_fov = {CF_CLIENT | CF_ARCHIVE, "fov","90", "field of vision, 1-170 degrees, default 90, some players use 110-130"} |
Definition at line 20 of file cl_screen.c.
Referenced by CL_Screen_Init(), M_Menu_Options_AdjustSliders(), M_Options_Draw(), SCR_DrawScreen(), and SCR_UpdateVars().
cvar_t scr_infobar_height = {CF_CLIENT, "scr_infobar_height", "8", "the height of the infobar items"} |
Definition at line 53 of file cl_screen.c.
Referenced by CL_Screen_Init(), SCR_DrawCurlDownload(), SCR_DrawInfobarString(), SCR_DrawQWDownload(), and SCR_InfobarHeight().
char scr_infobarstring[MAX_INPUTLINE] |
Definition at line 133 of file cl_screen.c.
Referenced by SCR_DrawInfobarString(), and SCR_InfoBar_f().
float scr_infobartime_off |
Definition at line 134 of file cl_screen.c.
Referenced by SCR_DrawInfobar(), SCR_InfoBar_f(), and SCR_InfobarHeight().
qbool scr_initialized |
Definition at line 102 of file cl_screen.c.
Referenced by CL_Screen_Init(), and CL_UpdateScreen().
Definition at line 104 of file cl_screen.c.
Referenced by CL_UpdateScreen(), SCR_DeferLoadingPlaque(), SCR_DrawConsole(), SCR_DrawInfobar(), SCR_DrawScreen(), SCR_EndLoadingPlaque(), SCR_PopLoadingScreen(), SCR_PushLoadingScreen(), and Sys_SDL_HandleEvents().
cvar_t scr_loadingscreen_background = {CF_CLIENT, "scr_loadingscreen_background","0", "show the last visible background during loading screen (costs one screenful of video memory)"} |
Definition at line 43 of file cl_screen.c.
Referenced by CL_Screen_Init(), and SCR_BeginLoadingPlaque().
cvar_t scr_loadingscreen_barcolor = {CF_CLIENT, "scr_loadingscreen_barcolor", "0 0 1", "rgb color of loadingscreen progress bar"} |
Definition at line 50 of file cl_screen.c.
Referenced by CL_Screen_Init(), and SCR_DrawLoadingStack().
cvar_t scr_loadingscreen_barheight = {CF_CLIENT, "scr_loadingscreen_barheight", "8", "the height of the loadingscreen progress bar"} |
Definition at line 51 of file cl_screen.c.
Referenced by CL_Screen_Init(), SCR_DrawConsole(), SCR_DrawInfobar(), and SCR_DrawLoadingStack().
cvar_t scr_loadingscreen_count = {CF_CLIENT, "scr_loadingscreen_count","1", "number of loading screen files to use randomly (named loading.tga, loading2.tga, loading3.tga, ...)"} |
Definition at line 48 of file cl_screen.c.
Referenced by CL_Screen_Init(), and SCR_ChooseLoadingPic().
cvar_t scr_loadingscreen_firstforstartup = {CF_CLIENT, "scr_loadingscreen_firstforstartup","0", "remove loading.tga from random scr_loadingscreen_count selection and only display it on client startup, 0 = normal, 1 = firstforstartup"} |
Definition at line 49 of file cl_screen.c.
Referenced by CL_Screen_Init(), and SCR_ChooseLoadingPic().
cvar_t scr_loadingscreen_maxfps = {CF_CLIENT, "scr_loadingscreen_maxfps", "20", "maximum FPS for loading screen so it will not update very often (this reduces loading time with lots of models)"} |
Definition at line 52 of file cl_screen.c.
Referenced by CL_Screen_Init(), and CL_UpdateScreen().
cvar_t scr_loadingscreen_picture = {CF_CLIENT, "scr_loadingscreen_picture", "gfx/loading", "picture shown during loading"} |
Definition at line 47 of file cl_screen.c.
Referenced by CL_Screen_Init(), and SCR_DrawLoadingScreen().
cvar_t scr_loadingscreen_scale = {CF_CLIENT, "scr_loadingscreen_scale","1", "scale factor of the background"} |
Definition at line 44 of file cl_screen.c.
Referenced by CL_Screen_Init(), and SCR_DrawLoadingScreen().
cvar_t scr_loadingscreen_scale_base = {CF_CLIENT, "scr_loadingscreen_scale_base","0", "0 = console pixels, 1 = video pixels"} |
Definition at line 45 of file cl_screen.c.
Referenced by CL_Screen_Init(), and SCR_DrawLoadingScreen().
cvar_t scr_loadingscreen_scale_limit = {CF_CLIENT, "scr_loadingscreen_scale_limit","0", "0 = no limit, 1 = until first edge hits screen edge, 2 = until last edge hits screen edge, 3 = until width hits screen width, 4 = until height hits screen height"} |
Definition at line 46 of file cl_screen.c.
Referenced by CL_Screen_Init(), and SCR_DrawLoadingScreen().
int scr_numtouchscreenareas |
Definition at line 1504 of file cl_screen.c.
Referenced by IN_Move(), SCR_DrawTouchscreenOverlay(), VID_TouchscreenArea(), and VID_TouchscreenCursor().
cvar_t scr_printspeed = {CF_CLIENT, "scr_printspeed","0", "speed of intermission printing (episode end texts), a value of 0 disables the slow printing"} |
Definition at line 42 of file cl_screen.c.
Referenced by CL_Screen_Init(), and SCR_DrawCenterString().
cvar_t scr_refresh = {CF_CLIENT, "scr_refresh", "1", "allows you to completely shut off rendering for benchmarking purposes"} |
Definition at line 89 of file cl_screen.c.
Referenced by CL_Screen_Init(), and CL_UpdateScreen().
cvar_t scr_sbarscale = {CF_CLIENT | CF_READONLY, "scr_sbarscale", "1", "current vid_height/vid_conheight, for compatibility with csprogs that read this cvar (found in Fitzquake-derived engines and FTEQW; despite the name it's not specific to the status bar)"} |
Definition at line 54 of file cl_screen.c.
Referenced by CL_Screen_Init(), and SCR_UpdateVars().
cvar_t scr_screenshot_alpha = {CF_CLIENT, "scr_screenshot_alpha","0", "try to write an alpha channel to screenshots (debugging feature)"} |
Definition at line 63 of file cl_screen.c.
Referenced by CL_Screen_Init(), R_ClearScreen(), and SCR_ScreenShot_f().
cvar_t scr_screenshot_gammaboost = {CF_CLIENT | CF_ARCHIVE, "scr_screenshot_gammaboost","1", "gamma correction on saved screenshots and videos, 1.0 saves unmodified images"} |
Definition at line 62 of file cl_screen.c.
Referenced by CL_Screen_Init(), and SCR_ScreenShot().
cvar_t scr_screenshot_jpeg = {CF_CLIENT | CF_ARCHIVE, "scr_screenshot_jpeg","1", "save jpeg instead of targa or PNG"} |
Definition at line 59 of file cl_screen.c.
Referenced by CL_Screen_Init(), r_textures_start(), and SCR_ScreenShot_f().
cvar_t scr_screenshot_jpeg_quality = {CF_CLIENT | CF_ARCHIVE, "scr_screenshot_jpeg_quality","0.9", "image quality of saved jpeg"} |
Definition at line 60 of file cl_screen.c.
Referenced by CL_Screen_Init(), and JPEG_SaveImage_preflipped().
cvar_t scr_screenshot_name_in_mapdir = {CF_CLIENT | CF_ARCHIVE, "scr_screenshot_name_in_mapdir", "0", "if set to 1, screenshots are placed in a subdirectory named like the map they are from"} |
Definition at line 90 of file cl_screen.c.
Referenced by CL_Screen_Init(), and SCR_ScreenShot_f().
cvar_t scr_screenshot_png = {CF_CLIENT | CF_ARCHIVE, "scr_screenshot_png","0", "save png instead of targa"} |
Definition at line 61 of file cl_screen.c.
Referenced by CL_Screen_Init(), r_textures_start(), and SCR_ScreenShot_f().
cvar_t scr_screenshot_timestamp = {CF_CLIENT | CF_ARCHIVE, "scr_screenshot_timestamp", "1", "use a timestamp based number of the type YYYYMMDDHHMMSSsss instead of sequential numbering"} |
Definition at line 64 of file cl_screen.c.
Referenced by CL_Screen_Init(), and SCR_ScreenShot_f().
cvar_t scr_showbrand = {CF_CLIENT, "showbrand","0", "shows gfx/brand.tga in a corner of the screen (different values select different positions, including centered)"} |
Definition at line 41 of file cl_screen.c.
Referenced by CL_Screen_Init(), and SCR_DrawBrand().
cvar_t scr_showpause = {CF_CLIENT | CF_ARCHIVE, "showpause","1", "show pause icon when game is paused"} |
cvar_t scr_showram = {CF_CLIENT | CF_ARCHIVE, "showram","1", "show ram icon if low on surface cache memory (not used)"} |
Definition at line 38 of file cl_screen.c.
Referenced by CL_Screen_Init().
cvar_t scr_showturtle = {CF_CLIENT | CF_ARCHIVE, "showturtle","0", "show turtle icon when framerate is too low"} |
Definition at line 88 of file cl_screen.c.
Referenced by CL_DrawVideo(), CL_Screen_Init(), and CL_UpdateScreen().
scr_touchscreenarea_t scr_touchscreenareas[128] |
Definition at line 1505 of file cl_screen.c.
Referenced by SCR_DrawTouchscreenOverlay(), VID_TouchscreenArea(), and VID_TouchscreenCursor().
cvar_t scr_viewsize = {CF_CLIENT | CF_ARCHIVE, "viewsize","100", "how large the view should be, 110 disables inventory bar, 120 disables status bar"} |
Definition at line 19 of file cl_screen.c.
Referenced by CL_Screen_Init(), SCR_DrawScreen(), SCR_SizeDown_f(), SCR_SizeUp_f(), SCR_UpdateVars(), and V_CalcRefdefUsing().
cvar_t timedemo_screenshotframelist = {CF_CLIENT, "timedemo_screenshotframelist", "", "when performing a timedemo, take screenshots of each frame in this space-separated list - example: 1 201 401"} |
Definition at line 93 of file cl_screen.c.
Referenced by CL_Screen_Init(), and SCR_DrawScreen().
|
extern |
|
extern |
Definition at line 98 of file view.c.
Referenced by V_Init(), and V_MakeViewIsometric().
cvar_t vid_conheight = {CF_CLIENT | CF_ARCHIVE, "vid_conheight", "480", "virtual height of 2D graphics system"} |
Definition at line 57 of file cl_screen.c.
Referenced by CL_DrawVideo(), CL_Input(), CL_Screen_Init(), CL_UpdateScreen(), CL_VM_DrawHud(), CL_VM_UpdateView(), Con_DrawConsole(), Con_DrawNotify(), DrawQ_Line(), DrawQ_SetClipArea(), DrawQ_Start(), DrawQ_String_Scale(), Font_IndexForSize(), Font_VirtualToRealSize(), IN_Move_TouchScreen_SteelStorm(), Key_Console(), M_Background(), M_Draw(), M_ModList_Draw(), M_Options_ColorControl_Draw(), M_Options_Draw(), M_Options_Effects_Draw(), M_Options_Graphics_Draw(), M_ServerList_Draw(), M_Video_Key(), R_DebugLine(), R_Model_Sprite_Draw_TransparentCallback(), R_TimeReport_EndFrame(), Sbar_DeathmatchOverlay(), Sbar_Draw(), Sbar_DrawFace(), Sbar_DrawWeapon(), Sbar_IntermissionOverlay(), Sbar_MiniDeathmatchOverlay(), Sbar_Score(), Sbar_ShowFPS(), SCR_DrawBrand(), SCR_DrawCenterString(), SCR_DrawConsole(), SCR_DrawCurlDownload(), SCR_DrawInfobarString(), SCR_DrawLoadingScreen(), SCR_DrawLoadingStack(), SCR_DrawNetGraph(), SCR_DrawPause(), SCR_DrawQWDownload(), SCR_SetLoadingScreenTexture(), SCR_SetUpToDrawConsole(), SCR_UpdateVars(), snap_to_pixel_y(), VID_TouchscreenArea(), VID_TouchscreenCursor(), VM_CL_getmousepos(), VM_CL_project(), VM_CL_unproject(), VM_drawsetcliparea(), and VM_M_getmousepos().
cvar_t vid_conwidth = {CF_CLIENT | CF_ARCHIVE, "vid_conwidth", "640", "virtual width of 2D graphics system (note: changes may be overwritten, see vid_conwidthauto)"} |
Definition at line 56 of file cl_screen.c.
Referenced by CL_DrawVideo(), CL_Input(), CL_Screen_Init(), CL_UpdateScreen(), CL_VM_DrawHud(), CL_VM_UpdateView(), Con_CheckResize(), Con_DrawConsole(), Con_DrawConsoleLine(), Con_DrawInput(), Con_DrawNotify(), Con_LineHeight(), DrawQ_Line(), DrawQ_SetClipArea(), DrawQ_Start(), DrawQ_String_Scale(), Font_IndexForSize(), IN_Move_TouchScreen_SteelStorm(), M_Background(), M_Draw(), M_Options_ColorControl_Draw(), M_Video_Key(), R_DebugLine(), R_Model_Sprite_Draw_TransparentCallback(), R_Shadow_EditLights_DrawSelectedLightProperties(), R_TimeReport(), R_TimeReport_EndFrame(), Sbar_DeathmatchOverlay(), Sbar_Draw(), Sbar_DrawWeapon(), Sbar_FinaleOverlay(), Sbar_IntermissionOverlay(), Sbar_MiniDeathmatchOverlay(), Sbar_ShowFPS(), SCR_DrawBrand(), SCR_DrawCenterString(), SCR_DrawCurlDownload(), SCR_DrawInfobarString(), SCR_DrawLoadingScreen(), SCR_DrawLoadingStack(), SCR_DrawLoadingStack_r(), SCR_DrawNetGraph(), SCR_DrawPause(), SCR_DrawQWDownload(), SCR_SetLoadingScreenTexture(), SCR_UpdateVars(), snap_to_pixel_x(), VID_TouchscreenArea(), VID_TouchscreenCursor(), VM_CL_getmousepos(), VM_CL_project(), VM_CL_R_SetView(), VM_CL_unproject(), VM_drawsetcliparea(), and VM_M_getmousepos().
cvar_t vid_conwidthauto = {CF_CLIENT | CF_ARCHIVE, "vid_conwidthauto", "1", "automatically update vid_conwidth to match aspect ratio"} |
Definition at line 55 of file cl_screen.c.
Referenced by CL_Screen_Init(), and SCR_UpdateVars().
cvar_t vid_pixelheight = {CF_CLIENT | CF_ARCHIVE, "vid_pixelheight", "1", "adjusts vertical field of vision to account for non-square pixels (1280x1024 on a CRT monitor for example)"} |
Definition at line 58 of file cl_screen.c.
Referenced by CL_Screen_Init(), M_Menu_Video_f(), M_Video_Key(), MR_Init(), SCR_CaptureVideo_Avi_BeginVideo(), SCR_CaptureVideo_Ogg_BeginVideo(), SCR_DrawScreen(), SCR_UpdateVars(), and V_MakeViewIsometric().
cvar_t vid_touchscreen_outlinealpha = {CF_CLIENT, "vid_touchscreen_outlinealpha", "0", "opacity of touchscreen area outlines"} |
Definition at line 94 of file cl_screen.c.
Referenced by CL_Screen_Init(), and SCR_DrawTouchscreenOverlay().
cvar_t vid_touchscreen_overlayalpha = {CF_CLIENT, "vid_touchscreen_overlayalpha", "0.25", "opacity of touchscreen area icons"} |
Definition at line 95 of file cl_screen.c.
Referenced by CL_Screen_Init(), and SCR_DrawTouchscreenOverlay().