96 if (modeInfo->
width <= 0 || modeInfo->
height <= 0) {
97 Com_Printf(
"I: using the desktop resolution because vid_mode, vid_height and vid_width are set to -1 (%ix%i)\n",
111 modeInfo->
width = width;
112 modeInfo->
height = height;
152 SDL_MinimizeWindow(
cls.window);
void GAME_ReloadMode(void)
Shared game type headers.
memPool_t * vid_genericPool
memPool_t * vid_imagePool
memPool_t * vid_modelPool
memPool_t * vid_lightPool
static cvar_t * vid_height
static bool CL_CvarCheckVidGamma(cvar_t *cvar)
static const vidmode_t vid_modes[]
All possible video modes.
static cvar_t * vid_width
static bool CL_CvarCheckVidMode(cvar_t *cvar)
static void VID_Restart_f(void)
Perform a renderer restart.
bool VID_GetModeInfo(int modeIndex, vidmode_t *modeInfo)
int VID_GetModeNums(void)
Returns the amount of available video modes.
void CL_ViewPrecacheModels(void)
Precaches all models at game startup - for faster access.
Primary header for client.
void Cmd_AddCommand(const char *cmdName, xcommand_t function, const char *desc)
Add a new command to the script interface.
void Com_Printf(const char *const fmt,...)
bool Cvar_SetCheckFunction(const char *varName, bool(*check)(cvar_t *cvar))
Set a checker function for cvar values.
bool Cvar_AssertValue(cvar_t *cvar, float minVal, float maxVal, bool shouldBeIntegral)
Checks cvar values.
cvar_t * Cvar_Get(const char *var_name, const char *var_value, int flags, const char *desc)
Init or return a cvar.
#define Mem_CreatePool(name)
r_sdl_config_t r_sdl_config
const char * va(const char *format,...)
does a varargs printf into a temp buffer, so I don't need to have varargs versions of all text functi...
This is a cvar definition. Cvars can be user modified and used in our menus e.g.
Contains the game screen size and drawing scale.