UFO: Alien Invasion
Loading...
Searching...
No Matches
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)
#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.
void R_SetupFrustum (void)
static void R_Clear (void)
 Clears the screens color and depth buffer.
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,.
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).
static void R_InitExtensions (void)
 Check and load all needed and supported opengl extensions.
static void R_EnforceVersion (void)
 We need at least opengl version 1.2.1.
static bool R_SearchForVendor (const char *vendor)
 Searches vendor and renderer GL strings for the given vendor id.
static void R_VerifyDriver (void)
 Checks whether we have hardware acceleration.
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_t * r_noTexture
image_t * r_warpTexture
image_t * r_dummyTexture
Weather r_battlescapeWeather
static cvar_t * r_maxtexres
cvar_t * r_weather
cvar_t * r_drawentities
cvar_t * r_drawworld
cvar_t * r_nocull
cvar_t * r_isometric
cvar_t * r_anisotropic
cvar_t * r_texture_lod
cvar_t * r_screenshot_format
cvar_t * r_screenshot_jpeg_quality
cvar_t * r_lightmap
cvar_t * r_debug_normals
cvar_t * r_debug_tangents
cvar_t * r_debug_lights
static cvar_t * r_deluxemap
cvar_t * r_ext_texture_compression
static cvar_t * r_ext_s3tc_compression
static cvar_t * r_ext_nonpoweroftwo
static cvar_t * r_intel_hack
static cvar_t * r_texturemode
static cvar_t * r_texturealphamode
static cvar_t * r_texturesolidmode
cvar_t * r_materials
cvar_t * r_overridematerial
cvar_t * r_default_specular
cvar_t * r_default_hardness
cvar_t * r_checkerror
cvar_t * r_drawbuffer
cvar_t * r_driver
cvar_t * r_shadows
cvar_t * r_stencilshadows
cvar_t * r_swapinterval
cvar_t * r_multisample
cvar_t * r_wire
cvar_t * r_showbox
cvar_t * r_threads
cvar_t * r_vertexbuffers
cvar_t * r_warp
cvar_t * r_dynamic_lights
cvar_t * r_programs
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.
cvar_t * r_postprocess
cvar_t * r_maxlightmap
cvar_t * r_shownormals
cvar_t * r_bumpmap
cvar_t * r_specular
cvar_t * r_hardness
cvar_t * r_parallax
cvar_t * r_fog
cvar_t * r_flares
cvar_t * r_coronas
cvar_t * r_drawtags
static const cmdList_t r_commands []

Macro Definition Documentation

◆ INTEL_TEXTURE_RESOLUTION

#define INTEL_TEXTURE_RESOLUTION   1024

Definition at line 1213 of file r_main.cpp.

Referenced by R_VerifyDriver().

◆ QGL_EXTERN

#define QGL_EXTERN

Definition at line 25 of file r_main.cpp.

◆ R_CheckGLVersion

#define R_CheckGLVersion ( max,
min )
Value:
rconfig_t r_config
Definition r_main.cpp:47
int glVersionMinor
Definition r_local.h:162
int glVersionMajor
Definition r_local.h:161

Definition at line 828 of file r_main.cpp.

Referenced by R_InitExtensions().

Function Documentation

◆ R_BeginFrame()

◆ R_CheckExtension()

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 783 of file r_main.cpp.

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

Referenced by R_CheckExtension(), and R_InitExtensions().

◆ R_Clear()

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, R_Clear(), and r_stencilshadows.

Referenced by R_BeginFrame(), and R_Clear().

◆ R_ClearScene()

void R_ClearScene ( void )
inlinestatic

◆ R_CvarCheckDynamicLights()

bool R_CvarCheckDynamicLights ( cvar_t * cvar)
static

◆ R_CvarCheckMaxLightmap()

◆ R_CvarCheckMultisample()

bool R_CvarCheckMultisample ( cvar_t * cvar)
static

Definition at line 548 of file r_main.cpp.

References Cvar_AssertValue(), and R_CvarCheckMultisample().

Referenced by R_CvarCheckMultisample(), and R_RegisterSystemVars().

◆ R_CvarCheckWeather()

bool R_CvarCheckWeather ( cvar_t * cvar)
static

◆ R_CvarGLSLVersionCheck()

bool R_CvarGLSLVersionCheck ( cvar_t * cvar)
static

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

Definition at line 522 of file r_main.cpp.

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

Referenced by R_CvarGLSLVersionCheck(), and R_InitExtensions().

◆ R_CvarPostProcess()

bool R_CvarPostProcess ( cvar_t * cvar)
static

◆ R_CvarPrograms()

bool R_CvarPrograms ( cvar_t * cvar)
static

Definition at line 509 of file r_main.cpp.

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

Referenced by R_CvarPrograms(), and R_InitExtensions().

◆ R_EndFrame()

◆ R_EnforceVersion()

void R_EnforceVersion ( void )
inlinestatic

We need at least opengl version 1.2.1.

Definition at line 1177 of file r_main.cpp.

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

Referenced by R_EnforceVersion(), and R_Init().

◆ R_GetProcAddress()

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 748 of file r_main.cpp.

References R_GetProcAddress().

Referenced by R_GetProcAddress(), R_GetProcAddressExt(), and R_InitExtensions().

◆ R_GetProcAddressExt()

uintptr_t R_GetProcAddressExt ( const char * functionName)
static

◆ R_Init()

◆ R_InitExtensions()

void R_InitExtensions ( void )
static

Check and load all needed and supported opengl extensions.

See also
R_Init

Definition at line 834 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_InitExtensions(), r_maxtexres, r_postprocess, r_programs, R_TranslateError(), and rconfig_t::versionString.

Referenced by R_Init(), and R_InitExtensions().

◆ R_PrintInfo()

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

Definition at line 112 of file r_main.cpp.

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

Referenced by R_PrintInfo(), and R_Strings_f().

◆ R_RegisterImageVars()

void R_RegisterImageVars ( void )
static
Note
image cvars

Definition at line 634 of file r_main.cpp.

References R_RegisterImageVars().

Referenced by R_Init(), and R_RegisterImageVars().

◆ R_RegisterSystemVars()

◆ R_RenderFrame()

◆ R_SearchForVendor()

bool R_SearchForVendor ( const char * vendor)
static

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

Definition at line 1207 of file r_main.cpp.

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

Referenced by R_SearchForVendor(), and R_VerifyDriver().

◆ R_SetMode()

◆ R_SetupFrustum()

◆ R_Shutdown()

◆ R_Strings_f()

void R_Strings_f ( void )
static

◆ R_UpdateVidDef()

void R_UpdateVidDef ( const viddefContext_t * context)
static

◆ R_UpdateWeather()

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

Definition at line 558 of file r_main.cpp.

References Weather::changeTo(), data, r_battlescapeWeather, and R_UpdateWeather().

Referenced by R_RegisterSystemVars(), and R_UpdateWeather().

◆ R_VerifyDriver()

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:226
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 at line 469 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(), MapDefMassRMATest::SetUpTestCase(), MapDefStatsTest::SetUpTestCase(), MapDefTest::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().