UFO: Alien Invasion
|
#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"
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) |
#define INTEL_TEXTURE_RESOLUTION 1024 |
Definition at line 1217 of file r_main.cpp.
Referenced by R_VerifyDriver().
#define QGL_EXTERN |
Definition at line 25 of file r_main.cpp.
#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.
Referenced by R_InitExtensions().
Definition at line 220 of file r_main.cpp.
References Com_IsRenderModified(), Com_Printf(), Com_SetRenderModified(), Cvar_ClearVars(), Cvar_PendingCvars(), CVAR_R_MASK, CVAR_R_PROGRAMS, Cvar_SetValue(), rlocals_s::frame, cvar_s::integer, rconfig_t::maxAnisotropic, cvar_s::modified, Q_strcasecmp, R_CheckError, R_Clear(), R_EnableMultisample(), R_InitThreads(), R_RestartPrograms_f(), R_Setup2D(), R_ShutdownThreads(), R_TextureAlphaMode(), R_TextureMode(), R_TextureSolidMode(), and cvar_s::string.
Referenced by SCR_DrawLoading(), SCR_DrawLoadingScreen(), SCR_TimeRefresh_f(), and SCR_UpdateScreen().
|
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)
extension | The extension string to check. Might also contain placeholders. E.g. "GL_###_framebuffer_object", GL_ARB_framebuffer_object |
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, and Q_strreplace().
Referenced by R_InitExtensions().
Clears the screens color and depth buffer.
Definition at line 192 of file r_main.cpp.
References f, cvar_s::integer, and R_CheckError.
Referenced by R_BeginFrame().
Definition at line 209 of file r_main.cpp.
References rendererData_t::numCoronas, rendererData_t::numDynamicLights, rendererData_t::numEntities, and R_ClearBspRRefs().
Referenced by R_EndFrame().
|
static |
Definition at line 507 of file r_main.cpp.
References Cvar_AssertValue(), MAX_ENTITY_LIGHTS, and rconfig_t::maxLights.
Referenced by R_InitExtensions().
|
static |
Definition at line 488 of file r_main.cpp.
References Com_Printf(), Cvar_AssertValue(), Cvar_SetValue(), cvar_s::integer, LIGHTMAP_DEFAULT_PAGE_SIZE, LIGHTMAP_MAX_PAGE_SIZE, rconfig_t::maxTextureSize, cvar_s::name, and Q_IsPowerOfTwo().
Referenced by R_RegisterSystemVars().
|
static |
Definition at line 556 of file r_main.cpp.
References Cvar_AssertValue().
Referenced by R_RegisterSystemVars().
|
static |
Definition at line 561 of file r_main.cpp.
References Cvar_AssertValue(), Weather::WEATHER_CLEAN, and Weather::WEATHER_MAX.
Referenced by R_RegisterSystemVars().
|
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, and cvar_s::string.
Referenced by R_InitExtensions().
|
static |
Definition at line 547 of file r_main.cpp.
References Cvar_AssertValue(), Cvar_SetValue(), rconfig_t::drawBuffers, rconfig_t::frameBufferObject, and cvar_s::name.
Referenced by R_InitExtensions().
|
static |
Definition at line 517 of file r_main.cpp.
References Cvar_AssertValue(), Cvar_SetValue(), and cvar_s::name.
Referenced by R_InitExtensions().
Definition at line 443 of file r_main.cpp.
References cls, cvar_s::integer, cvar_s::modified, R_ClearScene(), R_Color(), R_DrawChars(), R_EnableBlend(), R_EnableMultisample(), cvar_s::value, vid_gamma, and vid_ignoregamma.
Referenced by SCR_DrawLoading(), SCR_DrawLoadingScreen(), SCR_TimeRefresh_f(), and SCR_UpdateScreen().
We need at least opengl version 1.2.1.
Definition at line 1181 of file r_main.cpp.
References Com_Error(), ERR_FATAL, and rconfig_t::versionString.
Referenced by R_Init().
|
inlinestatic |
Definition at line 752 of file r_main.cpp.
Referenced by R_GetProcAddressExt(), and R_InitExtensions().
|
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().
bool R_Init | ( | void | ) |
Definition at line 1263 of file r_main.cpp.
References Cvar_ClearVars(), CVAR_R_MASK, rconfig_t::extensionsString, rconfig_t::gl_alpha_format, rconfig_t::gl_filter_max, rconfig_t::gl_filter_min, rconfig_t::gl_solid_format, rconfig_t::maxTextureSize, OBJZERO, R_CheckError, R_DrawInitLocal(), R_EnforceVersion(), R_FontInit(), R_InitExtensions(), R_InitFBObjects(), R_InitImages(), R_InitMiscTexture(), R_InitPrograms(), R_ModelInit(), R_RegisterImageVars(), R_RegisterSystemVars(), R_SetDefaultState(), R_SphereInit(), R_Strings_f(), R_UpdateDefaultMaterial(), R_VerifyDriver(), rconfig_t::rendererString, Rimp_Init(), Weather::setDefaults(), rconfig_t::vendorString, and rconfig_t::versionString.
Referenced by VID_Init(), and VID_Restart_f().
Check and load all needed and supported opengl extensions.
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, glGetError(), rconfig_t::glslVersionMajor, rconfig_t::glslVersionMinor, rconfig_t::glVersionMajor, rconfig_t::glVersionMinor, cvar_s::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_s::modified, rconfig_t::nonPowerOfTwo, Q_strncpyz(), R_CheckError, R_CheckExtension(), R_CheckGLVersion, R_CvarCheckDynamicLights(), R_CvarGLSLVersionCheck(), R_CvarPostProcess(), R_CvarPrograms(), R_GetProcAddress(), R_GetProcAddressExt(), R_ImageExists(), R_TranslateError(), and rconfig_t::versionString.
Referenced by R_Init().
|
static |
Definition at line 112 of file r_main.cpp.
References Com_Printf(), i, length, and Q_strncpyz().
Referenced by R_Strings_f().
Definition at line 572 of file r_main.cpp.
References Cmd_TableAddList(), CVAR_ARCHIVE, Cvar_Get(), CVAR_LATCH, CVAR_R_CONTEXT, CVAR_R_IMAGES, CVAR_R_PROGRAMS, Cvar_RegisterChangeListener(), Cvar_SetCheckFunction(), cvar_s::modified, R_CvarCheckMaxLightmap(), R_CvarCheckMultisample(), R_CvarCheckWeather(), r_particles, R_UpdateDefaultMaterial(), and R_UpdateWeather().
Referenced by R_Init().
Definition at line 298 of file r_main.cpp.
References model_s::bsp, cl, light_s::color, rendererData_t::dynamicLights, i, cvar_s::integer, rendererData_t::numDynamicLights, rendererData_t::numStaticLights, light_s::origin, R_AddBspRRef(), R_AddCorona(), r_blend_mesh_entities, R_CheckError, R_Color(), R_DrawBlendMeshEntities(), R_DrawBloom(), R_DrawBoundingBoxes(), R_DrawBspNormals(), R_DrawCoronas(), R_DrawEntityEffects(), R_DrawGrass(), R_DrawNullEntities(), R_DrawOpaqueMeshEntities(), R_DrawParticles(), R_DrawSpecialEntities(), R_EnableBlend(), R_EnableFog(), R_GetEntityLists(), R_GetLevelSurfaceLists(), r_mapTiles, r_null_entities, r_numMapTiles, r_opaque_mesh_entities, R_RenderAlphaTestBspRRefs(), R_RenderBlendBspRRefs(), R_RenderBlendWarpBspRRefs(), R_RenderFlareBspRRefs(), R_RenderMaterialBspRRefs(), R_RenderOpaqueBspRRefs(), R_RenderOpaqueWarpBspRRefs(), R_ResetArrayState(), R_Setup2D(), R_Setup3D(), R_SetupFrustum(), r_special_entities, r_threadstate, R_UpdateSustainedLights(), light_s::radius, RDF_NOWORLDMODEL, Weather::render(), rendererData_t::rendererFlags, renderer_threadstate_s::state, rendererData_t::staticLights, Sys_Sleep(), THREAD_CLIENT, THREAD_RENDERER, clientBattleScape_s::time, Weather::update(), and vec3_origin.
Referenced by CL_ViewRender(), SCR_TimeRefresh_f(), and SEQ_Render3D().
|
static |
Searches vendor and renderer GL strings for the given vendor id.
Definition at line 1211 of file r_main.cpp.
References Q_stristr(), rconfig_t::rendererString, and rconfig_t::vendorString.
Referenced by R_VerifyDriver().
bool R_SetMode | ( | void | ) |
Definition at line 694 of file r_main.cpp.
References Com_Printf(), viddef_t::context, Cvar_Set(), viddefContext_t::fullscreen, viddefContext_t::height, vidmode_s::height, cvar_s::integer, viddefContext_t::mode, cvar_s::modified, viddefContext_t::multisample, R_InitFBObjects(), R_InitGraphics(), R_ShutdownFBObjects(), R_UpdateVidDef(), viddef_t::stretch, viddefContext_t::swapinterval, UI_InvalidateStack(), vid_fullscreen, VID_GetModeInfo(), vid_mode, vid_stretch, viddef, viddefContext_t::width, and vidmode_s::width.
Referenced by Rimp_Init().
Definition at line 137 of file r_main.cpp.
References AngleVectors(), cBspPlane_s::dist, DotProduct, rendererData_t::fieldOfViewX, rendererData_t::fieldOfViewY, rlocals_s::forward, rlocals_s::frustum, i, cvar_s::integer, cBspPlane_s::normal, PLANE_ANYZ, R_CheckError, RDF_NOWORLDMODEL, rendererData_t::rendererFlags, rlocals_s::right, RotatePointAroundVector(), cBspPlane_s::type, rlocals_s::up, VectorScale, viddef, rendererData_t::viewAngles, viddef_t::viewHeight, rendererData_t::viewOrigin, viddef_t::viewWidth, viddef_t::x, and viddef_t::y.
Referenced by R_RenderFrame(), and R_RunThread().
Definition at line 1319 of file r_main.cpp.
References Cmd_TableRemoveList(), R_FontShutdown(), R_ModelShutdown(), R_ShutdownFBObjects(), R_ShutdownImages(), R_ShutdownPrograms(), R_ShutdownThreads(), and Rimp_Shutdown().
Referenced by CL_Shutdown(), and VID_Restart_f().
Prints some OpenGL strings.
Definition at line 129 of file r_main.cpp.
References rconfig_t::extensionsString, R_PrintInfo(), rconfig_t::rendererString, rconfig_t::vendorString, and rconfig_t::versionString.
Referenced by R_Init().
|
static |
Update the graphical context according to a valid context. All the system is updated according to this new value (viddef and cvars)
context | New 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_s::modified, viddefContext_t::multisample, 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().
|
static |
Definition at line 566 of file r_main.cpp.
References Weather::changeTo().
Referenced by R_RegisterSystemVars().
Checks whether we have hardware acceleration.
Definition at line 1222 of file r_main.cpp.
References Com_Error(), Com_Printf(), Cvar_Set(), Cvar_SetValue(), ERR_FATAL, GLHW_ATI, GLHW_GENERIC, GLHW_INTEL, GLHW_MESA, GLHW_NVIDIA, rconfig_t::hardwareType, cvar_s::integer, INTEL_TEXTURE_RESOLUTION, Q_strcasecmp, and R_SearchForVendor().
Referenced by R_Init().
cvar_t* r_anisotropic |
Definition at line 64 of file r_main.cpp.
Weather r_battlescapeWeather |
Definition at line 55 of file r_main.cpp.
cvar_t* r_bumpmap |
Definition at line 103 of file r_main.cpp.
Referenced by R_ArraysMask(), R_EnableBumpmap(), R_SetSurfaceBumpMappingParameters(), and R_UseMaterial().
cvar_t* r_checkerror |
Definition at line 84 of file r_main.cpp.
Referenced by R_CheckErrorDebug().
|
static |
Definition at line 477 of file r_main.cpp.
rconfig_t r_config |
Definition at line 47 of file r_main.cpp.
Referenced by R_BindColorAttachments(), R_CreateFramebuffer(), R_Draw3DGlobe(), R_DrawBloom(), R_EnableRenderbuffer(), R_FontGenerateTexture(), R_GetScaledTextureSize(), R_InitFBObjects(), R_InitializeShader(), R_SelectTexture(), R_SetDefaultState(), R_TextureAlphaMode(), R_TextureMode(), R_TextureSolidMode(), R_UploadAlpha(), R_UploadData(), R_UploadLightmapPage(), R_UploadTexture(), R_UseFramebuffer(), R_UseViewport(), and Rimp_Init().
cvar_t* r_coronas |
Definition at line 109 of file r_main.cpp.
Referenced by R_AddCorona(), and R_DrawCoronas().
cvar_t* r_debug_lights |
Definition at line 71 of file r_main.cpp.
Referenced by R_DrawAliasModel().
cvar_t* r_debug_normals |
Definition at line 69 of file r_main.cpp.
cvar_t* r_debug_tangents |
Definition at line 70 of file r_main.cpp.
cvar_t* r_default_hardness |
Definition at line 83 of file r_main.cpp.
Referenced by R_UpdateDefaultMaterial().
cvar_t* r_default_specular |
Definition at line 82 of file r_main.cpp.
Referenced by R_UpdateDefaultMaterial().
|
static |
Definition at line 72 of file r_main.cpp.
cvar_t* r_drawbuffer |
Definition at line 85 of file r_main.cpp.
cvar_t* r_drawentities |
Definition at line 60 of file r_main.cpp.
Referenced by R_GetEntityLists().
cvar_t* r_drawtags |
Definition at line 110 of file r_main.cpp.
Referenced by R_DrawAliasModelBuffer().
cvar_t* r_drawworld |
Definition at line 61 of file r_main.cpp.
Referenced by R_GetLevelSurfaceLists().
cvar_t* r_driver |
Definition at line 86 of file r_main.cpp.
Referenced by Rimp_Init().
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().
cvar_t* r_dynamic_lights |
Definition at line 96 of file r_main.cpp.
Referenced by R_AddLightToEntity(), R_DisableSpotLight(), R_DrawAliasModel(), R_EnableModelLights(), R_EnableWorldLights(), R_SetupSpotLight(), and R_UpdateLightList().
|
static |
Definition at line 75 of file r_main.cpp.
|
static |
Definition at line 74 of file r_main.cpp.
cvar_t* r_ext_texture_compression |
Definition at line 73 of file r_main.cpp.
cvar_t* r_flares |
Definition at line 108 of file r_main.cpp.
Referenced by R_DrawFlareSurfaces().
cvar_t* r_fog |
Definition at line 107 of file r_main.cpp.
Referenced by R_EnableFog(), R_InitModelProgram(), R_InitWarpProgram(), R_InitWorldProgram(), R_UseModelProgram(), R_UseWarpProgram(), and R_UseWorldProgram().
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_InitializeShader().
cvar_t* r_hardness |
Definition at line 105 of file r_main.cpp.
Referenced by R_UseMaterial().
|
static |
Definition at line 76 of file r_main.cpp.
cvar_t* r_isometric |
Definition at line 63 of file r_main.cpp.
Referenced by MYgluPerspective().
cvar_t* r_lightmap |
Definition at line 68 of file r_main.cpp.
Referenced by R_EnableTexture().
rlocals_t r_locals |
Definition at line 49 of file r_main.cpp.
Referenced by R_AddBspRRef(), R_CullBox(), R_CullMeshModel(), R_CullSphere(), R_DrawBspNormals(), R_DrawCoronas(), R_DrawFlareSurfaces(), R_DrawMaterialSurfaces(), R_DrawSurfaces(), R_EnableModelLights(), R_EnableWorldLights(), R_GetSpriteVectors(), R_InitModelProgram(), R_RecursiveVisibleWorldNode(), R_RecursiveWorldNode(), R_Setup3D(), R_Trace(), R_UpdateLightList(), R_UpdateShadowOrigin(), and R_UseModelProgram().
cvar_t* r_materials |
Definition at line 80 of file r_main.cpp.
Referenced by R_DrawMaterialSurfaces(), R_LoadMaterials(), and R_StageLighting().
cvar_t* r_maxlightmap |
Definition at line 101 of file r_main.cpp.
Referenced by R_BeginBuildingLightmaps().
|
static |
Definition at line 57 of file r_main.cpp.
cvar_t* r_multisample |
Definition at line 90 of file r_main.cpp.
Referenced by R_CreateFramebuffer(), and R_EnableMultisample().
cvar_t* r_nocull |
Definition at line 62 of file r_main.cpp.
Referenced by R_CullBox(), R_CullEntity(), and R_CullSphere().
image_t* r_noTexture |
Definition at line 51 of file r_main.cpp.
cvar_t* r_overridematerial |
Definition at line 81 of file r_main.cpp.
Referenced by R_LoadMaterials().
cvar_t* r_parallax |
Definition at line 106 of file r_main.cpp.
Referenced by R_UseMaterial().
cvar_t* r_postprocess |
Definition at line 100 of file r_main.cpp.
Referenced by R_BindColorAttachments(), R_Draw3DGlobe(), R_DrawBloom(), R_EnableBlur(), R_EnableRenderbuffer(), R_UseFramebuffer(), and R_UseViewport().
cvar_t* r_programs |
Definition at line 97 of file r_main.cpp.
Referenced by R_BindColorAttachments(), R_DisableSpotLight(), R_Draw3DGlobe(), R_DrawBloom(), R_EnableAnimation(), R_EnableBlur(), R_EnableDrawAsGlow(), R_EnableFog(), R_EnableGlowMap(), R_EnableLighting(), R_EnableModelLights(), R_EnableRenderbuffer(), R_EnableSpecularMap(), R_EnableWarp(), R_EnableWorldLights(), R_InitFBObjects(), R_InitModelProgram(), R_InitPrograms(), R_InitWorldProgram(), R_LoadProgram(), R_RestartPrograms_f(), R_SetupSpotLight(), R_ShutdownPrograms(), R_SphereCheckGLSL(), R_UseFramebuffer(), R_UseMaterial(), R_UseViewport(), R_UseWorldProgram(), and SCR_UpdateScreen().
cvar_t* r_screenshot_format |
Definition at line 66 of file r_main.cpp.
Referenced by R_ScreenShot().
cvar_t* r_screenshot_jpeg_quality |
Definition at line 67 of file r_main.cpp.
Referenced by R_ScreenShot().
cvar_t* r_shadows |
Definition at line 87 of file r_main.cpp.
Referenced by R_DrawMeshShadow().
cvar_t* r_showbox |
Definition at line 92 of file r_main.cpp.
Referenced by R_DrawAliasModel(), R_DrawModelDirect(), R_DrawModelParticle(), and R_RenderBspRRefs().
cvar_t* r_shownormals |
Definition at line 102 of file r_main.cpp.
Referenced by R_DrawBspNormals().
cvar_t* r_specular |
Definition at line 104 of file r_main.cpp.
Referenced by R_UseMaterial().
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_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(), ParticleTest::SetUpTestCase(), UILevel2Test::SetUpTestCase(), ScriptTest::SetUpTestCase(), FootStepTest::SetUpTestCase(), MapDefStatsTest::SetUpTestCase(), MapDefTest::SetUpTestCase(), MapDefMassRMATest::SetUpTestCase(), GameTest::SetUpTestCase(), and CampaignTest::SetUpTestCase().
cvar_t* r_stencilshadows |
Definition at line 88 of file r_main.cpp.
Referenced by R_DrawEntityEffects(), and R_DrawMeshShadow().
cvar_t* r_swapinterval |
Definition at line 89 of file r_main.cpp.
cvar_t* r_texture_lod |
Definition at line 65 of file r_main.cpp.
Referenced by R_UploadTexture().
|
static |
Definition at line 78 of file r_main.cpp.
|
static |
Definition at line 77 of file r_main.cpp.
|
static |
Definition at line 79 of file r_main.cpp.
cvar_t* r_threads |
Definition at line 93 of file r_main.cpp.
Referenced by R_RunThread(), and R_ShutdownThreads().
cvar_t* r_vertexbuffers |
Definition at line 94 of file r_main.cpp.
Referenced by R_BindBuffer(), R_RenderBspRRefs(), R_ResetArrayState(), and R_SetArrayState().
cvar_t* r_warp |
Definition at line 95 of file r_main.cpp.
Referenced by R_EnableWarp().
image_t* r_warpTexture |
Definition at line 52 of file r_main.cpp.
Referenced by R_EnableWarp(), and R_InitMiscTexture().
cvar_t* r_weather |
Definition at line 59 of file r_main.cpp.
cvar_t* r_wire |
Definition at line 91 of file r_main.cpp.
Referenced by R_DrawMaterialSurfaces(), and R_DrawMeshShadow().
rendererData_t 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_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_RunThread(), R_Setup2D(), R_Setup3D(), 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().