UFO: Alien Invasion
r_main.cpp File Reference
#include "r_gl.h"
#include "r_local.h"
#include "r_program.h"
#include "r_sphere.h"
#include "r_draw.h"
#include "r_font.h"
#include "r_light.h"
#include "r_lightmap.h"
#include "r_grass.h"
#include "r_weather.h"
#include "r_main.h"
#include "r_geoscape.h"
#include "r_misc.h"
#include "r_error.h"
#include "../../common/tracing.h"
#include "../ui/ui_windows.h"
#include "../../ports/system.h"
#include "../client.h"
Include dependency graph for r_main.cpp:

Go to the source code of this file.

Macros

#define QGL_EXTERN
 
#define R_CheckGLVersion(max, min)   (r_config.glVersionMajor > max || (r_config.glVersionMajor == max && r_config.glVersionMinor >= min))
 
#define INTEL_TEXTURE_RESOLUTION   1024
 

Functions

static void R_PrintInfo (const char *pre, const char *msg)
 
static void R_Strings_f (void)
 Prints some OpenGL strings. More...
 
void R_SetupFrustum (void)
 
static void R_Clear (void)
 Clears the screens color and depth buffer. More...
 
static void R_ClearScene (void)
 
void R_BeginFrame (void)
 
void R_RenderFrame (void)
 
void R_EndFrame (void)
 
static bool R_CvarCheckMaxLightmap (cvar_t *cvar)
 
static bool R_CvarCheckDynamicLights (cvar_t *cvar)
 
static bool R_CvarPrograms (cvar_t *cvar)
 
static bool R_CvarGLSLVersionCheck (cvar_t *cvar)
 Callback that is called when the r_glsl_version cvar is changed,. More...
 
static bool R_CvarPostProcess (cvar_t *cvar)
 
static bool R_CvarCheckMultisample (cvar_t *cvar)
 
static bool R_CvarCheckWeather (cvar_t *cvar)
 
static void R_UpdateWeather (const char *cvarName, const char *oldValue, const char *newValue, void *data)
 
static void R_RegisterSystemVars (void)
 
static void R_RegisterImageVars (void)
 
static void R_UpdateVidDef (const viddefContext_t *context)
 
bool R_SetMode (void)
 
static uintptr_t R_GetProcAddress (const char *functionName)
 
static uintptr_t R_GetProcAddressExt (const char *functionName)
 
