![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Data Structures | |
struct | vid_joystate_t |
struct | vid_mode_t |
struct | viddef_mode_t |
struct | viddef_support_t |
struct | viddef_t |
Macros | |
#define | ENGINE_ICON ( (gamemode == GAME_NEXUIZ) ? nexuiz_xpm : darkplaces_xpm ) |
#define | MAX_TEXTUREUNITS 32 |
#define | MAXJOYAXIS 16 |
#define | MAXJOYBUTTON 36 |
Enumerations | |
enum | renderpath_t { RENDERPATH_GL32 , RENDERPATH_GLES2 } |
Functions | |
qbool | GL_CheckExtension (const char *name, const char *disableparm, int silent) |
qbool | GL_ExtensionSupported (const char *name) |
void * | GL_GetProcAddress (const char *name) |
void | GL_InitFunctions (void) |
void | GL_Setup (void) |
void | VID_ApplyGammaToColor (const float *rgb, float *out) |
applies current gamma settings to a color (0-1 range) | |
void | VID_ApplyJoyState (vid_joystate_t *joystate) |
void | VID_BuildGammaTables (unsigned short *ramps, int rampsize) |
builds the current gamma tables into an array (needs 3*rampsize items) | |
void | VID_BuildJoyState (vid_joystate_t *joystate) |
void | VID_ClearExtensions (void) |
void | VID_EnableJoystick (qbool enable) |
void | VID_Finish (void) |
vid_mode_t | VID_GetDesktopMode (void) |
qbool | VID_HasScreenKeyboardSupport (void) |
void | VID_Init (void) |
Called at startup. | |
qbool | VID_InitMode (const viddef_mode_t *mode) |
allocates and opens an appropriate OpenGL context (and its window) | |
qbool | VID_JoyBlockEmulatedKeys (int keycode) |
float | VID_JoyState_GetAxis (const vid_joystate_t *joystate, int axis, float sensitivity, float deadzone) |
size_t | VID_ListModes (vid_mode_t *modes, size_t maxcount) |
void | VID_Restart_f (struct cmd_state_s *cmd) |
int | VID_SetMode (int modenum) |
sets the mode; only used by the Quake engine for resetting to mode 0 (the base mode) on memory allocation failures | |
void | VID_Shared_BuildJoyState_Begin (vid_joystate_t *joystate) |
void | VID_Shared_BuildJoyState_Finish (vid_joystate_t *joystate) |
void | VID_Shared_Init (void) |
int | VID_Shared_SetJoystick (int index) |
qbool | VID_ShowingKeyboard (void) |
void | VID_ShowKeyboard (qbool show) |
void | VID_Shutdown (void) |
Called at shutdown. | |
void | VID_Soft_SharedSetup (void) |
size_t | VID_SortModes (vid_mode_t *modes, size_t count, qbool usebpp, qbool userefreshrate, qbool useaspect) |
void | VID_Start (void) |
void | VID_Stop (void) |
void | VID_UpdateGamma (void) |
updates cachegamma variables and bumps vid_gammatables_serial if anything changed (ONLY to be called from VID_Finish!) | |
#define ENGINE_ICON ( (gamemode == GAME_NEXUIZ) ? nexuiz_xpm : darkplaces_xpm ) |
#define MAX_TEXTUREUNITS 32 |
Definition at line 33 of file vid.h.
Referenced by GL_Backend_ResetState(), R_Mesh_ClearBindingsForTexture(), R_Mesh_ResetTextureState(), R_Mesh_TexBind(), R_Mesh_TexBound(), and R_Mesh_TexCoordPointer().
#define MAXJOYAXIS 16 |
Definition at line 99 of file vid.h.
Referenced by VID_JoyState_GetAxis().
#define MAXJOYBUTTON 36 |
Definition at line 101 of file vid.h.
Referenced by VID_ApplyJoyState().
enum renderpath_t |
Enumerator | |
---|---|
RENDERPATH_GL32 | |
RENDERPATH_GLES2 |
Definition at line 633 of file vid_shared.c.
References Con_DPrint(), Con_DPrintf(), Cvar_SetQuick(), dpsnprintf(), glfunction_t::extension, glfunction_t::funcvariable, GL_ExtensionSupported(), gl_info_extensions, MAX_INPUTLINE, glfunction_t::name, name, NULL, openglfuncs, cvar_t::string, and Sys_CheckParm().
Referenced by GL_Setup().
qbool GL_ExtensionSupported | ( | const char * | name | ) |
Definition at line 67 of file vid_null.c.
References name.
Referenced by GL_CheckExtension().
void * GL_GetProcAddress | ( | const char * | name | ) |
Definition at line 45 of file vid_null.c.
Referenced by GL_InitFunctions().
Definition at line 684 of file vid_shared.c.
References Con_DPrintf(), dp_strlcat, glfunction_t::extension, glfunction_t::funcvariable, GL_GetProcAddress(), glfunction_t::name, NULL, openglfuncs, and Sys_Error().
Referenced by VID_InitModeGL().
Definition at line 712 of file vid_shared.c.
References viddef_t::allowalphatocoverage, viddef_support_t::amd_texture_texture4, viddef_support_t::arb_debug_output, viddef_support_t::arb_texture_gather, CF_READONLY, CHECKGLERROR, Con_DPrint(), Con_DPrintf(), Con_Print(), Con_Printf(), Cvar_SetQuick(), viddef_support_t::ext_texture_compression_s3tc, viddef_support_t::ext_texture_filter_anisotropic, viddef_support_t::ext_texture_srgb, cvar_t::flags, viddef_t::forcetextype, GL_BGRA, GL_CheckExtension(), GL_EXTENSIONS, GL_MAJOR_VERSION, GL_MAX_3D_TEXTURE_SIZE, GL_MAX_CUBE_MAP_TEXTURE_SIZE, GL_MAX_DRAW_BUFFERS, GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, GL_MAX_TEXTURE_SIZE, GL_MINOR_VERSION, GL_MULTISAMPLE, GL_NUM_EXTENSIONS, GL_RENDERER, gl_renderer, GL_SAMPLES, GL_SHADING_LANGUAGE_VERSION, gl_texturecompression_color, GL_VENDOR, gl_vendor, GL_VERSION, gl_version, viddef_support_t::glshaderversion, viddef_support_t::glversion, int(), viddef_t::max_anisotropy, viddef_t::maxdrawbuffers, viddef_t::maxtexturesize_2d, viddef_t::maxtexturesize_3d, viddef_t::maxtexturesize_cubemap, viddef_t::mode, qglGetString(), qglGetStringi(), viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, samples, viddef_mode_t::samples, viddef_t::sRGBcapable2D, viddef_t::sRGBcapable3D, viddef_t::support, Sys_Error(), TEXTYPE_RGBA, and vid.
Referenced by VID_InitModeGL().
applies current gamma settings to a color (0-1 range)
Definition at line 1100 of file vid_shared.c.
References cacheblack, cachebrightness, cachecolorenable, cachecontrast, cachecontrastboost, cachegamma, cachegrey, cachewhite, i, invpow, pow(), and rgb.
Referenced by M_Options_ColorControl_Draw().
void VID_ApplyJoyState | ( | vid_joystate_t * | joystate | ) |
Definition at line 1013 of file vid_shared.c.
References vid_joystate_t::button, cl, cl_forwardspeed, cl_pitchspeed, cl_sidespeed, cl_upspeed, cl_yawspeed, client_state_t::cmd, Con_Printf(), usercmd_t::forwardmove, int(), cvar_t::integer, vid_joystate_t::is360, joy_axisforward, joy_axiskeyevents, joy_axispitch, joy_axisside, joy_axisup, joy_axisyaw, joy_deadzoneforward, joy_deadzonepitch, joy_deadzoneside, joy_deadzoneup, joy_deadzoneyaw, joy_sensitivityforward, joy_sensitivitypitch, joy_sensitivityside, joy_sensitivityup, joy_sensitivityyaw, joy_x360_axisforward, joy_x360_axispitch, joy_x360_axisside, joy_x360_axisup, joy_x360_axisyaw, joy_x360_deadzoneforward, joy_x360_deadzonepitch, joy_x360_deadzoneside, joy_x360_deadzoneup, joy_x360_deadzoneyaw, joy_x360_sensitivityforward, joy_x360_sensitivitypitch, joy_x360_sensitivityside, joy_x360_sensitivityup, joy_x360_sensitivityyaw, joybuttonkey, joybuttonkey360, MAXJOYBUTTON, client_state_t::realframetime, usercmd_t::sidemove, usercmd_t::upmove, cvar_t::value, vid_joybuttontimer, vid_joystate, VID_JoyState_GetAxis(), VID_KeyEventForButton(), and client_state_t::viewangles.
Referenced by IN_Move().
builds the current gamma tables into an array (needs 3*rampsize items)
Definition at line 1117 of file vid_shared.c.
References bound, BuildGammaTable16(), cacheblack, cachebrightness, cachecolorenable, cachecontrast, cachecontrastboost, cachegamma, cachegrey, cachewhite, cl, cos(), floor(), gamma_forcenextframe, i, Image_sRGBFloatFromLinearFloat, cvar_t::integer, invpow, lhrandom, M_PI, n, client_state_t::realframetime, viddef_t::sRGB2D, viddef_t::sRGB3D, v_psycho, vid, x, and y.
Referenced by R_UpdateVariables().
void VID_BuildJoyState | ( | vid_joystate_t * | joystate | ) |
Definition at line 54 of file vid_null.c.
References vid_joystate_t::axis, vid_joystate_t::button, joy_sdl2_trigger_deadzone, cvar_t::value, VID_JoyState_GetAxis(), vid_sdlgamecontroller, vid_sdljoystick, VID_Shared_BuildJoyState_Begin(), and VID_Shared_BuildJoyState_Finish().
Referenced by IN_Move(), and VID_JoyBlockEmulatedKeys().
Definition at line 675 of file vid_shared.c.
References Cvar_SetQuick(), gl_info_extensions, viddef_t::support, and vid.
Referenced by VID_Mode().
Definition at line 1583 of file vid_sdl.c.
References Con_DPrintf(), CON_ERROR, Con_Printf(), Cvar_SetValueQuick(), index, cvar_t::integer, joy_active, joy_detected, joy_enable, joy_index, NULL, vid_sdlgamecontroller, vid_sdljoystick, vid_sdljoystickindex, and VID_Shared_SetJoystick().
Referenced by Sys_SDL_HandleEvents(), and VID_Shutdown().
Definition at line 32 of file vid_null.c.
References CHECKGLERROR, GL_Finish(), gl_finish, cvar_t::integer, r_speeds, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, vid, vid_hidden, VID_UpdateGamma(), and window.
Referenced by CL_UpdateScreen(), and VID_InitModeGL().
vid_mode_t VID_GetDesktopMode | ( | void | ) |
Definition at line 1895 of file vid_sdl.c.
References vid_mode_t::bpp, viddef_mode_t::display, vid_mode_t::height, mode, viddef_t::mode, vid_mode_t::pixelheight_denom, vid_mode_t::pixelheight_num, vid_mode_t::refreshrate, vid, and vid_mode_t::width.
Referenced by VM_M_getresolution().
Called at startup.
Definition at line 36 of file vid_null.c.
References CON_ERROR, Con_Printf(), Cvar_RegisterCallback(), Cvar_RegisterVariable(), Cvar_SetValueQuick(), joy_sdl2_trigger_deadzone, Sys_Error(), version, VID_ApplyDisplayMode_c(), vid_borderless, vid_desktopfullscreen, vid_display, vid_fullscreen, vid_height, vid_minimize_on_focus_loss, vid_mouse_clickthrough, vid_refreshrate, vid_resizable, VID_SetHints_c(), VID_SetVsync_c(), vid_touchscreen, vid_vsync, and vid_width.
Referenced by CL_Init().
qbool VID_InitMode | ( | const viddef_mode_t * | mode | ) |
allocates and opens an appropriate OpenGL context (and its window)
Definition at line 40 of file vid_null.c.
References Cvar_FindVar(), Cvar_SetValueQuick(), cvars_all, mode, steelstorm_showing_map, steelstorm_showing_mousecursor, Sys_Error(), VID_InitModeGL(), and vid_touchscreen_supportshowkeyboard.
Referenced by VID_Mode().
Definition at line 864 of file vid_shared.c.
References vid_joystate_t::button, cvar_t::integer, vid_joystate_t::is360, joy_axiskeyevents, K_DOWNARROW, K_LEFTARROW, K_RIGHTARROW, K_UPARROW, VID_BuildJoyState(), and vid_joystate.
Referenced by Sys_SDL_HandleEvents().
float VID_JoyState_GetAxis | ( | const vid_joystate_t * | joystate, |
int | axis, | ||
float | sensitivity, | ||
float | deadzone ) |
Definition at line 854 of file vid_shared.c.
References vid_joystate_t::axis, bound, MAXJOYAXIS, and value.
Referenced by VID_ApplyJoyState(), VID_BuildJoyState(), and VID_Shared_BuildJoyState_Finish().
size_t VID_ListModes | ( | vid_mode_t * | modes, |
size_t | maxcount ) |
Definition at line 62 of file vid_null.c.
References Con_DPrintf(), viddef_mode_t::display, mode, viddef_t::mode, modes, and vid.
Referenced by MR_Init().
void VID_Restart_f | ( | struct cmd_state_s * | cmd | ) |
sets the mode; only used by the Quake engine for resetting to mode 0 (the base mode) on memory allocation failures
void VID_Shared_BuildJoyState_Begin | ( | vid_joystate_t * | joystate | ) |
Definition at line 885 of file vid_shared.c.
References vid_joystate_t::axis, vid_joystate_t::button, and vid_joystate_t::is360.
Referenced by VID_BuildJoyState().
void VID_Shared_BuildJoyState_Finish | ( | vid_joystate_t * | joystate | ) |
Definition at line 929 of file vid_shared.c.
References vid_joystate_t::button, f, cvar_t::integer, vid_joystate_t::is360, joy_axisforward, joy_axiskeyevents_deadzone, joy_axisside, joy_sensitivityforward, joy_sensitivityside, r, cvar_t::value, and VID_JoyState_GetAxis().
Referenced by VID_BuildJoyState().
Definition at line 1273 of file vid_shared.c.
References CF_CLIENT, Cmd_AddCommand(), Cvar_RegisterVariable(), Force_CenterView_f(), gl_finish, gl_info_driver, gl_info_extensions, gl_info_renderer, gl_info_vendor, gl_info_version, joy_active, joy_axisforward, joy_axiskeyevents, joy_axiskeyevents_deadzone, joy_axispitch, joy_axisside, joy_axisup, joy_axisyaw, joy_deadzoneforward, joy_deadzonepitch, joy_deadzoneside, joy_deadzoneup, joy_deadzoneyaw, joy_detected, joy_enable, joy_index, joy_sensitivityforward, joy_sensitivitypitch, joy_sensitivityside, joy_sensitivityup, joy_sensitivityyaw, joy_x360_axisforward, joy_x360_axispitch, joy_x360_axisside, joy_x360_axisup, joy_x360_axisyaw, joy_x360_deadzoneforward, joy_x360_deadzonepitch, joy_x360_deadzoneside, joy_x360_deadzoneup, joy_x360_deadzoneyaw, joy_x360_sensitivityforward, joy_x360_sensitivitypitch, joy_x360_sensitivityside, joy_x360_sensitivityup, joy_x360_sensitivityyaw, Sys_LoadDependency(), v_brightness, v_color_black_b, v_color_black_g, v_color_black_r, v_color_enable, v_color_grey_b, v_color_grey_g, v_color_grey_r, v_color_white_b, v_color_white_g, v_color_white_r, v_contrast, v_contrastboost, v_gamma, v_glslgamma_2d, v_psycho, vid_bitsperpixel, vid_borderless, vid_desktopfullscreen, vid_display, vid_fullscreen, vid_grabkeyboard, vid_height, vid_info_displaycount, vid_minheight, vid_minimize_on_focus_loss, vid_minwidth, vid_mouse, vid_mouse_clickthrough, vid_refreshrate, vid_resizable, VID_Restart_f(), vid_samples, vid_sRGB, vid_sRGB_fallback, vid_stereobuffer, vid_stick_mouse, vid_touchscreen, vid_touchscreen_density, vid_touchscreen_showkeyboard, vid_touchscreen_supportshowkeyboard, vid_touchscreen_xdpi, vid_touchscreen_ydpi, vid_vsync, and vid_width.
Referenced by CL_Init().
Definition at line 1057 of file vid_shared.c.
References Con_Printf(), Cvar_SetValueQuick(), i, index, and cvar_t::integer.
Referenced by VID_EnableJoystick().
Definition at line 360 of file vid_sdl.c.
Referenced by IN_Move_TouchScreen_Quake(), and IN_Move_TouchScreen_SteelStorm().
Definition at line 343 of file vid_sdl.c.
Referenced by IN_Move(), and IN_Move_TouchScreen_Quake().
Called at shutdown.
Definition at line 28 of file vid_null.c.
References context, NULL, VID_EnableJoystick(), VID_SetMouse(), and window.
Referenced by CL_Shutdown(), Sys_Error(), Sys_HandleCrash(), VID_InitModeGL(), and VID_Restart_f().
size_t VID_SortModes | ( | vid_mode_t * | modes, |
size_t | count, | ||
qbool | usebpp, | ||
qbool | userefreshrate, | ||
qbool | useaspect ) |
Definition at line 1623 of file vid_shared.c.
References count, height, i, modes, VID_SortModes_Compare(), and width.
Referenced by MR_Init().
Definition at line 1533 of file vid_shared.c.
References sys_t::argv, Con_Print(), CON_WARN, cvar(), vidfallback_s::cvar, Cvar_SetQuick(), Cvar_SetValueQuick(), height, i, Key_ReleaseAll(), NULL, R_Modules_Start(), vidfallback_s::safevalue, sys, Sys_CheckParm(), Sys_Error(), vid_borderless, vid_commandlinecheck, vid_fullscreen, vid_height, VID_Mode(), vid_touchscreen_density, vid_touchscreen_xdpi, vid_touchscreen_ydpi, vid_width, vidfallbacks, and width.
Referenced by CL_StartVideo().
updates cachegamma variables and bumps vid_gammatables_serial if anything changed (ONLY to be called from VID_Finish!)
Definition at line 1181 of file vid_shared.c.
References BOUNDCVAR, cacheblack, cachebrightness, cachecolorenable, cachecontrast, cachecontrastboost, cachegamma, cachegrey, cachewhite, f, fabs(), GAMMACHECK, cvar_t::integer, viddef_t::sRGB2D, viddef_t::sRGB3D, v_brightness, v_color_black_b, v_color_black_g, v_color_black_r, v_color_enable, v_color_grey_b, v_color_grey_g, v_color_grey_r, v_color_white_b, v_color_white_g, v_color_white_r, v_contrast, v_contrastboost, v_gamma, v_psycho, cvar_t::value, vid, vid_gammatables_serial, and vid_gammatables_trivial.
Referenced by VID_Finish().
|
extern |
Definition at line 24 of file vid_null.c.
Referenced by Host_Init(), and SV_ServerOptions().
|
extern |
Definition at line 92 of file cl_screen.c.
Referenced by CL_Screen_Init(), and Sys_SDL_HandleEvents().
|
extern |
|
extern |
Definition at line 132 of file vid_shared.c.
Referenced by VID_InitModeGL(), and VID_Shared_Init().
|
extern |
Definition at line 131 of file vid_shared.c.
Referenced by GL_CheckExtension(), VID_ClearExtensions(), and VID_Shared_Init().
|
extern |
Definition at line 129 of file vid_shared.c.
Referenced by VID_InitModeGL(), and VID_Shared_Init().
|
extern |
|
extern |
Definition at line 130 of file vid_shared.c.
Referenced by VID_InitModeGL(), and VID_Shared_Init().
|
extern |
graphics chip model and other information
Definition at line 192 of file vid_shared.c.
Referenced by GL_Setup(), R_Shadow_SetShadowMode(), and VID_InitModeGL().
|
extern |
brand of graphics chip
Definition at line 190 of file vid_shared.c.
Referenced by GL_Setup(), R_Shadow_SetShadowMode(), and VID_InitModeGL().
|
extern |
begins with 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, or 1.4.0
Definition at line 194 of file vid_shared.c.
Referenced by GL_Setup(), R_SaveTextureDDSFile(), R_Shadow_SetShadowMode(), and VID_InitModeGL().
|
extern |
Definition at line 84 of file vid_shared.c.
Referenced by VID_EnableJoystick(), and VID_Shared_Init().
|
extern |
Definition at line 85 of file vid_shared.c.
Referenced by VID_EnableJoystick(), and VID_Shared_Init().
|
extern |
Definition at line 86 of file vid_shared.c.
Referenced by VID_EnableJoystick(), and VID_Shared_Init().
|
extern |
Definition at line 87 of file vid_shared.c.
Referenced by VID_EnableJoystick(), and VID_Shared_Init().
|
extern |
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().
|
extern |
Definition at line 174 of file vid_shared.c.
Referenced by M_Menu_Options_ColorControl_AdjustSliders(), M_Options_ColorControl_Draw(), M_Options_ColorControl_Key(), VID_Shared_Init(), and VID_UpdateGamma().
|
extern |
Definition at line 179 of file vid_shared.c.
Referenced by M_Menu_Options_ColorControl_AdjustSliders(), M_Options_ColorControl_Draw(), M_Options_ColorControl_Key(), VID_Shared_Init(), and VID_UpdateGamma().
|
extern |
Definition at line 178 of file vid_shared.c.
Referenced by M_Menu_Options_ColorControl_AdjustSliders(), M_Options_ColorControl_Draw(), M_Options_ColorControl_Key(), VID_Shared_Init(), and VID_UpdateGamma().
|
extern |
Definition at line 177 of file vid_shared.c.
Referenced by M_Menu_Options_ColorControl_AdjustSliders(), M_Options_ColorControl_Draw(), M_Options_ColorControl_Key(), VID_Shared_Init(), and VID_UpdateGamma().
|
extern |
Definition at line 176 of file vid_shared.c.
Referenced by M_Menu_Options_ColorControl_AdjustSliders(), M_Options_ColorControl_Draw(), M_Options_ColorControl_Key(), VID_Shared_Init(), and VID_UpdateGamma().
|
extern |
Definition at line 182 of file vid_shared.c.
Referenced by M_Menu_Options_ColorControl_AdjustSliders(), M_Options_ColorControl_Draw(), M_Options_ColorControl_Key(), VID_Shared_Init(), and VID_UpdateGamma().
|
extern |
Definition at line 181 of file vid_shared.c.
Referenced by M_Menu_Options_ColorControl_AdjustSliders(), M_Options_ColorControl_Draw(), M_Options_ColorControl_Key(), VID_Shared_Init(), and VID_UpdateGamma().
|
extern |
Definition at line 180 of file vid_shared.c.
Referenced by M_Menu_Options_ColorControl_AdjustSliders(), M_Options_ColorControl_Draw(), M_Options_ColorControl_Key(), VID_Shared_Init(), and VID_UpdateGamma().
|
extern |
Definition at line 185 of file vid_shared.c.
Referenced by M_Menu_Options_ColorControl_AdjustSliders(), M_Options_ColorControl_Draw(), M_Options_ColorControl_Key(), VID_Shared_Init(), and VID_UpdateGamma().
|
extern |
Definition at line 184 of file vid_shared.c.
Referenced by M_Menu_Options_ColorControl_AdjustSliders(), M_Options_ColorControl_Draw(), M_Options_ColorControl_Key(), VID_Shared_Init(), and VID_UpdateGamma().
|
extern |
Definition at line 183 of file vid_shared.c.
Referenced by M_Menu_Options_ColorControl_AdjustSliders(), M_Options_ColorControl_Draw(), M_Options_ColorControl_Key(), VID_Shared_Init(), and VID_UpdateGamma().
|
extern |
Definition at line 173 of file vid_shared.c.
Referenced by M_Menu_Options_AdjustSliders(), M_Menu_Options_ColorControl_AdjustSliders(), M_Options_ColorControl_Draw(), M_Options_ColorControl_Key(), M_Options_Draw(), VID_Shared_Init(), and VID_UpdateGamma().
|
extern |
Definition at line 172 of file vid_shared.c.
Referenced by M_Menu_Options_AdjustSliders(), M_Menu_Options_ColorControl_AdjustSliders(), M_Options_ColorControl_Draw(), M_Options_ColorControl_Key(), M_Options_Draw(), VID_Shared_Init(), and VID_UpdateGamma().
|
extern |
global video state
Definition at line 64 of file vid_shared.c.
Referenced by CL_DrawVideo(), CL_Input(), CL_NewParticle(), CL_SpawnDecalParticleForSurface(), CL_UpdateScreen(), CL_VM_UpdateView(), Draw_NewPic(), DrawQ_Line(), DrawQ_SetClipArea(), DrawQ_Start(), DrawQ_String_Scale(), Font_IndexForSize(), Font_VirtualToRealSize(), GL_ActiveTexture(), GL_AlphaToCoverage(), gl_backend_devicelost(), gl_backend_devicerestored(), GL_Backend_ResetState(), gl_backend_shutdown(), gl_backend_start(), GL_BlendEquationSubtract(), GL_BlendFunc(), GL_Clear(), GL_Color(), GL_ColorMask(), GL_CullFace(), GL_DepthFunc(), GL_DepthMask(), GL_DepthRange(), GL_DepthTest(), GL_Finish(), gl_main_shutdown(), gl_main_start(), GL_PolygonOffset(), GL_ReadPixelsBGRA(), GL_Scissor(), GL_ScissorTest(), GL_SetMirrorState(), GL_Setup(), GL_SetupTextureParameters(), GL_Texture_CalcImageSize(), GL_TextureMode_f(), IN_Move(), IN_Move_TouchScreen_Quake(), M_Menu_Video_AdjustSliders(), M_Menu_Video_f(), M_Options_ColorControl_Draw(), M_Video_Draw(), M_Video_Key(), Mod_GenerateLightmaps_CreateLightmaps(), Mod_Q1BSP_LoadFaces(), Mod_Q1BSP_LoadSplitSky(), Mod_Q3BSP_Load(), Mod_Q3BSP_LoadLightGrid(), Mod_Q3BSP_LoadLightmaps(), Mod_Q3BSP_LoadVertices(), Mod_VBSP_LoadFaces(), MP_Draw(), MR_Init(), R_BeginCoronaQuery(), R_BlendView(), R_Bloom_StartFrame(), R_BuildLightMap(), R_ClearScreen(), R_DebugLine(), R_DrawCorona(), R_DrawModelTextureSurfaceList(), R_EntityMatrix(), R_Envmap_f(), R_FreeTexture(), R_GetCurrentTexture(), R_GetTexTypeInfo(), R_GLSL_CompilePermutation(), R_GLSL_Restart_f(), R_InitParticleTexture(), R_LoadCubemap(), R_LoadSkyBox(), R_LoadTextureDDSFile(), R_LoadTextureRenderBuffer(), R_Mesh_ColorPointer(), R_Mesh_CopyToTexture(), R_Mesh_CreateFramebufferObject(), R_Mesh_DestroyFramebufferObject(), R_Mesh_DestroyMeshBuffer(), R_Mesh_Draw(), R_Mesh_SetRenderTargets(), R_Mesh_TexBind(), R_Mesh_TexCoordPointer(), R_Mesh_UpdateMeshBuffer(), R_Mesh_VertexPointer(), R_RenderView(), R_ResetViewRendering2D_Common(), R_ResetViewRendering3D(), R_ScissorForBBox(), R_SetStencil(), R_SetupShader_DeferredLight(), R_SetupShader_DepthOrShadow(), R_SetupShader_Generic(), R_SetupShader_Surface(), R_SetupTexture(), R_SetupView(), R_SetViewport(), R_Shadow_BounceGrid_UpdateSpacing(), R_Shadow_ClearShadowMapTexture(), R_Shadow_DrawCoronas(), R_Shadow_PrepareLights(), R_Shadow_RenderMode_ShadowMap(), R_Shadow_SetShadowMode(), r_shadow_start(), R_SkinFrame_GenerateTexturesFromQPixels(), R_SkinFrame_LoadExternal_SkinFrame(), R_Stereo_Active(), r_textures_devicelost(), r_textures_devicerestored(), R_Textures_Frame(), r_textures_start(), R_UpdateVariables(), R_UploadFullTexture(), R_UploadPartialTexture(), R_Viewport_InitOrtho(), R_Water_StartFrame(), SCR_CaptureVideo_Avi_BeginVideo(), SCR_DrawLoadingScreen(), SCR_DrawScreen(), SCR_ScreenShot_f(), SCR_SetLoadingScreenTexture(), SCR_UpdateVars(), snap_to_pixel_x(), snap_to_pixel_y(), Sys_SDL_HandleEvents(), V_CalcViewBlend(), VID_ApplyDisplayMode(), VID_BuildGammaTables(), VID_ClearExtensions(), VID_Finish(), VID_GetDesktopMode(), VID_InitModeGL(), VID_ListModes(), VID_Mode(), VID_Restart_f(), VID_UpdateGamma(), VM_CL_getmousepos(), VM_CL_R_SetView(), and VM_M_getmousepos().
|
extern |
Definition at line 77 of file vid_shared.c.
Referenced by Buffer_Callback(), CL_Frame(), CL_NetworkTimeReceived(), CL_SendMove(), S_Update(), Sys_SDL_HandleEvents(), and VID_InitModeGL().
|
extern |
Definition at line 138 of file vid_shared.c.
Referenced by M_Video_Key(), VID_ApplyDisplayMode_c(), VID_Mode(), VID_Restart_f(), and VID_Shared_Init().
|
extern |
Definition at line 135 of file vid_shared.c.
Referenced by VID_ApplyDisplayMode(), VID_Init(), VID_InitModeGL(), VID_Shared_Init(), and VID_Start().
|
extern |
Definition at line 165 of file vid_shared.c.
Referenced by M_Menu_Video_AdjustSliders(), M_Video_Draw(), M_Video_Key(), VID_ApplyDisplayMode_c(), VID_Init(), VID_Mode(), VID_Restart_f(), and VID_Shared_Init().
|
extern |
Definition at line 166 of file vid_shared.c.
Referenced by M_Menu_Video_AdjustSliders(), M_Video_Draw(), M_Video_Key(), VID_ApplyDisplayMode_c(), VID_Init(), VID_Mode(), VID_Restart_f(), and VID_Shared_Init().
|
extern |
Definition at line 134 of file vid_shared.c.
Referenced by em_on_resize(), M_Menu_Video_AdjustSliders(), M_Video_Draw(), M_Video_Key(), MR_Init(), VID_ApplyDisplayMode_c(), VID_Init(), VID_Mode(), VID_Restart_f(), VID_Shared_Init(), and VID_Start().
|
extern |
so other subsystems can poll if gamma parameters have changed; this starts with 0 and gets increased by 1 each time the gamma parameters get changed and VID_BuildGammaTables should be called again
Definition at line 1115 of file vid_shared.c.
Referenced by R_UpdateVariables(), and VID_UpdateGamma().
|
extern |
this is set to true if all color control values are at default setting, and it therefore would make no sense to use the gamma table
Definition at line 1116 of file vid_shared.c.
Referenced by R_BlendView(), R_BlendView_IsTrivial(), R_SetupShader_Generic(), R_UpdateVariables(), and VID_UpdateGamma().
|
extern |
Definition at line 153 of file vid_shared.c.
Referenced by VID_Shared_Init().
|
extern |
Definition at line 137 of file vid_shared.c.
Referenced by em_on_resize(), Font_VirtualToRealSize(), IN_Move_TouchScreen_SteelStorm(), M_Video_Key(), VID_ApplyDisplayMode_c(), VID_Init(), VID_Mode(), VID_Restart_f(), VID_Shared_Init(), VID_Start(), and VID_TouchscreenCursor().
|
extern |
Definition at line 74 of file vid_shared.c.
Referenced by CL_UpdateScreen(), S_Update(), Sys_SDL_HandleEvents(), VID_Finish(), and VID_InitModeGL().
|
extern |
Definition at line 167 of file vid_shared.c.
Referenced by M_Menu_Video_AdjustSliders(), M_Video_Draw(), Sys_SDL_HandleEvents(), VID_ApplyDisplayMode(), VID_InitModeGL(), and VID_Shared_Init().
|
extern |
Definition at line 79 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_JoyBlockEmulatedKeys().
|
extern |
Definition at line 155 of file vid_shared.c.
Referenced by M_Menu_Video_AdjustSliders(), and VID_Shared_Init().
|
extern |
Definition at line 152 of file vid_shared.c.
Referenced by VID_Init(), VID_SetHints_c(), and VID_Shared_Init().
|
extern |
Definition at line 154 of file vid_shared.c.
Referenced by M_Menu_Video_AdjustSliders(), and VID_Shared_Init().
|
extern |
Definition at line 150 of file vid_shared.c.
Referenced by Sys_SDL_HandleEvents(), and VID_Shared_Init().
|
extern |
Definition at line 151 of file vid_shared.c.
Referenced by VID_Init(), VID_SetHints_c(), and VID_Shared_Init().
|
extern |
Definition at line 140 of file vid_shared.c.
Referenced by M_Menu_Video_AdjustSliders(), M_Video_Draw(), M_Video_Key(), VID_ApplyDisplayMode_c(), VID_Init(), VID_Mode(), VID_Restart_f(), and VID_Shared_Init().
|
extern |
Definition at line 164 of file vid_shared.c.
Referenced by em_on_resize(), Sys_SDL_HandleEvents(), VID_ApplyDisplayMode(), VID_Init(), VID_InitModeGL(), and VID_Shared_Init().
|
extern |
Definition at line 139 of file vid_shared.c.
Referenced by M_Menu_Video_AdjustSliders(), M_Video_Draw(), M_Video_Key(), and VID_Shared_Init().
|
extern |
Definition at line 157 of file vid_shared.c.
Referenced by Mod_Q3BSP_Load(), Mod_Q3BSP_LoadLightGrid(), Mod_Q3BSP_LoadLightmaps(), Mod_Q3BSP_LoadVertices(), R_BuildLightMap(), R_RenderView(), VID_Mode(), and VID_Shared_Init().
|
extern |
Definition at line 158 of file vid_shared.c.
Referenced by Mod_Q3BSP_Load(), Mod_Q3BSP_LoadLightGrid(), Mod_Q3BSP_LoadLightmaps(), Mod_Q3BSP_LoadVertices(), R_BuildLightMap(), R_RenderView(), VID_Mode(), and VID_Shared_Init().
|
extern |
Definition at line 163 of file vid_shared.c.
Referenced by IN_Move(), and VID_Shared_Init().
|
extern |
Definition at line 26 of file vid_null.c.
|
extern |
Definition at line 160 of file vid_shared.c.
Referenced by IN_Move(), Sys_SDL_HandleEvents(), VID_Init(), VID_Mode(), and VID_Shared_Init().
|
extern |
Definition at line 145 of file vid_shared.c.
Referenced by IN_Move_TouchScreen_SteelStorm(), VID_Shared_Init(), and VID_Start().
|
extern |
Definition at line 161 of file vid_shared.c.
Referenced by IN_Move(), and VID_Shared_Init().
|
extern |
Definition at line 162 of file vid_shared.c.
Referenced by VID_InitMode(), and VID_Shared_Init().
|
extern |
Definition at line 146 of file vid_shared.c.
Referenced by VID_Shared_Init(), and VID_Start().
|
extern |
Definition at line 147 of file vid_shared.c.
Referenced by VID_Shared_Init(), and VID_Start().
|
extern |
Definition at line 149 of file vid_shared.c.
Referenced by CL_DisconnectEx(), CL_FinishTimeDemo(), CL_TimeDemo_f(), M_Menu_Video_AdjustSliders(), M_Video_Draw(), Sys_Frame(), VID_Init(), VID_InitModeGL(), VID_SetVsync_c(), and VID_Shared_Init().
|
extern |
Definition at line 136 of file vid_shared.c.
Referenced by em_on_resize(), IN_Move_TouchScreen_SteelStorm(), M_Video_Key(), VID_ApplyDisplayMode_c(), VID_Init(), VID_Mode(), VID_Restart_f(), VID_Shared_Init(), VID_Start(), and VID_TouchscreenCursor().