![]() |
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 | glfunction_t |
struct | vidfallback_s |
Macros | |
#define | BOUNDCVAR(cvar, m1, m2) |
#define | GAMMACHECK(cache, value) |
Variables | |
GLclampf GLclampf GLclampf | alpha |
const GLuint * | arrays |
GLuint | attachedObj |
GLenum | attachment |
GLclampf GLclampf | blue |
GLint GLenum GLsizei GLsizei GLint | border |
GLenum GLuint GLenum GLsizei const GLchar * | buf |
GLuint | buffer |
const GLuint * | buffers |
const GLenum * | bufs |
GLsizei | bufSize |
static float | cacheblack [3] |
static float | cachebrightness |
static int | cachecolorenable |
static float | cachecontrast |
static float | cachecontrastboost |
static float | cachegamma |
static float | cachegrey [3] |
static float | cachewhite [3] |
GLenum GLenum GLsizei | count |
GLsizeiptr const GLvoid * | data |
GLint GLenum GLsizei GLsizei GLsizei | depth |
GLenum | dfactor |
GLenum GLenum GLenum | dfactorAlpha |
GLenum | dfactorRGB |
GLint GLint GLint GLint | dstX0 |
GLint GLint GLint GLint GLint GLint | dstX1 |
GLint GLint GLint GLint GLint | dstY0 |
GLint GLint GLint GLint GLint GLint GLint | dstY1 |
GLenum GLenum GLsizei const GLuint GLboolean | enabled |
GLclampd | far_val |
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum | filter |
GLint | first |
GLint GLint GLint GLsizei GLsizei GLenum | format |
GLuint | framebuffer |
const GLuint * | framebuffers |
static int | gamma_forcenextframe = false |
cvar_t | gl_finish = {CF_CLIENT | CF_CLIENT, "gl_finish", "0", "make the cpu wait for the graphics processor at the end of each rendered frame (can help with strange input or video lag problems on some machines)"} |
cvar_t | gl_info_driver = {CF_CLIENT | CF_READONLY, "gl_info_driver", "", "name of driver library (opengl32.dll, libGL.so.1, or whatever)."} |
cvar_t | gl_info_extensions = {CF_CLIENT | CF_READONLY, "gl_info_extensions", "", "indicates extension list found by engine, space separated."} |
cvar_t | gl_info_renderer = {CF_CLIENT | CF_READONLY, "gl_info_renderer", "", "indicates graphics chip model and other information"} |
cvar_t | gl_info_vendor = {CF_CLIENT | CF_READONLY, "gl_info_vendor", "", "indicates brand of graphics chip"} |
cvar_t | gl_info_version = {CF_CLIENT | CF_READONLY, "gl_info_version", "", "indicates version of current renderer. begins with 1.0.0, 1.1.0, 1.2.0, 1.3.1 etc."} |
const char * | gl_renderer |
graphics chip model and other information | |
const char * | gl_vendor |
brand of graphics chip | |
const char * | gl_version |
begins with 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, or 1.4.0 | |
GLclampf | green |
GLenum GLsizei GLsizei | height |
GLenum GLuint | id |
GLsizei GLenum GLenum GLuint * | ids |
GLint GLenum GLsizei GLsizei GLint GLsizei | imageSize |
GLint void * | img |
qbool | in_client_mouse = true |
float | in_mouse_x |
float | in_mouse_y |
float | in_windowmouse_x |
float | in_windowmouse_y |
GLuint | index |
GLsizei GLenum const GLvoid * | indices |
GLsizei GLsizei GLchar * | infoLog |
GLint GLint | internalFormat |
GLenum | internalformat |
GLboolean | invert |
cvar_t | joy_active = {CF_CLIENT | CF_READONLY, "joy_active", "0", "indicates that a joystick is active (detected and enabled)"} |
cvar_t | joy_axisforward = {CF_CLIENT, "joy_axisforward", "1", "which joystick axis to query for forward/backward movement"} |
cvar_t | joy_axiskeyevents = {CF_CLIENT | CF_ARCHIVE, "joy_axiskeyevents", "0", "generate uparrow/leftarrow etc. keyevents for joystick axes, use if your joystick driver is not generating them"} |
cvar_t | joy_axiskeyevents_deadzone = {CF_CLIENT | CF_ARCHIVE, "joy_axiskeyevents_deadzone", "0.5", "deadzone value for axes"} |
cvar_t | joy_axispitch = {CF_CLIENT, "joy_axispitch", "3", "which joystick axis to query for looking up/down"} |
cvar_t | joy_axisroll = {CF_CLIENT, "joy_axisroll", "-1", "which joystick axis to query for tilting head right/left"} |
cvar_t | joy_axisside = {CF_CLIENT, "joy_axisside", "0", "which joystick axis to query for right/left movement"} |
cvar_t | joy_axisup = {CF_CLIENT, "joy_axisup", "-1", "which joystick axis to query for up/down movement"} |
cvar_t | joy_axisyaw = {CF_CLIENT, "joy_axisyaw", "2", "which joystick axis to query for looking right/left"} |
cvar_t | joy_deadzoneforward = {CF_CLIENT, "joy_deadzoneforward", "0", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
cvar_t | joy_deadzonepitch = {CF_CLIENT, "joy_deadzonepitch", "0", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
cvar_t | joy_deadzoneroll = {CF_CLIENT, "joy_deadzoneroll", "0", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
cvar_t | joy_deadzoneside = {CF_CLIENT, "joy_deadzoneside", "0", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
cvar_t | joy_deadzoneup = {CF_CLIENT, "joy_deadzoneup", "0", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
cvar_t | joy_deadzoneyaw = {CF_CLIENT, "joy_deadzoneyaw", "0", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
cvar_t | joy_detected = {CF_CLIENT | CF_READONLY, "joy_detected", "0", "number of joysticks detected by engine"} |
cvar_t | joy_enable = {CF_CLIENT | CF_ARCHIVE, "joy_enable", "0", "enables joystick support"} |
cvar_t | joy_index = {CF_CLIENT, "joy_index", "0", "selects which joystick to use if you have multiple (0 uses the first controller, 1 uses the second, ...)"} |
cvar_t | joy_sensitivityforward = {CF_CLIENT, "joy_sensitivityforward", "-1", "movement multiplier"} |
cvar_t | joy_sensitivitypitch = {CF_CLIENT, "joy_sensitivitypitch", "1", "movement multiplier"} |
cvar_t | joy_sensitivityroll = {CF_CLIENT, "joy_sensitivityroll", "1", "movement multiplier"} |
cvar_t | joy_sensitivityside = {CF_CLIENT, "joy_sensitivityside", "1", "movement multiplier"} |
cvar_t | joy_sensitivityup = {CF_CLIENT, "joy_sensitivityup", "1", "movement multiplier"} |
cvar_t | joy_sensitivityyaw = {CF_CLIENT, "joy_sensitivityyaw", "-1", "movement multiplier"} |
cvar_t | joy_x360_axisforward = {CF_CLIENT, "joy_x360_axisforward", "1", "which joystick axis to query for forward/backward movement"} |
cvar_t | joy_x360_axispitch = {CF_CLIENT, "joy_x360_axispitch", "3", "which joystick axis to query for looking up/down"} |
cvar_t | joy_x360_axisroll = {CF_CLIENT, "joy_x360_axisroll", "-1", "which joystick axis to query for tilting head right/left"} |
cvar_t | joy_x360_axisside = {CF_CLIENT, "joy_x360_axisside", "0", "which joystick axis to query for right/left movement"} |
cvar_t | joy_x360_axisup = {CF_CLIENT, "joy_x360_axisup", "-1", "which joystick axis to query for up/down movement"} |
cvar_t | joy_x360_axisyaw = {CF_CLIENT, "joy_x360_axisyaw", "2", "which joystick axis to query for looking right/left"} |
cvar_t | joy_x360_deadzoneforward = {CF_CLIENT, "joy_x360_deadzoneforward", "0.266", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
cvar_t | joy_x360_deadzonepitch = {CF_CLIENT, "joy_x360_deadzonepitch", "0.266", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
cvar_t | joy_x360_deadzoneroll = {CF_CLIENT, "joy_x360_deadzoneroll", "0.266", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
cvar_t | joy_x360_deadzoneside = {CF_CLIENT, "joy_x360_deadzoneside", "0.266", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
cvar_t | joy_x360_deadzoneup = {CF_CLIENT, "joy_x360_deadzoneup", "0.266", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
cvar_t | joy_x360_deadzoneyaw = {CF_CLIENT, "joy_x360_deadzoneyaw", "0.266", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
cvar_t | joy_x360_sensitivityforward = {CF_CLIENT, "joy_x360_sensitivityforward", "1", "movement multiplier"} |
cvar_t | joy_x360_sensitivitypitch = {CF_CLIENT, "joy_x360_sensitivitypitch", "-1", "movement multiplier"} |
cvar_t | joy_x360_sensitivityroll = {CF_CLIENT, "joy_x360_sensitivityroll", "1", "movement multiplier"} |
cvar_t | joy_x360_sensitivityside = {CF_CLIENT, "joy_x360_sensitivityside", "1", "movement multiplier"} |
cvar_t | joy_x360_sensitivityup = {CF_CLIENT, "joy_x360_sensitivityup", "1", "movement multiplier"} |
cvar_t | joy_x360_sensitivityyaw = {CF_CLIENT, "joy_x360_sensitivityyaw", "-1", "movement multiplier"} |
static int | joybuttonkey [MAXJOYBUTTON][2] |
static int | joybuttonkey360 [][2] |
GLenum GLenum GLuint GLint GLint | layer |
GLenum GLuint GLenum GLsizei | length |
GLsizei GLenum GLenum GLuint GLenum GLsizei * | lengths |
GLenum GLenum GLuint GLint | level |
GLint | location |
GLint | lod |
GLint GLint GLint GLint GLint GLint GLint GLbitfield | mask |
GLsizei | maxCount |
GLuint GLsizei | maxLength |
GLsizei GLenum GLenum GLuint GLenum GLsizei GLchar * | messageLog |
GLenum | mode |
const GLchar * | name |
GLint GLenum GLboolean | normalized |
GLuint | obj |
GLuint GLuint GLintptr | offset |
static glfunction_t | openglfuncs [] |
GLint | param |
GLenum GLenum GLint * | params |
GLint GLenum GLenum GLvoid * | pixels |
GLenum GLenum | pname |
GLenum GLvoid ** | pointer |
GLuint | qid |
GLint | ref |
GLuint | renderbuffer |
const GLuint * | renderbuffers |
GLenum GLenum | renderbuffertarget |
GLsizei | samples |
GLsizei GLenum GLenum GLuint GLenum * | severities |
GLenum GLenum | severity |
GLenum GLenum | sfactorAlpha |
GLuint GLuint GLintptr GLsizeiptr | size |
GLsizei GLsizei GLchar * | source |
GLsizei GLenum * | sources |
GLint GLint | srcX1 |
GLint | srcY0 |
GLint GLint GLint | srcY1 |
GLint GLenum GLboolean GLsizei | stride |
GLsizei const GLchar ** | string |
GLenum GLenum | textarget |
GLenum GLenum GLuint | texture |
const GLuint * | textures |
GLsizei GLboolean | transpose |
GLenum | type |
GLsizei GLenum GLenum * | types |
GLuint GLuint | uniformBlockBinding |
GLuint | uniformBlockIndex |
const char * | uniformBlockName |
GLsizei | uniformCount |
GLuint | uniformIndex |
GLsizei const GLuint * | uniformIndices |
GLuint GLsizei GLsizei char * | uniformName |
GLsizei const char ** | uniformNames |
GLfloat | units |
GLsizeiptr const GLvoid GLenum | usage |
const GLvoid * | userParam |
const GLdouble * | v |
GLfloat | v0 |
GLfloat GLfloat | v1 |
GLfloat GLfloat GLfloat | v2 |
GLfloat GLfloat GLfloat GLfloat | v3 |
cvar_t | v_brightness = {CF_CLIENT | CF_ARCHIVE, "v_brightness", "0", "brightness of black, useful for monitors that are too dark"} |
cvar_t | v_color_black_b = {CF_CLIENT | CF_ARCHIVE, "v_color_black_b", "0", "desired color of black"} |
cvar_t | v_color_black_g = {CF_CLIENT | CF_ARCHIVE, "v_color_black_g", "0", "desired color of black"} |
cvar_t | v_color_black_r = {CF_CLIENT | CF_ARCHIVE, "v_color_black_r", "0", "desired color of black"} |
cvar_t | v_color_enable = {CF_CLIENT | CF_ARCHIVE, "v_color_enable", "0", "enables black-grey-white color correction curve controls"} |
cvar_t | v_color_grey_b = {CF_CLIENT | CF_ARCHIVE, "v_color_grey_b", "0.5", "desired color of grey"} |
cvar_t | v_color_grey_g = {CF_CLIENT | CF_ARCHIVE, "v_color_grey_g", "0.5", "desired color of grey"} |
cvar_t | v_color_grey_r = {CF_CLIENT | CF_ARCHIVE, "v_color_grey_r", "0.5", "desired color of grey"} |
cvar_t | v_color_white_b = {CF_CLIENT | CF_ARCHIVE, "v_color_white_b", "1", "desired color of white"} |
cvar_t | v_color_white_g = {CF_CLIENT | CF_ARCHIVE, "v_color_white_g", "1", "desired color of white"} |
cvar_t | v_color_white_r = {CF_CLIENT | CF_ARCHIVE, "v_color_white_r", "1", "desired color of white"} |
cvar_t | v_contrast = {CF_CLIENT | CF_ARCHIVE, "v_contrast", "1", "brightness of white (values above 1 give a brighter image with increased color saturation, unlike v_gamma)"} |
cvar_t | v_contrastboost = {CF_CLIENT | CF_ARCHIVE, "v_contrastboost", "1", "by how much to multiply the contrast in dark areas (1 is no change)"} |
cvar_t | v_gamma = {CF_CLIENT | CF_ARCHIVE, "v_gamma", "1", "inverse gamma correction value, a brightness effect that does not affect white or black, and tends to make the image grey and dull"} |
cvar_t | v_glslgamma_2d = {CF_CLIENT | CF_ARCHIVE, "v_glslgamma_2d", "1", "applies GLSL gamma to 2d pictures (HUD, fonts)"} |
cvar_t | v_psycho = {CF_CLIENT, "v_psycho", "0", "easter egg - R.I.P. zinx http://obits.al.com/obituaries/birmingham/obituary.aspx?n=christopher-robert-lais&pid=186080667"} |
GLsizei const GLfloat * | value |
viddef_t | vid |
global video state | |
qbool | vid_activewindow = true |
cvar_t | vid_bitsperpixel = {CF_CLIENT | CF_READONLY, "vid_bitsperpixel", "32", "how many bits per pixel to render at (this is not currently configurable)"} |
cvar_t | vid_borderless = {CF_CLIENT | CF_ARCHIVE, "vid_borderless", "0", "make the window borderless by removing all window decorations. has no effect in fullscreen mode"} |
qbool | vid_commandlinecheck = true |
cvar_t | vid_desktopfullscreen = {CF_CLIENT | CF_ARCHIVE, "vid_desktopfullscreen", "1", "force desktop resolution and refresh rate (disable modesetting), also use some OS-dependent tricks for better fullscreen integration; disabling may reveal OS/driver/SDL bugs with multi-monitor configurations"} |
cvar_t | vid_display = {CF_CLIENT | CF_ARCHIVE, "vid_display", "0", "which monitor to render on, numbered from 0 (system default)" } |
cvar_t | vid_fullscreen = {CF_CLIENT | CF_ARCHIVE, "vid_fullscreen", "1", "use fullscreen (1) or windowed (0)"} |
unsigned int | vid_gammatables_serial = 0 |
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 | |
qbool | vid_gammatables_trivial = true |
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 | |
cvar_t | vid_grabkeyboard = {CF_CLIENT | CF_ARCHIVE, "vid_grabkeyboard", "0", "whether to grab the keyboard when mouse is active (prevents use of volume control keys, music player keys, etc on some keyboards)"} |
cvar_t | vid_height = {CF_CLIENT | CF_ARCHIVE, "vid_height", "480", "resolution"} |
qbool | vid_hidden = true |
cvar_t | vid_info_displaycount = {CF_CLIENT | CF_READONLY, "vid_info_displaycount", "1", "how many monitors are currently available, updated by hotplug events" } |
double | vid_joybuttontimer [MAXJOYBUTTON] |
vid_joystate_t | vid_joystate |
cvar_t | vid_minheight = {CF_CLIENT, "vid_minheight", "0", "minimum vid_height that is acceptable (to be set in default.cfg in mods)"} |
cvar_t | vid_minimize_on_focus_loss = {CF_CLIENT | CF_ARCHIVE, "vid_minimize_on_focus_loss", "0", "whether to minimize the fullscreen window if it loses focus (such as by alt+tab)"} |
cvar_t | vid_minwidth = {CF_CLIENT, "vid_minwidth", "0", "minimum vid_width that is acceptable (to be set in default.cfg in mods)"} |
cvar_t | vid_mouse = {CF_CLIENT | CF_ARCHIVE, "vid_mouse", "1", "whether to use the mouse in windowed mode (fullscreen always does)"} |
cvar_t | vid_mouse_clickthrough = {CF_CLIENT | CF_ARCHIVE, "vid_mouse_clickthrough", "0", "mouse behavior in windowed mode: 0 = click to focus, 1 = allow interaction even if the window is not focused (click-through behaviour, can be useful when using third-party game overlays)"} |
qbool | vid_opened |
cvar_t | vid_refreshrate = {CF_CLIENT | CF_ARCHIVE, "vid_refreshrate", "0", "refresh rate to use, in hz (higher values feel smoother, if supported by your monitor), 0 uses the default"} |
cvar_t | vid_resizable = {CF_CLIENT | CF_ARCHIVE, "vid_resizable", "1", "0: window not resizable, 1: resizable, 2: window can be resized but the framebuffer isn't adjusted" } |
cvar_t | vid_samples = {CF_CLIENT | CF_ARCHIVE, "vid_samples", "1", "how many anti-aliasing samples per pixel to request from the graphics driver (4 is recommended, 1 is faster)"} |
cvar_t | vid_sRGB = {CF_CLIENT | CF_ARCHIVE, "vid_sRGB", "0", "if hardware is capable, modify rendering to be gamma corrected for the sRGB color standard (computer monitors, TVs), recommended"} |
cvar_t | vid_sRGB_fallback = {CF_CLIENT | CF_ARCHIVE, "vid_sRGB_fallback", "0", "do an approximate sRGB fallback if not properly supported by hardware (2: also use the fallback if framebuffer is 8bit, 3: always use the fallback even if sRGB is supported)"} |
cvar_t | vid_stereobuffer = {CF_CLIENT | CF_ARCHIVE, "vid_stereobuffer", "0", "enables 'quad-buffered' stereo rendering for stereo shutterglasses, HMD (head mounted display) devices, or polarized stereo LCDs, if supported by your drivers"} |
cvar_t | vid_stick_mouse = {CF_CLIENT | CF_ARCHIVE, "vid_stick_mouse", "0", "have the mouse stuck in the center of the screen" } |
cvar_t | vid_touchscreen = {CF_CLIENT, "vid_touchscreen", "0", "Use touchscreen-style input (no mouse grab, track mouse motion only while button is down, screen areas for mimicing joystick axes and buttons"} |
cvar_t | vid_touchscreen_density = {CF_CLIENT, "vid_touchscreen_density", "2.0", "Standard quantized screen density multiplier (see Android documentation for DisplayMetrics), similar values are given on iPhoneOS"} |
cvar_t | vid_touchscreen_showkeyboard = {CF_CLIENT, "vid_touchscreen_showkeyboard", "0", "shows the platform's screen keyboard for text entry, can be set by csqc or menu qc if it wants to receive text input, does nothing if the platform has no screen keyboard"} |
cvar_t | vid_touchscreen_supportshowkeyboard = {CF_CLIENT | CF_READONLY, "vid_touchscreen_supportshowkeyboard", "0", "indicates if the platform supports a virtual keyboard"} |
cvar_t | vid_touchscreen_xdpi = {CF_CLIENT, "vid_touchscreen_xdpi", "300", "Horizontal DPI of the screen (only valid on Android currently)"} |
cvar_t | vid_touchscreen_ydpi = {CF_CLIENT, "vid_touchscreen_ydpi", "300", "Vertical DPI of the screen (only valid on Android currently)"} |
cvar_t | vid_vsync = {CF_CLIENT | CF_ARCHIVE, "vid_vsync", "0", "sync to vertical blank, prevents 'tearing' (seeing part of one frame and part of another on the screen at the same time) at the cost of latency, >= 1 always syncs and <= -1 is adaptive (stops syncing if the framerate drops, unsupported by some platforms), automatically disabled when doing timedemo benchmarks"} |
cvar_t | vid_width = {CF_CLIENT | CF_ARCHIVE, "vid_width", "640", "resolution"} |
static struct vidfallback_s | vidfallbacks [] |
GLubyte GLubyte GLubyte GLubyte | w |
GLenum GLsizei | width |
GLint GLenum GLint | x |
GLint GLint | xoffset |
GLint GLenum GLint GLint | y |
GLint GLint GLint | yoffset |
GLubyte GLubyte GLubyte | z |
GLenum | zfail |
GLint GLint GLint GLint | zoffset |
GLenum GLenum | zpass |
#define BOUNDCVAR | ( | cvar, | |
m1, | |||
m2 ) |
Referenced by VID_UpdateGamma().
#define GAMMACHECK | ( | cache, | |
value ) |
Referenced by VID_UpdateGamma().
|
static |
Definition at line 1091 of file vid_shared.c.
References cl, PITCH, and client_state_t::viewangles.
Referenced by VID_Shared_Init().
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().
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().
GLboolean | ( | GLAPIENTRY * | qglIsBuffer | ) |
GLenum | ( | GLAPIENTRY * | qglCheckFramebufferStatus | ) |
GLint | ( | GLAPIENTRY * | qglGetAttribLocation | ) |
GLuint | ( | GLAPIENTRY * | qglCreateProgram | ) |
GLvoid | ( | GLAPIENTRY * | qglBindFramebuffer | ) |
const GLubyte *GLAPIENTRY * qglGetString | ( | GLenum | name | ) |
Referenced by GL_Setup().
const GLubyte *GLAPIENTRY * qglGetStringi | ( | GLenum | name, |
GLuint | index ) |
Referenced by GL_Setup().
GLvoid *GLAPIENTRY * qglMapBuffer | ( | GLenum | target, |
GLenum | access ) |
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().
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 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 | fsensitivity, | ||
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().
|
static |
Definition at line 946 of file vid_shared.c.
References host, Key_Event(), and host_static_t::realtime.
Referenced by VID_ApplyJoyState().
|
static |
NULL mode means read it from the cvars.
Definition at line 1388 of file vid_shared.c.
References viddef_mode_t::bitsperpixel, cl_ignoremousemoves, Con_Printf(), viddef_mode_t::desktopfullscreen, viddef_mode_t::display, viddef_mode_t::fullscreen, GL_STEREO, viddef_mode_t::height, in_windowmouse_x, in_windowmouse_y, cvar_t::integer, max, mode, viddef_t::mode, r_viewfbo, viddef_mode_t::refreshrate, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, viddef_t::sRGB2D, viddef_t::sRGB3D, viddef_t::sRGBcapable2D, viddef_t::sRGBcapable3D, viddef_mode_t::stereobuffer, va(), cvar_t::value, vid, vid_bitsperpixel, VID_ClearExtensions(), vid_desktopfullscreen, vid_display, vid_fullscreen, vid_height, VID_InitMode(), vid_refreshrate, vid_sRGB, vid_sRGB_fallback, vid_stereobuffer, vid_touchscreen, vid_width, and viddef_mode_t::width.
Referenced by VID_Restart_f(), and VID_Start().
void VID_Restart_f | ( | cmd_state_t * | cmd | ) |
Definition at line 1467 of file vid_shared.c.
References viddef_mode_t::bitsperpixel, CON_ERROR, Con_Print(), Con_Printf(), Cvar_SetValueQuick(), viddef_mode_t::desktopfullscreen, viddef_mode_t::display, viddef_mode_t::fullscreen, viddef_mode_t::height, cvar_t::integer, Key_ReleaseAll(), viddef_t::mode, NULL, R_Modules_Shutdown(), R_Modules_Start(), viddef_mode_t::refreshrate, SCR_DeferLoadingPlaque(), viddef_mode_t::stereobuffer, Sys_Error(), va(), cvar_t::value, vid, vid_bitsperpixel, vid_commandlinecheck, vid_desktopfullscreen, vid_display, vid_fullscreen, vid_height, VID_Mode(), vid_refreshrate, VID_Shutdown(), vid_stereobuffer, vid_width, and viddef_mode_t::width.
Referenced by VID_Shared_Init().
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().
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 1597 of file vid_shared.c.
Referenced by VID_SortModes().
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().
void | ( | GLAPIENTRY * | qglActiveTexture | ) |
Definition at line 247 of file vid_shared.c.
GLuint* arrays |
Definition at line 268 of file vid_shared.c.
GLuint attachedObj |
Definition at line 273 of file vid_shared.c.
GLenum attachment |
Definition at line 216 of file vid_shared.c.
Definition at line 247 of file vid_shared.c.
Definition at line 235 of file vid_shared.c.
GLuint* buffers |
Definition at line 263 of file vid_shared.c.
const GLenum* bufs |
Definition at line 278 of file vid_shared.c.
Definition at line 209 of file vid_shared.c.
|
static |
Definition at line 1097 of file vid_shared.c.
Referenced by VID_ApplyGammaToColor(), VID_BuildGammaTables(), and VID_UpdateGamma().
|
static |
Definition at line 1097 of file vid_shared.c.
Referenced by VID_ApplyGammaToColor(), VID_BuildGammaTables(), and VID_UpdateGamma().
|
static |
Definition at line 1098 of file vid_shared.c.
Referenced by VID_ApplyGammaToColor(), VID_BuildGammaTables(), and VID_UpdateGamma().
|
static |
Definition at line 1097 of file vid_shared.c.
Referenced by VID_ApplyGammaToColor(), VID_BuildGammaTables(), and VID_UpdateGamma().
|
static |
Definition at line 1097 of file vid_shared.c.
Referenced by VID_ApplyGammaToColor(), VID_BuildGammaTables(), and VID_UpdateGamma().
|
static |
Definition at line 1097 of file vid_shared.c.
Referenced by VID_ApplyGammaToColor(), VID_BuildGammaTables(), and VID_UpdateGamma().
|
static |
Definition at line 1097 of file vid_shared.c.
Referenced by VID_ApplyGammaToColor(), VID_BuildGammaTables(), and VID_UpdateGamma().
|
static |
Definition at line 1097 of file vid_shared.c.
Referenced by VID_ApplyGammaToColor(), VID_BuildGammaTables(), and VID_UpdateGamma().
GLsizei count |
Definition at line 261 of file vid_shared.c.
Referenced by VID_SortModes().
Definition at line 244 of file vid_shared.c.
GLenum dfactor |
Definition at line 242 of file vid_shared.c.
Definition at line 243 of file vid_shared.c.
GLenum dfactorRGB |
Definition at line 243 of file vid_shared.c.
GLclampf far_val |
Definition at line 271 of file vid_shared.c.
Definition at line 213 of file vid_shared.c.
GLint first |
Definition at line 276 of file vid_shared.c.
Definition at line 254 of file vid_shared.c.
GLuint framebuffer |
Definition at line 211 of file vid_shared.c.
GLuint* framebuffers |
Definition at line 214 of file vid_shared.c.
Definition at line 1096 of file vid_shared.c.
Referenced by VID_BuildGammaTables().
cvar_t gl_finish = {CF_CLIENT | CF_CLIENT, "gl_finish", "0", "make the cpu wait for the graphics processor at the end of each rendered frame (can help with strange input or video lag problems on some machines)"} |
cvar_t gl_info_driver = {CF_CLIENT | CF_READONLY, "gl_info_driver", "", "name of driver library (opengl32.dll, libGL.so.1, or whatever)."} |
Definition at line 132 of file vid_shared.c.
Referenced by VID_InitModeGL(), and VID_Shared_Init().
cvar_t gl_info_extensions = {CF_CLIENT | CF_READONLY, "gl_info_extensions", "", "indicates extension list found by engine, space separated."} |
Definition at line 131 of file vid_shared.c.
Referenced by GL_CheckExtension(), VID_ClearExtensions(), and VID_Shared_Init().
cvar_t gl_info_renderer = {CF_CLIENT | CF_READONLY, "gl_info_renderer", "", "indicates graphics chip model and other information"} |
Definition at line 129 of file vid_shared.c.
Referenced by VID_InitModeGL(), and VID_Shared_Init().
cvar_t gl_info_vendor = {CF_CLIENT | CF_READONLY, "gl_info_vendor", "", "indicates brand of graphics chip"} |
cvar_t gl_info_version = {CF_CLIENT | CF_READONLY, "gl_info_version", "", "indicates version of current renderer. begins with 1.0.0, 1.1.0, 1.2.0, 1.3.1 etc."} |
Definition at line 130 of file vid_shared.c.
Referenced by VID_InitModeGL(), and VID_Shared_Init().
const char* gl_renderer |
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().
const char* gl_vendor |
brand of graphics chip
Definition at line 190 of file vid_shared.c.
Referenced by GL_Setup(), R_Shadow_SetShadowMode(), and VID_InitModeGL().
const char* gl_version |
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().
GLboolean green |
Definition at line 247 of file vid_shared.c.
Definition at line 226 of file vid_shared.c.
Referenced by VID_SortModes(), and VID_Start().
Definition at line 262 of file vid_shared.c.
GLuint* ids |
Definition at line 209 of file vid_shared.c.
Definition at line 252 of file vid_shared.c.
Definition at line 297 of file vid_shared.c.
Definition at line 67 of file vid_shared.c.
Referenced by MP_Init(), Sys_SDL_HandleEvents(), VM_M_getmousepos(), VM_M_getmousetarget(), and VM_M_setmousetarget().
float in_mouse_x |
Definition at line 70 of file vid_shared.c.
Referenced by CL_Frame(), CL_Input(), IN_Move(), VM_CL_getmousepos(), and VM_M_getmousepos().
float in_mouse_y |
Definition at line 70 of file vid_shared.c.
float in_windowmouse_x |
Definition at line 71 of file vid_shared.c.
Referenced by CL_Input(), IN_Move(), IN_Move_TouchScreen_Quake(), IN_Move_TouchScreen_SteelStorm(), VID_Mode(), VID_TouchscreenCursor(), VM_CL_getmousepos(), and VM_M_getmousepos().
float in_windowmouse_y |
Definition at line 71 of file vid_shared.c.
Referenced by VID_Mode().
GLuint index |
Definition at line 234 of file vid_shared.c.
Referenced by VID_Shared_SetJoystick().
Definition at line 279 of file vid_shared.c.
Definition at line 303 of file vid_shared.c.
Definition at line 337 of file vid_shared.c.
Definition at line 226 of file vid_shared.c.
GLboolean invert |
Definition at line 331 of file vid_shared.c.
cvar_t joy_active = {CF_CLIENT | CF_READONLY, "joy_active", "0", "indicates that a joystick is active (detected and enabled)"} |
Definition at line 84 of file vid_shared.c.
Referenced by VID_EnableJoystick(), and VID_Shared_Init().
cvar_t joy_axisforward = {CF_CLIENT, "joy_axisforward", "1", "which joystick axis to query for forward/backward movement"} |
Definition at line 88 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), VID_Shared_BuildJoyState_Finish(), and VID_Shared_Init().
cvar_t joy_axiskeyevents = {CF_CLIENT | CF_ARCHIVE, "joy_axiskeyevents", "0", "generate uparrow/leftarrow etc. keyevents for joystick axes, use if your joystick driver is not generating them"} |
Definition at line 106 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), VID_JoyBlockEmulatedKeys(), and VID_Shared_Init().
cvar_t joy_axiskeyevents_deadzone = {CF_CLIENT | CF_ARCHIVE, "joy_axiskeyevents_deadzone", "0.5", "deadzone value for axes"} |
Definition at line 107 of file vid_shared.c.
Referenced by VID_Shared_BuildJoyState_Finish(), and VID_Shared_Init().
cvar_t joy_axispitch = {CF_CLIENT, "joy_axispitch", "3", "which joystick axis to query for looking up/down"} |
Definition at line 91 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
cvar_t joy_axisroll = {CF_CLIENT, "joy_axisroll", "-1", "which joystick axis to query for tilting head right/left"} |
Definition at line 93 of file vid_shared.c.
cvar_t joy_axisside = {CF_CLIENT, "joy_axisside", "0", "which joystick axis to query for right/left movement"} |
Definition at line 89 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), VID_Shared_BuildJoyState_Finish(), and VID_Shared_Init().
cvar_t joy_axisup = {CF_CLIENT, "joy_axisup", "-1", "which joystick axis to query for up/down movement"} |
Definition at line 90 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
cvar_t joy_axisyaw = {CF_CLIENT, "joy_axisyaw", "2", "which joystick axis to query for looking right/left"} |
Definition at line 92 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
cvar_t joy_deadzoneforward = {CF_CLIENT, "joy_deadzoneforward", "0", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
Definition at line 94 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
cvar_t joy_deadzonepitch = {CF_CLIENT, "joy_deadzonepitch", "0", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
Definition at line 97 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
cvar_t joy_deadzoneroll = {CF_CLIENT, "joy_deadzoneroll", "0", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
Definition at line 99 of file vid_shared.c.
cvar_t joy_deadzoneside = {CF_CLIENT, "joy_deadzoneside", "0", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
Definition at line 95 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
cvar_t joy_deadzoneup = {CF_CLIENT, "joy_deadzoneup", "0", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
Definition at line 96 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
cvar_t joy_deadzoneyaw = {CF_CLIENT, "joy_deadzoneyaw", "0", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
Definition at line 98 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
cvar_t joy_detected = {CF_CLIENT | CF_READONLY, "joy_detected", "0", "number of joysticks detected by engine"} |
Definition at line 85 of file vid_shared.c.
Referenced by VID_EnableJoystick(), and VID_Shared_Init().
cvar_t joy_enable = {CF_CLIENT | CF_ARCHIVE, "joy_enable", "0", "enables joystick support"} |
Definition at line 86 of file vid_shared.c.
Referenced by VID_EnableJoystick(), and VID_Shared_Init().
cvar_t joy_index = {CF_CLIENT, "joy_index", "0", "selects which joystick to use if you have multiple (0 uses the first controller, 1 uses the second, ...)"} |
Definition at line 87 of file vid_shared.c.
Referenced by VID_EnableJoystick(), and VID_Shared_Init().
Definition at line 100 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), VID_Shared_BuildJoyState_Finish(), and VID_Shared_Init().
Definition at line 103 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
Definition at line 105 of file vid_shared.c.
Definition at line 101 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), VID_Shared_BuildJoyState_Finish(), and VID_Shared_Init().
Definition at line 102 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
Definition at line 104 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
cvar_t joy_x360_axisforward = {CF_CLIENT, "joy_x360_axisforward", "1", "which joystick axis to query for forward/backward movement"} |
Definition at line 108 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
cvar_t joy_x360_axispitch = {CF_CLIENT, "joy_x360_axispitch", "3", "which joystick axis to query for looking up/down"} |
Definition at line 111 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
cvar_t joy_x360_axisroll = {CF_CLIENT, "joy_x360_axisroll", "-1", "which joystick axis to query for tilting head right/left"} |
Definition at line 113 of file vid_shared.c.
cvar_t joy_x360_axisside = {CF_CLIENT, "joy_x360_axisside", "0", "which joystick axis to query for right/left movement"} |
Definition at line 109 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
cvar_t joy_x360_axisup = {CF_CLIENT, "joy_x360_axisup", "-1", "which joystick axis to query for up/down movement"} |
Definition at line 110 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
cvar_t joy_x360_axisyaw = {CF_CLIENT, "joy_x360_axisyaw", "2", "which joystick axis to query for looking right/left"} |
Definition at line 112 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
cvar_t joy_x360_deadzoneforward = {CF_CLIENT, "joy_x360_deadzoneforward", "0.266", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
Definition at line 114 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
cvar_t joy_x360_deadzonepitch = {CF_CLIENT, "joy_x360_deadzonepitch", "0.266", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
Definition at line 117 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
cvar_t joy_x360_deadzoneroll = {CF_CLIENT, "joy_x360_deadzoneroll", "0.266", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
Definition at line 119 of file vid_shared.c.
cvar_t joy_x360_deadzoneside = {CF_CLIENT, "joy_x360_deadzoneside", "0.266", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
Definition at line 115 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
cvar_t joy_x360_deadzoneup = {CF_CLIENT, "joy_x360_deadzoneup", "0.266", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
Definition at line 116 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
cvar_t joy_x360_deadzoneyaw = {CF_CLIENT, "joy_x360_deadzoneyaw", "0.266", "deadzone tolerance, suggested values are in the range 0 to 0.01"} |
Definition at line 118 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
cvar_t joy_x360_sensitivityforward = {CF_CLIENT, "joy_x360_sensitivityforward", "1", "movement multiplier"} |
Definition at line 120 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
cvar_t joy_x360_sensitivitypitch = {CF_CLIENT, "joy_x360_sensitivitypitch", "-1", "movement multiplier"} |
Definition at line 123 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
cvar_t joy_x360_sensitivityroll = {CF_CLIENT, "joy_x360_sensitivityroll", "1", "movement multiplier"} |
Definition at line 125 of file vid_shared.c.
cvar_t joy_x360_sensitivityside = {CF_CLIENT, "joy_x360_sensitivityside", "1", "movement multiplier"} |
Definition at line 121 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
Definition at line 122 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
cvar_t joy_x360_sensitivityyaw = {CF_CLIENT, "joy_x360_sensitivityyaw", "-1", "movement multiplier"} |
Definition at line 124 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_Shared_Init().
|
static |
Definition at line 977 of file vid_shared.c.
Referenced by VID_ApplyJoyState().
|
static |
Definition at line 984 of file vid_shared.c.
Referenced by VID_ApplyJoyState().
Definition at line 262 of file vid_shared.c.
GLint level |
Definition at line 217 of file vid_shared.c.
GLint location |
Definition at line 317 of file vid_shared.c.
GLint lod |
Definition at line 297 of file vid_shared.c.
Definition at line 213 of file vid_shared.c.
GLsizei maxCount |
Definition at line 295 of file vid_shared.c.
GLsizei maxLength |
Definition at line 289 of file vid_shared.c.
Definition at line 209 of file vid_shared.c.
GLenum mode |
Definition at line 323 of file vid_shared.c.
Referenced by VID_Mode().
Definition at line 205 of file vid_shared.c.
Referenced by GL_CheckExtension().
Definition at line 402 of file vid_shared.c.
Definition at line 232 of file vid_shared.c.
GLintptr offset |
Definition at line 237 of file vid_shared.c.
|
static |
Definition at line 420 of file vid_shared.c.
Referenced by GL_CheckExtension(), and GL_InitFunctions().
Definition at line 325 of file vid_shared.c.
Definition at line 224 of file vid_shared.c.
Definition at line 311 of file vid_shared.c.
GLenum pname |
Definition at line 224 of file vid_shared.c.
GLuint qid |
Definition at line 233 of file vid_shared.c.
GLint ref |
Definition at line 334 of file vid_shared.c.
Definition at line 212 of file vid_shared.c.
GLuint* renderbuffers |
Definition at line 215 of file vid_shared.c.
Definition at line 216 of file vid_shared.c.
GLsizei samples |
Definition at line 227 of file vid_shared.c.
Referenced by GL_Setup().
Definition at line 261 of file vid_shared.c.
Definition at line 243 of file vid_shared.c.
GLint size |
Definition at line 237 of file vid_shared.c.
Definition at line 309 of file vid_shared.c.
Definition at line 209 of file vid_shared.c.
Definition at line 213 of file vid_shared.c.
GLint srcY0 |
Definition at line 213 of file vid_shared.c.
Definition at line 213 of file vid_shared.c.
Definition at line 333 of file vid_shared.c.
Definition at line 217 of file vid_shared.c.
GLuint texture |
Definition at line 217 of file vid_shared.c.
GLuint* textures |
Definition at line 267 of file vid_shared.c.
Definition at line 361 of file vid_shared.c.
Definition at line 261 of file vid_shared.c.
Definition at line 209 of file vid_shared.c.
Definition at line 360 of file vid_shared.c.
GLuint uniformBlockIndex |
Definition at line 291 of file vid_shared.c.
Definition at line 210 of file vid_shared.c.
GLsizei uniformCount |
Definition at line 294 of file vid_shared.c.
GLuint uniformIndex |
Definition at line 293 of file vid_shared.c.
Definition at line 294 of file vid_shared.c.
Definition at line 293 of file vid_shared.c.
GLsizei const char** uniformNames |
Definition at line 316 of file vid_shared.c.
GLfloat units |
Definition at line 328 of file vid_shared.c.
GLsizeiptr const GLvoid GLenum usage |
Definition at line 244 of file vid_shared.c.
const GLvoid* userParam |
Definition at line 260 of file vid_shared.c.
const GLushort* v |
Definition at line 367 of file vid_shared.c.
GLshort v0 |
Definition at line 344 of file vid_shared.c.
Definition at line 348 of file vid_shared.c.
Definition at line 352 of file vid_shared.c.
cvar_t v_brightness = {CF_CLIENT | CF_ARCHIVE, "v_brightness", "0", "brightness of black, useful for monitors that are too dark"} |
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().
cvar_t v_color_black_b = {CF_CLIENT | CF_ARCHIVE, "v_color_black_b", "0", "desired color of black"} |
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().
cvar_t v_color_black_g = {CF_CLIENT | CF_ARCHIVE, "v_color_black_g", "0", "desired color of black"} |
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().
cvar_t v_color_black_r = {CF_CLIENT | CF_ARCHIVE, "v_color_black_r", "0", "desired color of black"} |
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().
cvar_t v_color_enable = {CF_CLIENT | CF_ARCHIVE, "v_color_enable", "0", "enables black-grey-white color correction curve controls"} |
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().
cvar_t v_color_grey_b = {CF_CLIENT | CF_ARCHIVE, "v_color_grey_b", "0.5", "desired color of grey"} |
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().
cvar_t v_color_grey_g = {CF_CLIENT | CF_ARCHIVE, "v_color_grey_g", "0.5", "desired color of grey"} |
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().
cvar_t v_color_grey_r = {CF_CLIENT | CF_ARCHIVE, "v_color_grey_r", "0.5", "desired color of grey"} |
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().
cvar_t v_color_white_b = {CF_CLIENT | CF_ARCHIVE, "v_color_white_b", "1", "desired color of white"} |
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().
cvar_t v_color_white_g = {CF_CLIENT | CF_ARCHIVE, "v_color_white_g", "1", "desired color of white"} |
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().
cvar_t v_color_white_r = {CF_CLIENT | CF_ARCHIVE, "v_color_white_r", "1", "desired color of white"} |
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().
cvar_t v_contrast = {CF_CLIENT | CF_ARCHIVE, "v_contrast", "1", "brightness of white (values above 1 give a brighter image with increased color saturation, unlike v_gamma)"} |
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().
cvar_t v_contrastboost = {CF_CLIENT | CF_ARCHIVE, "v_contrastboost", "1", "by how much to multiply the contrast in dark areas (1 is no change)"} |
Definition at line 175 of file vid_shared.c.
Referenced by VID_Shared_Init(), and VID_UpdateGamma().
cvar_t v_gamma = {CF_CLIENT | CF_ARCHIVE, "v_gamma", "1", "inverse gamma correction value, a brightness effect that does not affect white or black, and tends to make the image grey and dull"} |
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().
cvar_t v_glslgamma_2d = {CF_CLIENT | CF_ARCHIVE, "v_glslgamma_2d", "1", "applies GLSL gamma to 2d pictures (HUD, fonts)"} |
Definition at line 186 of file vid_shared.c.
Referenced by R_SetupShader_Generic(), and VID_Shared_Init().
cvar_t v_psycho = {CF_CLIENT, "v_psycho", "0", "easter egg - R.I.P. zinx http://obits.al.com/obituaries/birmingham/obituary.aspx?n=christopher-robert-lais&pid=186080667"} |
Definition at line 187 of file vid_shared.c.
Referenced by VID_BuildGammaTables(), VID_Shared_Init(), and VID_UpdateGamma().
Definition at line 345 of file vid_shared.c.
Referenced by VID_JoyState_GetAxis().
viddef_t vid |
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().
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().
cvar_t vid_bitsperpixel = {CF_CLIENT | CF_READONLY, "vid_bitsperpixel", "32", "how many bits per pixel to render at (this is not currently configurable)"} |
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().
cvar_t vid_borderless = {CF_CLIENT | CF_ARCHIVE, "vid_borderless", "0", "make the window borderless by removing all window decorations. has no effect in fullscreen mode"} |
Definition at line 135 of file vid_shared.c.
Referenced by VID_ApplyDisplayMode(), VID_Init(), VID_InitModeGL(), VID_Shared_Init(), and VID_Start().
Definition at line 1464 of file vid_shared.c.
Referenced by VID_Restart_f(), and VID_Start().
cvar_t vid_desktopfullscreen = {CF_CLIENT | CF_ARCHIVE, "vid_desktopfullscreen", "1", "force desktop resolution and refresh rate (disable modesetting), also use some OS-dependent tricks for better fullscreen integration; disabling may reveal OS/driver/SDL bugs with multi-monitor configurations"} |
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().
cvar_t vid_display = {CF_CLIENT | CF_ARCHIVE, "vid_display", "0", "which monitor to render on, numbered from 0 (system default)" } |
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().
cvar_t vid_fullscreen = {CF_CLIENT | CF_ARCHIVE, "vid_fullscreen", "1", "use fullscreen (1) or windowed (0)"} |
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().
unsigned int vid_gammatables_serial = 0 |
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().
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().
cvar_t vid_grabkeyboard = {CF_CLIENT | CF_ARCHIVE, "vid_grabkeyboard", "0", "whether to grab the keyboard when mouse is active (prevents use of volume control keys, music player keys, etc on some keyboards)"} |
Definition at line 153 of file vid_shared.c.
Referenced by VID_Shared_Init().
cvar_t vid_height = {CF_CLIENT | CF_ARCHIVE, "vid_height", "480", "resolution"} |
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().
Definition at line 74 of file vid_shared.c.
Referenced by CL_UpdateScreen(), S_Update(), Sys_SDL_HandleEvents(), VID_Finish(), and VID_InitModeGL().
cvar_t vid_info_displaycount = {CF_CLIENT | CF_READONLY, "vid_info_displaycount", "1", "how many monitors are currently available, updated by hotplug events" } |
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().
double vid_joybuttontimer[MAXJOYBUTTON] |
Definition at line 1012 of file vid_shared.c.
Referenced by VID_ApplyJoyState().
vid_joystate_t vid_joystate |
Definition at line 79 of file vid_shared.c.
Referenced by VID_ApplyJoyState(), and VID_JoyBlockEmulatedKeys().
cvar_t vid_minheight = {CF_CLIENT, "vid_minheight", "0", "minimum vid_height that is acceptable (to be set in default.cfg in mods)"} |
Definition at line 155 of file vid_shared.c.
Referenced by M_Menu_Video_AdjustSliders(), and VID_Shared_Init().
cvar_t vid_minimize_on_focus_loss = {CF_CLIENT | CF_ARCHIVE, "vid_minimize_on_focus_loss", "0", "whether to minimize the fullscreen window if it loses focus (such as by alt+tab)"} |
Definition at line 152 of file vid_shared.c.
Referenced by VID_Init(), VID_SetHints_c(), and VID_Shared_Init().
cvar_t vid_minwidth = {CF_CLIENT, "vid_minwidth", "0", "minimum vid_width that is acceptable (to be set in default.cfg in mods)"} |
Definition at line 154 of file vid_shared.c.
Referenced by M_Menu_Video_AdjustSliders(), and VID_Shared_Init().
cvar_t vid_mouse = {CF_CLIENT | CF_ARCHIVE, "vid_mouse", "1", "whether to use the mouse in windowed mode (fullscreen always does)"} |
Definition at line 150 of file vid_shared.c.
Referenced by Sys_SDL_HandleEvents(), and VID_Shared_Init().
cvar_t vid_mouse_clickthrough = {CF_CLIENT | CF_ARCHIVE, "vid_mouse_clickthrough", "0", "mouse behavior in windowed mode: 0 = click to focus, 1 = allow interaction even if the window is not focused (click-through behaviour, can be useful when using third-party game overlays)"} |
Definition at line 151 of file vid_shared.c.
Referenced by VID_Init(), VID_SetHints_c(), and VID_Shared_Init().
|
extern |
Definition at line 2785 of file cl_main.c.
Referenced by CL_StartVideo().
cvar_t vid_refreshrate = {CF_CLIENT | CF_ARCHIVE, "vid_refreshrate", "0", "refresh rate to use, in hz (higher values feel smoother, if supported by your monitor), 0 uses the default"} |
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().
cvar_t vid_resizable = {CF_CLIENT | CF_ARCHIVE, "vid_resizable", "1", "0: window not resizable, 1: resizable, 2: window can be resized but the framebuffer isn't adjusted" } |
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().
cvar_t vid_samples = {CF_CLIENT | CF_ARCHIVE, "vid_samples", "1", "how many anti-aliasing samples per pixel to request from the graphics driver (4 is recommended, 1 is faster)"} |
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().
cvar_t vid_sRGB = {CF_CLIENT | CF_ARCHIVE, "vid_sRGB", "0", "if hardware is capable, modify rendering to be gamma corrected for the sRGB color standard (computer monitors, TVs), recommended"} |
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().
cvar_t vid_sRGB_fallback = {CF_CLIENT | CF_ARCHIVE, "vid_sRGB_fallback", "0", "do an approximate sRGB fallback if not properly supported by hardware (2: also use the fallback if framebuffer is 8bit, 3: always use the fallback even if sRGB is supported)"} |
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().
cvar_t vid_stereobuffer = {CF_CLIENT | CF_ARCHIVE, "vid_stereobuffer", "0", "enables 'quad-buffered' stereo rendering for stereo shutterglasses, HMD (head mounted display) devices, or polarized stereo LCDs, if supported by your drivers"} |
Definition at line 141 of file vid_shared.c.
Referenced by VID_Mode(), VID_Restart_f(), and VID_Shared_Init().
cvar_t vid_stick_mouse = {CF_CLIENT | CF_ARCHIVE, "vid_stick_mouse", "0", "have the mouse stuck in the center of the screen" } |
Definition at line 163 of file vid_shared.c.
Referenced by IN_Move(), and VID_Shared_Init().
cvar_t vid_touchscreen = {CF_CLIENT, "vid_touchscreen", "0", "Use touchscreen-style input (no mouse grab, track mouse motion only while button is down, screen areas for mimicing joystick axes and buttons"} |
Definition at line 160 of file vid_shared.c.
Referenced by IN_Move(), Sys_SDL_HandleEvents(), VID_Init(), VID_Mode(), and VID_Shared_Init().
cvar_t vid_touchscreen_density = {CF_CLIENT, "vid_touchscreen_density", "2.0", "Standard quantized screen density multiplier (see Android documentation for DisplayMetrics), similar values are given on iPhoneOS"} |
Definition at line 145 of file vid_shared.c.
Referenced by IN_Move_TouchScreen_SteelStorm(), VID_Shared_Init(), and VID_Start().
cvar_t vid_touchscreen_showkeyboard = {CF_CLIENT, "vid_touchscreen_showkeyboard", "0", "shows the platform's screen keyboard for text entry, can be set by csqc or menu qc if it wants to receive text input, does nothing if the platform has no screen keyboard"} |
Definition at line 161 of file vid_shared.c.
Referenced by IN_Move(), and VID_Shared_Init().
cvar_t vid_touchscreen_supportshowkeyboard = {CF_CLIENT | CF_READONLY, "vid_touchscreen_supportshowkeyboard", "0", "indicates if the platform supports a virtual keyboard"} |
Definition at line 162 of file vid_shared.c.
Referenced by VID_InitMode(), and VID_Shared_Init().
cvar_t vid_touchscreen_xdpi = {CF_CLIENT, "vid_touchscreen_xdpi", "300", "Horizontal DPI of the screen (only valid on Android currently)"} |
Definition at line 146 of file vid_shared.c.
Referenced by VID_Shared_Init(), and VID_Start().
cvar_t vid_touchscreen_ydpi = {CF_CLIENT, "vid_touchscreen_ydpi", "300", "Vertical DPI of the screen (only valid on Android currently)"} |
Definition at line 147 of file vid_shared.c.
Referenced by VID_Shared_Init(), and VID_Start().
cvar_t vid_vsync = {CF_CLIENT | CF_ARCHIVE, "vid_vsync", "0", "sync to vertical blank, prevents 'tearing' (seeing part of one frame and part of another on the screen at the same time) at the cost of latency, >= 1 always syncs and <= -1 is adaptive (stops syncing if the framerate drops, unsupported by some platforms), automatically disabled when doing timedemo benchmarks"} |
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().
cvar_t vid_width = {CF_CLIENT | CF_ARCHIVE, "vid_width", "640", "resolution"} |
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().
|
static |
Definition at line 1521 of file vid_shared.c.
Referenced by VID_Start().
Definition at line 226 of file vid_shared.c.
Referenced by VID_SortModes(), and VID_Start().
GLubyte x |
Definition at line 256 of file vid_shared.c.
Referenced by VID_BuildGammaTables().
Definition at line 254 of file vid_shared.c.
GLint y |
Definition at line 256 of file vid_shared.c.
Referenced by VID_BuildGammaTables().
Definition at line 254 of file vid_shared.c.
Definition at line 387 of file vid_shared.c.
GLenum zfail |
Definition at line 336 of file vid_shared.c.
Definition at line 336 of file vid_shared.c.