static bool R_CheckExtension (const char *extension)
 Checks for an OpenGL extension that was announced via the OpenGL ext string. If the given extension string includes a placeholder (###), several types are checked. Those from the ARB, those that official extensions (EXT), and those from OpenGL ES (OES) More...
 
static void R_InitExtensions (void)
 Check and load all needed and supported opengl extensions. More...
 
static void R_EnforceVersion (void)
 We need at least opengl version 1.2.1. More...
 
static bool R_SearchForVendor (const char *vendor)
 Searches vendor and renderer GL strings for the given vendor id. More...
 
static void R_VerifyDriver (void)
 Checks whether we have hardware acceleration. More...
 
bool R_Init (void)
 
void R_Shutdown (void)
 

Variables

rendererData_t refdef
 
rconfig_t r_config
 
rstate_t r_state
 
rlocals_t r_locals
 
image_tr_noTexture
 
image_tr_warpTexture
 
image_tr_dummyTexture
 
Weather r_battlescapeWeather
 
static cvar_tr_maxtexres
 
cvar_tr_weather
 
cvar_tr_drawentities
 
cvar_tr_drawworld
 
cvar_tr_nocull
 
cvar_tr_isometric
 
cvar_tr_anisotropic
 
cvar_tr_texture_lod
 
cvar_tr_screenshot_format
 
cvar_tr_screenshot_jpeg_quality
 
cvar_tr_lightmap
 
cvar_tr_debug_normals
 
cvar_tr_debug_tangents
 
cvar_tr_debug_lights
 
static cvar_tr_deluxemap
 
cvar_tr_ext_texture_compression
 
static cvar_tr_ext_s3tc_compression
 
static cvar_tr_ext_nonpoweroftwo
 
static cvar_tr_intel_hack
 
static cvar_tr_texturemode
 
static cvar_tr_texturealphamode
 
static cvar_tr_texturesolidmode
 
cvar_tr_materials
 
cvar_tr_overridematerial
 
cvar_tr_default_specular
 
cvar_tr_default_hardness
 
cvar_tr_checkerror
 
cvar_tr_drawbuffer
 
cvar_tr_driver
 
cvar_tr_shadows
 
cvar_tr_stencilshadows
 
cvar_tr_swapinterval
 
cvar_tr_multisample
 
cvar_tr_wire
 
cvar_tr_showbox
 
cvar_tr_threads
 
cvar_tr_vertexbuffers
 
cvar_tr_warp
 
cvar_tr_dynamic_lights
 
cvar_tr_programs
 
cvar_tr_glsl_version
 The GLSL version being used (not necessarily a supported version by the OpenGL implementation). Stored as a c-string and integer. More...
 
cvar_tr_postprocess
 
cvar_tr_maxlightmap
 
cvar_tr_shownormals
 
cvar_tr_bumpmap
 
cvar_tr_specular
 
cvar_tr_hardness
 
cvar_tr_parallax
 
cvar_tr_fog
 
cvar_tr_flares
 
cvar_tr_coronas
 
cvar_tr_drawtags
 
static const cmdList_t r_commands []
 

Macro Definition Documentation

◆ INTEL_TEXTURE_RESOLUTION

#define INTEL_TEXTURE_RESOLUTION   1024

Definition at line 1217 of file r_main.cpp.

◆ QGL_EXTERN

#define QGL_EXTERN

Definition at line 25 of file r_main.cpp.

◆ R_CheckGLVersion

#define R_CheckGLVersion (   max,
  min 
)    (r_config.glVersionMajor > max || (r_config.glVersionMajor == max && r_config.glVersionMinor >= min))

Definition at line 832 of file r_main.cpp.

Function Documentation

◆ R_BeginFrame()

◆ R_CheckExtension()

static bool R_CheckExtension ( const char *  extension)
inlinestatic

