|
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) |
| #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) |
| #define INTEL_TEXTURE_RESOLUTION 1024 |
Definition at line 1213 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 ) |
Definition at line 828 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(), Q_strcasecmp, r_anisotropic, R_CheckError, R_Clear(), r_config, r_drawbuffer, R_EnableMultisample(), R_InitThreads(), r_locals, R_RestartPrograms_f(), R_Setup2D(), R_ShutdownThreads(), R_TextureAlphaMode(), r_texturealphamode, R_TextureMode(), r_texturemode, R_TextureSolidMode(), r_texturesolidmode, and r_threads.
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 783 of file r_main.cpp.
References Com_Printf(), i, length, lengthof, Q_strreplace(), and r_config.
Referenced by R_InitExtensions().
Clears the screens color and depth buffer.
Definition at line 192 of file r_main.cpp.
References R_CheckError, and r_stencilshadows.
Referenced by R_BeginFrame().
Definition at line 209 of file r_main.cpp.
References R_ClearBspRRefs(), and refdef.
Referenced by R_EndFrame().
|
static |
Definition at line 499 of file r_main.cpp.
References Cvar_AssertValue(), MAX_ENTITY_LIGHTS, and r_config.
Referenced by R_InitExtensions().
|
static |
Definition at line 480 of file r_main.cpp.
References Com_Printf(), Cvar_AssertValue(), Cvar_SetValue(), cvar_t::integer, LIGHTMAP_DEFAULT_PAGE_SIZE, LIGHTMAP_MAX_PAGE_SIZE, cvar_t::name, Q_IsPowerOfTwo(), and r_config.
Referenced by R_RegisterSystemVars().
|
static |
Definition at line 548 of file r_main.cpp.
References Cvar_AssertValue().
Referenced by R_RegisterSystemVars().
|
static |
Definition at line 553 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 522 of file r_main.cpp.
References Cvar_Reset(), r_config, and cvar_t::string.
Referenced by R_InitExtensions().
|
static |
Definition at line 539 of file r_main.cpp.
References Cvar_AssertValue(), Cvar_SetValue(), cvar_t::name, and r_config.
Referenced by R_InitExtensions().
|
static |
Definition at line 509 of file r_main.cpp.
References Cvar_AssertValue(), Cvar_SetValue(), and cvar_t::name.
Referenced by R_InitExtensions().
Definition at line 443 of file r_main.cpp.
References cls, R_ClearScene(), R_Color(), R_DrawChars(), R_EnableBlend(), R_EnableMultisample(), 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 1177 of file r_main.cpp.
References Com_Error(), ERR_FATAL, and r_config.
Referenced by R_Init().
|
inlinestatic |
Definition at line 748 of file r_main.cpp.
Referenced by R_GetProcAddressExt(), and R_InitExtensions().
|
static |
Definition at line 753 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 1259 of file r_main.cpp.
References Cvar_ClearVars(), CVAR_R_MASK, OBJZERO, r_battlescapeWeather, R_CheckError, r_config, R_DrawInitLocal(), R_EnforceVersion(), R_FontInit(), R_InitExtensions(), R_InitFBObjects(), R_InitImages(), R_InitMiscTexture(), R_InitPrograms(), r_locals, R_ModelInit(), R_RegisterImageVars(), R_RegisterSystemVars(), R_SetDefaultState(), R_SphereInit(), r_state, R_Strings_f(), R_UpdateDefaultMaterial(), R_VerifyDriver(), and Rimp_Init().
Referenced by VID_Init(), and VID_Restart_f().
Check and load all needed and supported opengl extensions.
Definition at line 834 of file r_main.cpp.
References Com_Error(), Com_Printf(), CVAR_ARCHIVE, Cvar_Get(), CVAR_R_PROGRAMS, Cvar_SetCheckFunction(), Cvar_SetValue(), ERR_FATAL, GAME_TITLE, 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(), 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, and R_TranslateError().
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 564 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(), r_anisotropic, r_bumpmap, r_checkerror, r_commands, r_coronas, R_CvarCheckMaxLightmap(), R_CvarCheckMultisample(), R_CvarCheckWeather(), r_debug_lights, r_debug_normals, r_debug_tangents, r_default_hardness, r_default_specular, r_deluxemap, r_drawbuffer, r_drawentities, r_drawtags, r_drawworld, r_driver, r_ext_nonpoweroftwo, r_ext_s3tc_compression, r_ext_texture_compression, r_flares, r_fog, r_hardness, r_intel_hack, r_isometric, r_lightmap, r_materials, r_maxlightmap, r_maxtexres, r_multisample, r_nocull, r_overridematerial, r_parallax, r_particles, r_screenshot_format, r_screenshot_jpeg_quality, r_shadows, r_showbox, r_shownormals, r_specular, r_stencilshadows, r_swapinterval, r_texture_lod, r_texturealphamode, r_texturemode, r_texturesolidmode, r_threads, R_UpdateDefaultMaterial(), R_UpdateWeather(), r_vertexbuffers, r_warp, r_weather, and r_wire.
Referenced by R_Init().
Definition at line 298 of file r_main.cpp.
References model_t::bsp, cl, light_t::color, i, light_t::origin, R_AddBspRRef(), R_AddCorona(), r_battlescapeWeather, r_blend_mesh_entities, R_CheckError, R_Color(), r_debug_lights, 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_threads, r_threadstate, R_UpdateSustainedLights(), r_wire, light_t::radius, RDF_NOWORLDMODEL, refdef, Sys_Sleep(), THREAD_CLIENT, THREAD_RENDERER, 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 1207 of file r_main.cpp.
References Q_stristr(), and r_config.
Referenced by R_VerifyDriver().
| bool R_SetMode | ( | void | ) |
Definition at line 688 of file r_main.cpp.
References Com_Printf(), Cvar_GetInteger(), Cvar_Set(), viddefContext_t::fullscreen, viddefContext_t::height, vidmode_t::height, viddefContext_t::left, viddefContext_t::mode, viddefContext_t::multisample, r_ext_texture_compression, R_InitFBObjects(), R_InitGraphics(), r_multisample, R_ShutdownFBObjects(), r_swapinterval, R_UpdateVidDef(), viddefContext_t::swapinterval, viddefContext_t::top, UI_InvalidateStack(), vid_fullscreen, VID_GetModeInfo(), vid_mode, vid_stretch, viddef, viddefContext_t::width, and vidmode_t::width.
Referenced by Rimp_Init().
Definition at line 137 of file r_main.cpp.
References AngleVectors(), DotProduct, i, PLANE_ANYZ, R_CheckError, r_isometric, r_locals, RDF_NOWORLDMODEL, refdef, RotatePointAroundVector(), VectorScale, and viddef.
Referenced by R_RenderFrame(), and R_RunThread().
Definition at line 1315 of file r_main.cpp.
References Cmd_TableRemoveList(), r_commands, 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 r_config, and R_PrintInfo().
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 643 of file r_main.cpp.
References Cvar_SetValue(), r_multisample, r_swapinterval, vid_fullscreen, vid_mode, VID_NORM_HEIGHT, VID_NORM_WIDTH, vid_stretch, and viddef.
Referenced by R_SetMode().
|
static |
Definition at line 558 of file r_main.cpp.
References data, and r_battlescapeWeather.
Referenced by R_RegisterSystemVars().
Checks whether we have hardware acceleration.
Definition at line 1218 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, INTEL_TEXTURE_RESOLUTION, Q_strcasecmp, r_config, r_intel_hack, r_maxtexres, and R_SearchForVendor().
Referenced by R_Init().
| cvar_t* r_anisotropic |
Definition at line 64 of file r_main.cpp.
Referenced by R_BeginFrame(), R_InitExtensions(), and R_RegisterSystemVars().
| Weather r_battlescapeWeather |
Definition at line 55 of file r_main.cpp.
Referenced by R_Init(), R_RenderFrame(), and R_UpdateWeather().
| cvar_t* r_bumpmap |
Definition at line 103 of file r_main.cpp.
Referenced by R_ArraysMask(), R_EnableBumpmap(), R_RegisterSystemVars(), R_SetSurfaceBumpMappingParameters(), and R_UseMaterial().
| cvar_t* r_checkerror |
Definition at line 84 of file r_main.cpp.
Referenced by R_CheckErrorDebug(), and R_RegisterSystemVars().
|
static |
Definition at line 469 of file r_main.cpp.
Referenced by R_RegisterSystemVars(), and R_Shutdown().
| rconfig_t r_config |
Definition at line 47 of file r_main.cpp.
Referenced by R_BeginFrame(), R_BindColorAttachments(), R_CheckExtension(), R_CreateFramebuffer(), R_CvarCheckDynamicLights(), R_CvarCheckMaxLightmap(), R_CvarGLSLVersionCheck(), R_CvarPostProcess(), R_Draw3DGlobe(), R_DrawBloom(), R_EnableRenderbuffer(), R_EnforceVersion(), R_FontGenerateTexture(), R_GetScaledTextureSize(), R_Init(), R_InitExtensions(), R_InitFBObjects(), R_InitializeShader(), R_SearchForVendor(), R_SelectTexture(), R_SetDefaultState(), R_Strings_f(), R_TextureAlphaMode(), R_TextureMode(), R_TextureSolidMode(), R_UploadAlpha(), R_UploadData(), R_UploadLightmapPage(), R_UploadTexture(), R_UseFramebuffer(), R_UseViewport(), and R_VerifyDriver().
| cvar_t* r_coronas |
Definition at line 109 of file r_main.cpp.
Referenced by R_AddCorona(), R_DrawCoronas(), and R_RegisterSystemVars().
| cvar_t* r_debug_lights |
Definition at line 71 of file r_main.cpp.
Referenced by R_DrawAliasModel(), R_RegisterSystemVars(), and R_RenderFrame().
| cvar_t* r_debug_normals |
Definition at line 69 of file r_main.cpp.
Referenced by R_RegisterSystemVars().
| cvar_t* r_debug_tangents |
Definition at line 70 of file r_main.cpp.
Referenced by R_RegisterSystemVars().
| cvar_t* r_default_hardness |
Definition at line 83 of file r_main.cpp.
Referenced by R_RegisterSystemVars(), and R_UpdateDefaultMaterial().
| cvar_t* r_default_specular |
Definition at line 82 of file r_main.cpp.
Referenced by R_RegisterSystemVars(), and R_UpdateDefaultMaterial().
|
static |
Definition at line 72 of file r_main.cpp.
Referenced by R_RegisterSystemVars().
| cvar_t* r_drawbuffer |
Definition at line 85 of file r_main.cpp.
Referenced by R_BeginFrame(), and R_RegisterSystemVars().
| cvar_t* r_drawentities |
Definition at line 60 of file r_main.cpp.
Referenced by R_GetEntityLists(), and R_RegisterSystemVars().
| cvar_t* r_drawtags |
Definition at line 110 of file r_main.cpp.
Referenced by R_DrawAliasModelBuffer(), and R_RegisterSystemVars().
| cvar_t* r_drawworld |
Definition at line 61 of file r_main.cpp.
Referenced by R_GetLevelSurfaceLists(), and R_RegisterSystemVars().
| cvar_t* r_driver |
Definition at line 86 of file r_main.cpp.
Referenced by R_RegisterSystemVars(), and 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_InitExtensions(), R_SetupSpotLight(), and R_UpdateLightList().
|
static |
Definition at line 75 of file r_main.cpp.
Referenced by R_InitExtensions(), and R_RegisterSystemVars().
|
static |
Definition at line 74 of file r_main.cpp.
Referenced by R_InitExtensions(), and R_RegisterSystemVars().
| cvar_t* r_ext_texture_compression |
Definition at line 73 of file r_main.cpp.
Referenced by R_InitExtensions(), R_RegisterSystemVars(), and R_SetMode().
| cvar_t* r_flares |
Definition at line 108 of file r_main.cpp.
Referenced by R_DrawFlareSurfaces(), and R_RegisterSystemVars().
| cvar_t* r_fog |
Definition at line 107 of file r_main.cpp.
Referenced by R_EnableFog(), R_InitModelProgram(), R_InitWarpProgram(), R_InitWorldProgram(), R_RegisterSystemVars(), 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_InitExtensions(), and R_InitializeShader().
| cvar_t* r_hardness |
Definition at line 105 of file r_main.cpp.
Referenced by R_RegisterSystemVars(), and R_UseMaterial().
|
static |
Definition at line 76 of file r_main.cpp.
Referenced by R_RegisterSystemVars(), and R_VerifyDriver().
| cvar_t* r_isometric |
Definition at line 63 of file r_main.cpp.
Referenced by MYgluPerspective(), R_RegisterSystemVars(), and R_SetupFrustum().
| cvar_t* r_lightmap |
Definition at line 68 of file r_main.cpp.
Referenced by R_EnableTexture(), and R_RegisterSystemVars().
| rlocals_t r_locals |
Definition at line 49 of file r_main.cpp.
Referenced by R_AddBspRRef(), R_BeginFrame(), R_CullBox(), R_CullMeshModel(), R_CullSphere(), R_DrawBspNormals(), R_DrawCoronas(), R_DrawFlareSurfaces(), R_DrawMaterialSurfaces(), R_DrawSurfaces(), R_EnableModelLights(), R_EnableWorldLights(), R_GetSpriteVectors(), R_Init(), R_InitModelProgram(), R_RecursiveVisibleWorldNode(), R_RecursiveWorldNode(), R_Setup3D(), R_SetupFrustum(), 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(), R_RegisterSystemVars(), and R_StageLighting().
| cvar_t* r_maxlightmap |
Definition at line 101 of file r_main.cpp.
Referenced by R_BeginBuildingLightmaps(), and R_RegisterSystemVars().
|
static |
Definition at line 57 of file r_main.cpp.
Referenced by R_InitExtensions(), R_RegisterSystemVars(), and R_VerifyDriver().
| cvar_t* r_multisample |
Definition at line 90 of file r_main.cpp.
Referenced by R_CreateFramebuffer(), R_EnableMultisample(), R_RegisterSystemVars(), R_SetMode(), and R_UpdateVidDef().
| cvar_t* r_nocull |
Definition at line 62 of file r_main.cpp.
Referenced by R_CullBox(), R_CullEntity(), R_CullSphere(), and R_RegisterSystemVars().
| 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(), and R_RegisterSystemVars().
| cvar_t* r_parallax |
Definition at line 106 of file r_main.cpp.
Referenced by R_RegisterSystemVars(), and 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_InitExtensions(), 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_InitExtensions(), 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_RegisterSystemVars(), and R_ScreenShot().
| cvar_t* r_screenshot_jpeg_quality |
Definition at line 67 of file r_main.cpp.
Referenced by R_RegisterSystemVars(), and R_ScreenShot().
| cvar_t* r_shadows |
Definition at line 87 of file r_main.cpp.
Referenced by R_DrawMeshShadow(), and R_RegisterSystemVars().
| cvar_t* r_showbox |
Definition at line 92 of file r_main.cpp.
Referenced by R_DrawAliasModel(), R_DrawModelDirect(), R_DrawModelParticle(), R_RegisterSystemVars(), and R_RenderBspRRefs().
| cvar_t* r_shownormals |
Definition at line 102 of file r_main.cpp.
Referenced by R_DrawBspNormals(), and R_RegisterSystemVars().
| cvar_t* r_specular |
Definition at line 104 of file r_main.cpp.
Referenced by R_RegisterSystemVars(), and 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_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().
| cvar_t* r_stencilshadows |
Definition at line 88 of file r_main.cpp.
Referenced by R_Clear(), R_DrawEntityEffects(), R_DrawMeshShadow(), and R_RegisterSystemVars().
| cvar_t* r_swapinterval |
Definition at line 89 of file r_main.cpp.
Referenced by R_RegisterSystemVars(), R_SetMode(), and R_UpdateVidDef().
| cvar_t* r_texture_lod |
Definition at line 65 of file r_main.cpp.
Referenced by R_RegisterSystemVars(), and R_UploadTexture().
|
static |
Definition at line 78 of file r_main.cpp.
Referenced by R_BeginFrame(), and R_RegisterSystemVars().
|
static |
Definition at line 77 of file r_main.cpp.
Referenced by R_BeginFrame(), and R_RegisterSystemVars().
|
static |
Definition at line 79 of file r_main.cpp.
Referenced by R_BeginFrame(), and R_RegisterSystemVars().
| cvar_t* r_threads |
Definition at line 93 of file r_main.cpp.
Referenced by R_BeginFrame(), R_RegisterSystemVars(), R_RenderFrame(), R_RunThread(), and R_ShutdownThreads().
| cvar_t* r_vertexbuffers |
Definition at line 94 of file r_main.cpp.
Referenced by R_BindBuffer(), R_RegisterSystemVars(), R_RenderBspRRefs(), R_ResetArrayState(), and R_SetArrayState().
| cvar_t* r_warp |
Definition at line 95 of file r_main.cpp.
Referenced by R_EnableWarp(), and R_RegisterSystemVars().
| 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.
Referenced by R_RegisterSystemVars().
| cvar_t* r_wire |
Definition at line 91 of file r_main.cpp.
Referenced by R_DrawMaterialSurfaces(), R_DrawMeshShadow(), R_RegisterSystemVars(), and R_RenderFrame().
| 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_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().