Checks for an OpenGL extension that was announced via the OpenGL ext string. If the given extension string includes a placeholder (###), several types are checked. Those from the ARB, those that official extensions (EXT), and those from OpenGL ES (OES)

Parameters
extensionThe extension string to check. Might also contain placeholders. E.g. "GL_###_framebuffer_object", GL_ARB_framebuffer_object
Returns
true if the extension was announced by the OpenGL driver, false otherwise.

Definition at line 787 of file r_main.cpp.

References Com_Printf(), rconfig_t::extensionsString, i, length, lengthof, Q_strreplace(), and r_config.

Referenced by R_InitExtensions().

◆ R_Clear()

static void R_Clear ( void  )
inlinestatic

Clears the screens color and depth buffer.

Definition at line 192 of file r_main.cpp.

References cvar_t::integer, R_CheckError, and r_stencilshadows.

Referenced by R_BeginFrame().

◆ R_ClearScene()

static void R_ClearScene ( void  )
inlinestatic

◆ R_CvarCheckDynamicLights()

static bool R_CvarCheckDynamicLights ( cvar_t cvar)
static

Definition at line 507 of file r_main.cpp.

References Cvar_AssertValue(), MAX_ENTITY_LIGHTS, rconfig_t::maxLights, and r_config.

Referenced by R_InitExtensions().

◆ R_CvarCheckMaxLightmap()

◆ R_CvarCheckMultisample()

static bool R_CvarCheckMultisample ( cvar_t cvar)
static

Definition at line 556 of file r_main.cpp.

References Cvar_AssertValue().

Referenced by R_RegisterSystemVars().

◆ R_CvarCheckWeather()

static bool R_CvarCheckWeather ( cvar_t cvar)
static

Definition at line 561 of file r_main.cpp.

References Cvar_AssertValue(), Weather::WEATHER_CLEAN, and Weather::WEATHER_MAX.

Referenced by R_RegisterSystemVars().

◆ R_CvarGLSLVersionCheck()

static bool R_CvarGLSLVersionCheck ( cvar_t cvar)
static

Callback that is called when the r_glsl_version cvar is changed,.

Definition at line 530 of file r_main.cpp.

References Cvar_Reset(), rconfig_t::glslVersionMajor, rconfig_t::glslVersionMinor, r_config, and cvar_t::string.

Referenced by R_InitExtensions().

◆ R_CvarPostProcess()

static bool R_CvarPostProcess ( cvar_t cvar)
static

◆ R_CvarPrograms()

static bool R_CvarPrograms ( cvar_t cvar)
static

Definition at line 517 of file r_main.cpp.

References Cvar_AssertValue(), Cvar_SetValue(), and cvar_t::name.

Referenced by R_InitExtensions().

◆ R_EndFrame()

◆ R_EnforceVersion()

static void R_EnforceVersion ( void  )
inlinestatic

We need at least opengl version 1.2.1.

Definition at line 1181 of file r_main.cpp.

References Com_Error(), ERR_FATAL, r_config, and rconfig_t::versionString.

Referenced by R_Init().

◆ R_GetProcAddress()

static uintptr_t R_GetProcAddress ( const char *  functionName)
inlinestatic
Note
SDL_GL_GetProcAddress returns a void*, which is not on all supported platforms the same size as a function pointer. This wrapper is a workaround until SDL is fixed. It is known to produce the "warning: assignment from incompatible pointer type"

Definition at line 752 of file r_main.cpp.

Referenced by R_GetProcAddressExt(), and R_InitExtensions().

◆ R_GetProcAddressExt()

static uintptr_t R_GetProcAddressExt ( const char *  functionName)
static

Definition at line 757 of file r_main.cpp.

References Com_Printf(), i, length, lengthof, Q_strreplace(), and R_GetProcAddress().

Referenced by R_InitExtensions().

◆ R_Init()

◆ R_InitExtensions()

static void R_InitExtensions ( void  )
static

Check and load all needed and supported opengl extensions.

See also
R_Init

Definition at line 838 of file r_main.cpp.

References rconfig_t::anisotropic, Com_Error(), Com_Printf(), CVAR_ARCHIVE, Cvar_Get(), CVAR_R_PROGRAMS, Cvar_SetCheckFunction(), Cvar_SetValue(), rconfig_t::drawBuffers, ERR_FATAL, rconfig_t::extensionsString, rconfig_t::frameBufferObject, GAME_TITLE, rconfig_t::gl_compressed_alpha_format, rconfig_t::gl_compressed_solid_format, GL_MAX_FRAGMENT_UNIFORM_VECTORS, GL_MAX_RENDERBUFFER_SIZE_EXT, GL_MAX_TEXTURE_COORDS, GL_MAX_VARYING_VECTORS, GL_MAX_VERTEX_ATTRIBS, GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB, GL_MAX_VERTEX_UNIFORM_VECTORS, GL_SHADING_LANGUAGE_VERSION, GLenum, glGetError(), rconfig_t::glslVersionMajor, rconfig_t::glslVersionMinor, rconfig_t::glVersionMajor, rconfig_t::glVersionMinor, cvar_t::integer, rconfig_t::lod_bias, rconfig_t::lodDir, rconfig_t::maxAnisotropic, rconfig_t::maxColorAttachments, rconfig_t::maxDrawBuffers, rconfig_t::maxLights, rconfig_t::maxRenderbufferSize, rconfig_t::maxTextureCoords, rconfig_t::maxTextureSize, rconfig_t::maxTextureUnits, rconfig_t::maxVertexAttribs, rconfig_t::maxVertexBufferSize, rconfig_t::maxVertexTextureImageUnits, cvar_t::modified, rconfig_t::nonPowerOfTwo, Q_strncpyz(), r_anisotropic, R_CheckError, R_CheckExtension(), R_CheckGLVersion, r_config, R_CvarCheckDynamicLights(), R_CvarGLSLVersionCheck(), R_CvarPostProcess(), R_CvarPrograms(), r_dynamic_lights, r_ext_nonpoweroftwo, r_ext_s3tc_compression, r_ext_texture_compression, R_GetProcAddress(), R_GetProcAddressExt(), r_glsl_version, R_ImageExists(), r_maxtexres, r_postprocess, r_programs, R_TranslateError(), and rconfig_t::versionString.

Referenced by R_Init().

◆ R_PrintInfo()

static void R_PrintInfo ( const char *  pre,
const char *  msg 
)
static

Definition at line 112 of file r_main.cpp.

References Com_Printf(), i, length, and Q_strncpyz().

Referenced by R_Strings_f().

◆ R_RegisterImageVars()

static void R_RegisterImageVars ( void  )
static
Note
image cvars

Definition at line 642 of file r_main.cpp.

Referenced by R_Init().

◆ R_RegisterSystemVars()

◆ R_RenderFrame()

◆ R_SearchForVendor()

static bool R_SearchForVendor ( const char *  vendor)
static

Searches vendor and renderer GL strings for the given vendor id.

Definition at line 1211 of file r_main.cpp.

References Q_stristr(), r_config, rconfig_t::rendererString, and rconfig_t::vendorString.

Referenced by R_VerifyDriver().

◆ R_SetMode()

◆ R_SetupFrustum()

◆ R_Shutdown()

◆ R_Strings_f()

static void R_Strings_f ( void  )
static

Prints some OpenGL strings.

Definition at line 129 of file r_main.cpp.

References rconfig_t::extensionsString, r_config, R_PrintInfo(), rconfig_t::rendererString, rconfig_t::vendorString, and rconfig_t::versionString.

Referenced by R_Init().

◆ R_UpdateVidDef()

static void R_UpdateVidDef ( const viddefContext_t context)
static

Update the graphical context according to a valid context. All the system is updated according to this new value (viddef and cvars)

Parameters
contextNew graphical context

Definition at line 651 of file r_main.cpp.

References viddef_t::context, Cvar_SetValue(), viddefContext_t::fullscreen, viddefContext_t::height, viddefContext_t::mode, cvar_t::modified, viddefContext_t::multisample, r_multisample, r_swapinterval, viddef_t::rx, viddef_t::ry, viddef_t::stretch, viddefContext_t::swapinterval, vid_fullscreen, vid_mode, VID_NORM_HEIGHT, VID_NORM_WIDTH, vid_stretch, viddef, viddef_t::virtualHeight, viddef_t::virtualWidth, and viddefContext_t::width.

Referenced by R_SetMode().

◆ R_UpdateWeather()

static void R_UpdateWeather ( const char *  cvarName,
const char *  oldValue,
const char *  newValue,
void data 
)
static
Todo:
Some better way?

Definition at line 566 of file r_main.cpp.

References Weather::changeTo(), and r_battlescapeWeather.

Referenced by R_RegisterSystemVars().

◆ R_VerifyDriver()

static void R_VerifyDriver ( void  )
inlinestatic

Variable Documentation

◆ r_anisotropic

cvar_t* r_anisotropic

Definition at line 64 of file r_main.cpp.

Referenced by R_BeginFrame(), R_InitExtensions(), and R_RegisterSystemVars().

◆ r_battlescapeWeather

Weather r_battlescapeWeather

Definition at line 55 of file r_main.cpp.

Referenced by R_Init(), R_RenderFrame(), and R_UpdateWeather().

◆ r_bumpmap

◆ r_checkerror

cvar_t* r_checkerror

Definition at line 84 of file r_main.cpp.

Referenced by R_CheckErrorDebug(), and R_RegisterSystemVars().

◆ r_commands

const cmdList_t r_commands[]
static
Initial value:
= {
{"r_listimages", R_ImageList_f, "Show all loaded images on game console"},
{"r_listfontcache", R_FontListCache_f, "Show information about font cache"},
{"r_screenshot", R_ScreenShot_f, "Take a screenshot"},
{"r_listmodels", R_ModModellist_f, "Show all loaded models on game console"},
{"r_strings", R_Strings_f, "Print openGL vendor and other strings"},
{"r_restartprograms", R_RestartPrograms_f, "Reloads the shaders"},
{nullptr, nullptr, nullptr}
}
void R_FontListCache_f(void)
Console command binding to show the font cache.
Definition: r_font.cpp:228
void R_ImageList_f(void)
Shows all loaded images.
Definition: r_image.cpp:85
static void R_Strings_f(void)
Prints some OpenGL strings.
Definition: r_main.cpp:129
void R_ScreenShot_f(void)
Definition: r_misc.cpp:203
void R_ModModellist_f(void)
Prints all loaded models.
Definition: r_model.cpp:53
void R_RestartPrograms_f(void)
Reloads the glsl shaders.
Definition: r_program.cpp:1058

Definition at line 477 of file r_main.cpp.

Referenced by R_RegisterSystemVars(), and R_Shutdown().

◆ r_config

◆ r_coronas

cvar_t* r_coronas

Definition at line 109 of file r_main.cpp.

Referenced by R_AddCorona(), R_DrawCoronas(), and R_RegisterSystemVars().

◆ r_debug_lights

cvar_t* r_debug_lights

Definition at line 71 of file r_main.cpp.

Referenced by R_DrawAliasModel(), R_RegisterSystemVars(), and R_RenderFrame().

◆ r_debug_normals

cvar_t* r_debug_normals

Definition at line 69 of file r_main.cpp.

Referenced by R_RegisterSystemVars().

◆ r_debug_tangents

cvar_t* r_debug_tangents

Definition at line 70 of file r_main.cpp.

Referenced by R_RegisterSystemVars().

◆ r_default_hardness

cvar_t* r_default_hardness

Definition at line 83 of file r_main.cpp.

Referenced by R_RegisterSystemVars(), and R_UpdateDefaultMaterial().

◆ r_default_specular

cvar_t* r_default_specular

Definition at line 82 of file r_main.cpp.

Referenced by R_RegisterSystemVars(), and R_UpdateDefaultMaterial().

◆ r_deluxemap

cvar_t* r_deluxemap
static

Definition at line 72 of file r_main.cpp.

Referenced by R_RegisterSystemVars().

◆ r_drawbuffer

cvar_t* r_drawbuffer

Definition at line 85 of file r_main.cpp.

Referenced by R_BeginFrame(), and R_RegisterSystemVars().

◆ r_drawentities

cvar_t* r_drawentities

Definition at line 60 of file r_main.cpp.

Referenced by R_GetEntityLists(), and R_RegisterSystemVars().

◆ r_drawtags

cvar_t* r_drawtags

Definition at line 110 of file r_main.cpp.

Referenced by R_DrawAliasModelBuffer(), and R_RegisterSystemVars().

◆ r_drawworld

cvar_t* r_drawworld

Definition at line 61 of file r_main.cpp.

Referenced by R_GetLevelSurfaceLists(), and R_RegisterSystemVars().

◆ r_driver

cvar_t* r_driver

Definition at line 86 of file r_main.cpp.

Referenced by R_RegisterSystemVars(), and Rimp_Init().

◆ r_dummyTexture

image_t* r_dummyTexture

1x1 pixel white texture to be used when texturing is required, but texture is not available

Definition at line 53 of file r_main.cpp.

Referenced by R_InitMiscTexture(), and R_TexOverride().

◆ r_dynamic_lights

◆ r_ext_nonpoweroftwo

cvar_t* r_ext_nonpoweroftwo
static

Definition at line 75 of file r_main.cpp.

Referenced by R_InitExtensions(), and R_RegisterSystemVars().

◆ r_ext_s3tc_compression

cvar_t* r_ext_s3tc_compression
static

Definition at line 74 of file r_main.cpp.

Referenced by R_InitExtensions(), and R_RegisterSystemVars().

◆ r_ext_texture_compression

cvar_t* r_ext_texture_compression

Definition at line 73 of file r_main.cpp.

Referenced by R_InitExtensions(), R_RegisterSystemVars(), and R_SetMode().

◆ r_flares

cvar_t* r_flares

Definition at line 108 of file r_main.cpp.

Referenced by R_DrawFlareSurfaces(), and R_RegisterSystemVars().

◆ r_fog

◆ r_glsl_version

cvar_t* r_glsl_version

The GLSL version being used (not necessarily a supported version by the OpenGL implementation). Stored as a c-string and integer.

Definition at line 99 of file r_main.cpp.

Referenced by R_InitExtensions(), and R_InitializeShader().

◆ r_hardness

cvar_t* r_hardness

Definition at line 105 of file r_main.cpp.

Referenced by R_RegisterSystemVars(), and R_UseMaterial().

◆ r_intel_hack

cvar_t* r_intel_hack
static

Definition at line 76 of file r_main.cpp.

Referenced by R_RegisterSystemVars(), and R_VerifyDriver().

◆ r_isometric

cvar_t* r_isometric

Definition at line 63 of file r_main.cpp.

Referenced by MYgluPerspective(), R_RegisterSystemVars(), and R_SetupFrustum().

◆ r_lightmap

cvar_t* r_lightmap

Definition at line 68 of file r_main.cpp.

Referenced by R_EnableTexture(), and R_RegisterSystemVars().

◆ r_locals

◆ r_materials

cvar_t* r_materials

◆ r_maxlightmap

cvar_t* r_maxlightmap

Definition at line 101 of file r_main.cpp.

Referenced by R_BeginBuildingLightmaps(), and R_RegisterSystemVars().

◆ r_maxtexres

cvar_t* r_maxtexres
static

Definition at line 57 of file r_main.cpp.

Referenced by R_InitExtensions(), R_RegisterSystemVars(), and R_VerifyDriver().

◆ r_multisample

cvar_t* r_multisample

◆ r_nocull

cvar_t* r_nocull

Definition at line 62 of file r_main.cpp.

Referenced by R_CullBox(), R_CullEntity(), R_CullSphere(), and R_RegisterSystemVars().

◆ r_noTexture

image_t* r_noTexture

Definition at line 51 of file r_main.cpp.

◆ r_overridematerial

cvar_t* r_overridematerial

Definition at line 81 of file r_main.cpp.

Referenced by R_LoadMaterials(), and R_RegisterSystemVars().

◆ r_parallax

cvar_t* r_parallax

Definition at line 106 of file r_main.cpp.

Referenced by R_RegisterSystemVars(), and R_UseMaterial().

◆ r_postprocess

◆ r_programs

◆ r_screenshot_format

cvar_t* r_screenshot_format

Definition at line 66 of file r_main.cpp.

Referenced by R_RegisterSystemVars(), and R_ScreenShot().

◆ r_screenshot_jpeg_quality

cvar_t* r_screenshot_jpeg_quality

Definition at line 67 of file r_main.cpp.

Referenced by R_RegisterSystemVars(), and R_ScreenShot().

◆ r_shadows

cvar_t* r_shadows

Definition at line 87 of file r_main.cpp.

Referenced by R_DrawMeshShadow(), and R_RegisterSystemVars().

◆ r_showbox

◆ r_shownormals

cvar_t* r_shownormals

Definition at line 102 of file r_main.cpp.

Referenced by R_DrawBspNormals(), and R_RegisterSystemVars().

◆ r_specular

cvar_t* r_specular

Definition at line 104 of file r_main.cpp.

Referenced by R_RegisterSystemVars(), and R_UseMaterial().

◆ r_state

rstate_t r_state

Definition at line 48 of file r_main.cpp.

Referenced by R_ArraysMask(), R_BindColorAttachments(), R_BindDefaultArray(), R_BindTexture_(), R_BlendFunc(), R_Blur(), R_BlurStack(), R_CreateFramebuffer(), R_Draw2DArray(), R_Draw3DGlobe(), R_DrawAliasModel(), R_DrawAliasStatic(), R_DrawBlendMeshEntities(), R_DrawBloom(), R_DrawBspNormals(), R_DrawCoronas(), R_DrawFlareSurfaces(), R_DrawMaterialSurfaces(), R_DrawMeshShadow(), R_DrawOpaqueMeshEntities(), R_DrawSurfaces(), R_DrawSurfaceStage(), R_EnableAlphaTest(), R_EnableAnimation(), R_EnableBlend(), R_EnableBlur(), R_EnableBumpmap(), R_EnableColorArray(), R_EnableDrawAsGlow(), R_EnableFog(), R_EnableGlowMap(), R_EnableLighting(), R_EnableModelLights(), R_EnableMultisample(), R_EnableRenderbuffer(), R_EnableRoughnessMap(), R_EnableShell(), R_EnableSpecularMap(), R_EnableStencilTest(), R_EnableWarp(), R_FillArrayData(), R_FontDrawTexture(), R_Init(), R_InitFBObjects(), R_InitModelProgram(), R_InitPrograms(), R_InitWarpProgram(), R_InitWorldProgram(), R_LoadProgram(), R_LoadShader(), R_ProgramVariable(), R_ReallocateStateArrays(), R_ReallocateTexunitArray(), R_RenderAlphaTestBspRRefs(), R_RenderBlendBspRRefs(), R_RenderBlendWarpBspRRefs(), R_RenderbufferEnabled(), R_RenderOpaqueBspRRefs(), R_RenderOpaqueWarpBspRRefs(), R_ResetArraysAfterStaticMeshRender(), R_ResetArrayState(), R_SelectTexture(), R_SetDefaultState(), R_SetSurfaceBumpMappingParameters(), R_SetSurfaceStageState(), R_SetSurfaceState(), R_SetVertexArrayState(), R_SetVertexBufferState(), R_ShutdownFBObjects(), R_ShutdownPrograms(), R_StageGlow(), R_StageLighting(), R_TexEnv(), R_UpdateGlowBufferBinding(), R_UseFramebuffer(), R_UseMaterial(), R_UseModelProgram(), R_UseProgram(), R_UseViewport(), R_UseWarpProgram(), R_UseWorldProgram(), CampaignTest::SetUpTestCase(), FootStepTest::SetUpTestCase(), GameTest::SetUpTestCase(), MapDefTest::SetUpTestCase(), MapDefMassRMATest::SetUpTestCase(), MapDefStatsTest::SetUpTestCase(), ParticleTest::SetUpTestCase(), ScriptTest::SetUpTestCase(), and UILevel2Test::SetUpTestCase().

◆ r_stencilshadows

cvar_t* r_stencilshadows

Definition at line 88 of file r_main.cpp.

Referenced by R_Clear(), R_DrawEntityEffects(), R_DrawMeshShadow(), and R_RegisterSystemVars().

◆ r_swapinterval

cvar_t* r_swapinterval

Definition at line 89 of file r_main.cpp.

Referenced by R_RegisterSystemVars(), R_SetMode(), and R_UpdateVidDef().

◆ r_texture_lod

cvar_t* r_texture_lod

Definition at line 65 of file r_main.cpp.

Referenced by R_RegisterSystemVars(), and R_UploadTexture().

◆ r_texturealphamode

cvar_t* r_texturealphamode
static

Definition at line 78 of file r_main.cpp.

Referenced by R_BeginFrame(), and R_RegisterSystemVars().

◆ r_texturemode

cvar_t* r_texturemode
static

Definition at line 77 of file r_main.cpp.

Referenced by R_BeginFrame(), and R_RegisterSystemVars().

◆ r_texturesolidmode

cvar_t* r_texturesolidmode
static

Definition at line 79 of file r_main.cpp.

Referenced by R_BeginFrame(), and R_RegisterSystemVars().

◆ r_threads

cvar_t* r_threads

◆ r_vertexbuffers

cvar_t* r_vertexbuffers

◆ r_warp

cvar_t* r_warp

Definition at line 95 of file r_main.cpp.

Referenced by R_EnableWarp(), and R_RegisterSystemVars().

◆ r_warpTexture

image_t* r_warpTexture

Definition at line 52 of file r_main.cpp.

Referenced by R_EnableWarp(), and R_InitMiscTexture().

◆ r_weather

cvar_t* r_weather

Definition at line 59 of file r_main.cpp.

Referenced by R_RegisterSystemVars().

◆ r_wire

cvar_t* r_wire

◆ refdef

Definition at line 45 of file r_main.cpp.

Referenced by CL_ActorDoShoot(), CL_ActorSelect(), CL_ClearState(), CL_DoEndRound(), CL_GetWorldCoordsUnderMouse(), CL_ParseConfigString(), CL_ParseServerData(), CL_ViewCalcFieldOfViewX(), CL_ViewCalcFieldOfViewY(), CL_ViewLoadMedia(), CL_ViewRender(), CL_ViewUpdateRenderData(), MYgluPerspective(), R_AddCorona(), R_AddEntity(), R_AddLight(), R_AddStaticLight(), R_AddSustainedLight(), R_CalcTransform(), R_CleanupDepthBuffer(), R_ClearScene(), R_ClearStaticLights(), R_CullEntity(), R_Draw2DArray(), R_DrawAliasFrameLerp(), R_DrawAliasModel(), R_DrawAliasModelBuffer(), R_DrawAliasStatic(), R_DrawAliasTags(), R_DrawArrow(), R_DrawBlendMeshEntities(), R_DrawBox(), R_DrawBspNormals(), R_DrawChars(), R_DrawCircle(), R_DrawCoronas(), R_DrawEntityEffects(), R_DrawFills(), R_DrawFlareSurfaces(), R_DrawFlatGeoscape(), R_DrawFloor(), R_DrawGrass(), R_DrawImageArray(), R_DrawMeshModelShell(), R_DrawMeshShadow(), R_DrawModelDirect(), R_DrawModelParticle(), R_DrawNullModel(), R_DrawOpaqueMeshEntities(), R_DrawParticles(), R_DrawPtlLine(), R_DrawQuad(), R_DrawRect(), R_DrawSprite(), R_DrawStarfield(), R_DrawSurfaces(), R_DrawSurfaceStage(), R_EnableFog(), R_EnableModelLights(), R_EnableShell(), R_EnableWorldLights(), R_FontDrawTexture(), R_GetEntity(), R_GetEntityLists(), R_GetFreeEntity(), R_GetLevelOfDetailForModel(), R_GetLevelSurfaceLists(), R_InitModelProgram(), R_InitWarpProgram(), R_InitWorldProgram(), R_RenderFrame(), R_RunThread(), R_Setup2D(), R_Setup3D(), R_SetupFrustum(), R_SphereRender(), R_SphereRenderTris(), R_SpriteTexcoords(), R_StageTexCoord(), R_Trace(), R_UpdateLightList(), R_UpdateMaterial(), R_UpdateShadowOrigin(), R_UpdateSustainedLights(), R_UseModelProgram(), R_UseProgram(), R_UseWarpProgram(), R_UseWorldProgram(), Weather::render(), SCR_TimeRefresh_f(), SCR_UpdateScreen(), SEQ_Render3D(), SP_worldspawn(), and VID_Restart_f().