UFO: Alien Invasion
|
Go to the source code of this file.
Macros | |
#define | FOG_START 300.0 |
#define | FOG_END 2500.0 |
Functions | |
bool | R_SelectTexture (gltexunit_t *texunit) |
Returns false if the texunit is not supported. More... | |
static void | R_BindTexture_ (int texnum) |
void | R_BindTextureDebug (int texnum, const char *file, int line, const char *function) |
void | R_BindTextureForTexUnit (GLuint texnum, gltexunit_t *texunit) |
void | R_BindLightmapTexture (GLuint texnum) |
void | R_BindDeluxemapTexture (GLuint texnum) |
void | R_BindNormalmapTexture (GLuint texnum) |
void | R_UseMaterial (const material_t *material) |
void | R_BindArray (GLenum target, GLenum type, const void *array) |
void | R_BindDefaultArray (GLenum target) |
Binds the appropriate shared vertex array to the specified target. More... | |
void | R_BindBuffer (GLenum target, GLenum type, GLuint id) |
void | R_BlendFunc (GLenum src, GLenum dest) |
void | R_EnableMultisample (bool enable) |
void | R_EnableBlend (bool enable) |
void | R_EnableAlphaTest (bool enable) |
void | R_EnableStencilTest (bool enable) |
void | R_EnableTexture (gltexunit_t *texunit, bool enable) |
void | R_EnableColorArray (bool enable) |
bool | R_EnableLighting (r_program_t *program, bool enable) |
Enables hardware-accelerated lighting with the specified program. This should be called after any texture units which will be active for lighting have been enabled. More... | |
void | R_SetupSpotLight (int index, const light_t *light) |
void | R_DisableSpotLight (int index) |
void | R_EnableAnimation (const mAliasMesh_t *mesh, float backlerp, bool enable) |
Enables animation using keyframe interpolation on the GPU. More... | |
void | R_EnableBumpmap (const image_t *normalmap) |
Enables bumpmapping and binds the given normalmap. More... | |
void | R_EnableWarp (r_program_t *program, bool enable) |
void | R_EnableBlur (r_program_t *program, bool enable, r_framebuffer_t *source, r_framebuffer_t *dest, int dir) |
void | R_EnableShell (bool enable) |
void | R_EnableFog (bool enable) |
static void | R_UpdateGlowBufferBinding (void) |
void | R_EnableGlowMap (const image_t *image) |
void | R_EnableDrawAsGlow (bool enable) |
void | R_EnableSpecularMap (const image_t *image, bool enable) |
void | R_EnableRoughnessMap (const image_t *image, bool enable) |
static void | MYgluPerspective (GLfloat zNear, GLfloat zFar) |
void | R_Setup3D (void) |
void | R_Setup2D (void) |
void | R_SetDefaultState (void) |
void | R_TexEnv (GLenum mode) |
void | R_TexOverride (vec4_t rgba) |
Sets special texture environment mode to override texture color; don't forget to call R_TexOverride(nullptr) to reset after drawing; intended for UI only, will conflict with lightmaps. More... | |
void | R_Color (const vec4_t rgba) |
Change the color to given value. More... | |
void | R_ReallocateStateArrays (int size) |
Reallocate arrays of GL primitives if needed. More... | |
void | R_ReallocateTexunitArray (gltexunit_t *texunit, int size) |
Reallocate texcoord array of the specified texunit, if needed. More... | |
Variables | |
const vec2_t | default_texcoords [4] |
static r_program_t * | lastProgram = nullptr |
vec2_t | fogRange = {FOG_START, FOG_END} |
const vec4_t | color_white = {1, 1, 1, 1} |
#define FOG_END 2500.0 |
Definition at line 582 of file r_state.cpp.
Referenced by R_SetDefaultState().
#define FOG_START 300.0 |
Definition at line 581 of file r_state.cpp.
Referenced by R_SetDefaultState().
|
static |
Definition at line 743 of file r_state.cpp.
References viddef_t::context, rendererData_t::fieldOfViewX, viddefContext_t::height, cvar_s::integer, M_PI, r_isometric, refdef, viddef, and viddefContext_t::width.
Referenced by R_Setup3D().
Definition at line 148 of file r_state.cpp.
References COMPONENTS_COLOR_ARRAY, COMPONENTS_NORMAL_ARRAY, COMPONENTS_TANGENT_ARRAY, COMPONENTS_TEXCOORD_ARRAY, COMPONENTS_VERTEX_ARRAY3D, GL_NEXT_NORMAL_ARRAY, GL_NEXT_TANGENT_ARRAY, GL_NEXT_VERTEX_ARRAY, GL_TANGENT_ARRAY, R_AttributePointer(), and v.
Referenced by R_BindBuffer(), R_BindDefaultArray(), R_CleanupDepthBuffer(), R_DrawAliasStatic(), R_DrawAliasTags(), R_DrawArrow(), R_DrawBoundingBox(), R_DrawBoundingBoxes(), R_DrawBox(), R_DrawChars(), R_DrawCircle(), R_DrawEntityEffects(), R_DrawFills(), R_DrawFlatGeoscape(), R_DrawFloor(), R_DrawGrass(), R_DrawImageArray(), R_DrawNullModel(), R_DrawPtlLine(), R_DrawQuad(), R_DrawSprite(), R_DrawTexturedBox(), R_EnableAnimation(), R_SetVertexArrayState(), R_SphereActivateTextureUnit(), R_SphereShade(), R_SphereShadeGLSL(), and Weather::render().
Definition at line 213 of file r_state.cpp.
References cvar_s::integer, R_BindArray(), and r_vertexbuffers.
Referenced by R_ResetArrayState(), and R_SetVertexBufferState().
Binds the appropriate shared vertex array to the specified target.
Definition at line 182 of file r_state.cpp.
References rstate_s::active_texunit, rstate_s::color_array, GL_NEXT_NORMAL_ARRAY, GL_NEXT_TANGENT_ARRAY, GL_NEXT_VERTEX_ARRAY, GL_TANGENT_ARRAY, rstate_s::next_normal_array, rstate_s::next_tangent_array, rstate_s::next_vertex_array_3d, rstate_s::normal_array, R_BindArray(), r_state, rstate_s::tangent_array, gltexunit_s::texcoord_array, v, and rstate_s::vertex_array_3d.
Referenced by R_CleanupDepthBuffer(), R_DrawAliasTags(), R_DrawArrow(), R_DrawBoundingBox(), R_DrawBoundingBoxes(), R_DrawBox(), R_DrawChars(), R_DrawCircle(), R_DrawEntityEffects(), R_DrawFills(), R_DrawFlatGeoscape(), R_DrawFloor(), R_DrawGrass(), R_DrawImageArray(), R_DrawNullModel(), R_DrawPtlLine(), R_DrawQuad(), R_DrawRect(), R_DrawSprite(), R_DrawTexturedBox(), R_ReallocateStateArrays(), R_ReallocateTexunitArray(), R_ResetArraysAfterStaticMeshRender(), R_ResetArrayState(), R_SetDefaultState(), R_Setup2D(), R_Setup3D(), R_SphereDeactivateTextureUnit(), and R_SphereRender().
Definition at line 95 of file r_state.cpp.
References R_BindTextureForTexUnit(), and texunit_deluxemap.
Referenced by R_SetSurfaceBumpMappingParameters().
Definition at line 90 of file r_state.cpp.
References R_BindTextureForTexUnit(), and texunit_lightmap.
Referenced by R_DrawFlatGeoscape(), R_SetSurfaceState(), R_SphereShade(), and R_StageLighting().
Definition at line 100 of file r_state.cpp.
References R_BindTextureForTexUnit(), and texunit_normalmap.
Referenced by R_EnableBumpmap().
Definition at line 56 of file r_state.cpp.
References rstate_s::active_texunit, glBindTexture(), R_CheckError, r_state, and gltexunit_s::texnum.
Referenced by R_BindTextureDebug().
Definition at line 69 of file r_state.cpp.
References Com_Printf(), and R_BindTexture_().
void R_BindTextureForTexUnit | ( | GLuint | texnum, |
gltexunit_t * | texunit | ||
) |
Definition at line 77 of file r_state.cpp.
References R_BindTexture, R_SelectTexture(), gltexunit_s::texnum, and texunit_diffuse.
Referenced by R_BindDeluxemapTexture(), R_BindLightmapTexture(), R_BindNormalmapTexture(), R_Blur(), R_BlurStack(), R_DrawBloom(), R_EnableGlowMap(), R_EnableRoughnessMap(), R_EnableSpecularMap(), and R_SphereShadeGLSL().
Definition at line 232 of file r_state.cpp.
References rstate_s::blend_dest, rstate_s::blend_src, dest, and r_state.
Referenced by R_DrawCoronas(), R_DrawFlareSurfaces(), R_DrawMaterialSurfaces(), R_DrawParticles(), R_EnableShell(), R_SetBlendMode(), R_SetDefaultState(), and R_SetSurfaceStageState().
Change the color to given value.
[in] | rgba | A pointer to a vec4_t with rgba color value |
Definition at line 1011 of file r_state.cpp.
References color_white, and R_CheckError.
Referenced by uiStringNode::draw(), uiLineChartNode::draw(), uiOptionTreeNode::draw(), uiSelectBoxNode::draw(), uiButtonNode::draw(), uiOptionListNode::draw(), uiTextEntryNode::draw(), uiImageNode::draw(), uiTextListNode::drawText(), uiText2Node::drawText(), uiTextNode::drawText(), GAME_GetImportData(), R_DrawAliasModel(), R_DrawArrow(), R_DrawBoundingBoxes(), R_DrawBox(), R_DrawBspNormals(), R_DrawCircle(), R_DrawCoronas(), R_DrawEntityEffects(), R_DrawFills(), R_DrawFlareSurfaces(), R_DrawFloor(), R_DrawMaterialSurfaces(), R_DrawMeshModelShell(), R_DrawMeshShadow(), R_DrawModelDirect(), R_DrawModelParticle(), R_DrawParticles(), R_DrawPtlLine(), R_DrawRect(), R_DrawSprite(), R_DrawSurfaces(), R_EndFrame(), R_RenderFrame(), R_SetSurfaceStageState(), R_SetSurfaceState(), R_Setup2D(), Weather::render(), SEQ_Render2D(), UI_DrawItem(), UI_DrawNotice(), UI_DrawSpriteInBox(), UI_DrawTooltip(), UI_MessageDraw(), and UI_RadarNodeDrawArrays().
Definition at line 403 of file r_state.cpp.
References cvar_s::integer, MAX_GL_LIGHTS, MIN_GL_CONSTANT_ATTENUATION, r_dynamic_lights, and r_programs.
void R_EnableAlphaTest | ( | bool | enable | ) |
Definition at line 277 of file r_state.cpp.
References rstate_s::alpha_test_enabled, and r_state.
Referenced by R_DrawGrass(), R_RenderAlphaTestBspRRefs(), and R_SetDefaultState().
void R_EnableAnimation | ( | const mAliasMesh_t * | mesh, |
float | backlerp, | ||
bool | enable | ||
) |
Enables animation using keyframe interpolation on the GPU.
mesh | The mesh to animate |
backlerp | The temporal proximity to the previous keyframe (in the range 0.0 to 1.0) |
enable | Whether to turn animation on or off |
Definition at line 430 of file r_state.cpp.
References rstate_s::animation_enabled, GL_NEXT_NORMAL_ARRAY, GL_NEXT_TANGENT_ARRAY, GL_NEXT_VERTEX_ARRAY, GL_TANGENT_ARRAY, cvar_s::integer, rstate_s::lighting_enabled, mAliasMesh_s::next_normals, mAliasMesh_s::next_tangents, mAliasMesh_s::next_verts, mAliasMesh_s::normals, R_BindArray(), R_DisableAttribute(), R_EnableAttribute(), R_ProgramParameter1f(), R_ProgramParameter1i(), r_programs, r_state, mAliasMesh_s::tangents, mAliasMesh_s::texcoords, and mAliasMesh_s::verts.
Referenced by R_DrawAliasFrameLerp().
void R_EnableBlend | ( | bool | enable | ) |
Definition at line 261 of file r_state.cpp.
References rstate_s::blend_enabled, and r_state.
Referenced by R_DrawBlendMeshEntities(), R_DrawEntityEffects(), R_DrawFlareSurfaces(), R_DrawMeshShadow(), R_DrawSpecialEntities(), R_EnableShell(), R_EndFrame(), R_RenderFrame(), R_SetDefaultState(), and Weather::render().
void R_EnableBlur | ( | r_program_t * | program, |
bool | enable, | ||
r_framebuffer_t * | source, | ||
r_framebuffer_t * | dest, | ||
int | dir | ||
) |
Definition at line 523 of file r_state.cpp.
References rstate_s::blur_enabled, fbo_screen, r_program_s::id, cvar_s::integer, r_postprocess, r_programs, R_SelectTexture(), r_state, R_UseFramebuffer(), R_UseProgram(), texunit_diffuse, texunit_lightmap, r_program_s::userdata, and r_framebuffer_t::width.
Referenced by R_Blur().
Enables bumpmapping and binds the given normalmap.
Definition at line 465 of file r_state.cpp.
References rstate_s::active_normalmap, defaultMaterial, rstate_s::lighting_enabled, R_BindNormalmapTexture(), r_bumpmap, R_ProgramParameter1i(), r_state, R_UseMaterial(), image_s::texnum, and cvar_s::value.
Referenced by R_DrawAliasModel(), R_DrawMaterialSurfaces(), R_DrawSurfaces(), and R_SetSurfaceBumpMappingParameters().
void R_EnableColorArray | ( | bool | enable | ) |
Definition at line 332 of file r_state.cpp.
References rstate_s::color_array_enabled, and r_state.
Referenced by R_DrawAliasTags(), R_DrawChars(), R_DrawCoronas(), R_DrawFills(), R_DrawFlareSurfaces(), R_DrawMaterialSurfaces(), R_SetDefaultState(), and R_SetSurfaceStageState().
void R_EnableDrawAsGlow | ( | bool | enable | ) |
Definition at line 692 of file r_state.cpp.
References rstate_s::active_program, rstate_s::draw_glow_enabled, cvar_s::integer, r_programs, r_state, and R_UpdateGlowBufferBinding().
Referenced by R_DrawEntityEffects(), R_DrawSpecialEntities(), and R_EnableShell().
void R_EnableFog | ( | bool | enable | ) |
Definition at line 586 of file r_state.cpp.
References rstate_s::active_program, f, rstate_s::fog_enabled, rendererData_t::fogColor, fogRange, cvar_s::integer, rstate_s::model_program, r_fog, R_ProgramParameter1f(), R_ProgramParameter2fv(), R_ProgramParameter3fv(), r_programs, r_state, refdef, rstate_s::warp_program, rendererData_t::weather, WEATHER_FOG, and rstate_s::world_program.
Referenced by R_DrawMaterialSurfaces(), R_RenderFrame(), and R_SetSurfaceStageState().
Definition at line 664 of file r_state.cpp.
References rstate_s::active_program, rstate_s::glowmap_enabled, cvar_s::integer, R_BindTextureForTexUnit(), r_programs, r_state, R_UpdateGlowBufferBinding(), R_UseProgram(), rstate_s::simple_glow_program, image_s::texnum, and texunit_glowmap.
Referenced by R_DrawAliasModel(), R_DrawBlendMeshEntities(), R_DrawMaterialSurfaces(), R_DrawOpaqueMeshEntities(), R_DrawSurfaces(), R_RenderAlphaTestBspRRefs(), R_RenderBlendWarpBspRRefs(), R_RenderOpaqueBspRRefs(), R_RenderOpaqueWarpBspRRefs(), R_SetSurfaceState(), and R_StageGlow().
bool R_EnableLighting | ( | r_program_t * | program, |
bool | enable | ||
) |
Enables hardware-accelerated lighting with the specified program. This should be called after any texture units which will be active for lighting have been enabled.
Definition at line 350 of file r_state.cpp.
References rstate_s::active_program, r_program_s::id, cvar_s::integer, rstate_s::lighting_enabled, r_programs, r_state, and R_UseProgram().
Referenced by R_DrawBlendMeshEntities(), R_DrawMaterialSurfaces(), R_DrawMeshShadow(), R_DrawOpaqueMeshEntities(), R_RenderAlphaTestBspRRefs(), R_RenderOpaqueBspRRefs(), R_SphereShadeGLSL(), and R_StageLighting().
void R_EnableMultisample | ( | bool | enable | ) |
Definition at line 243 of file r_state.cpp.
References cvar_s::integer, rstate_s::multisample_enabled, R_CheckError, r_multisample, and r_state.
Referenced by R_BeginFrame(), and R_EndFrame().
Definition at line 725 of file r_state.cpp.
References rstate_s::dynamic_lighting_enabled, R_BindTextureForTexUnit(), R_ProgramParameter1i(), r_state, rstate_s::roughnessmap_enabled, image_s::texnum, and texunit_roughnessmap.
Referenced by R_DrawAliasModel().
void R_EnableShell | ( | bool | enable | ) |
Definition at line 551 of file r_state.cpp.
References rstate_s::lighting_enabled, R_BlendFunc(), R_EnableBlend(), R_EnableDrawAsGlow(), R_ProgramParameter1f(), r_state, refdef, rstate_s::shell_enabled, and rendererData_t::time.
Referenced by R_DrawMeshModelShell().
Definition at line 707 of file r_state.cpp.
References rstate_s::dynamic_lighting_enabled, cvar_s::integer, R_BindTextureForTexUnit(), R_ProgramParameter1i(), r_programs, r_state, rstate_s::specularmap_enabled, image_s::texnum, and texunit_specularmap.
Referenced by R_DrawAliasModel(), and R_SetSurfaceBumpMappingParameters().
void R_EnableStencilTest | ( | bool | enable | ) |
Definition at line 290 of file r_state.cpp.
References r_state, and rstate_s::stencil_test_enabled.
Referenced by R_DrawMeshShadow().
void R_EnableTexture | ( | gltexunit_t * | texunit, |
bool | enable | ||
) |
Definition at line 303 of file r_state.cpp.
References gltexunit_s::enabled, cvar_s::integer, r_lightmap, R_SelectTexture(), R_TexEnv(), texunit_diffuse, and texunit_lightmap.
Referenced by R_DrawAliasTags(), R_DrawBspNormals(), R_DrawCoronas(), R_DrawFills(), R_DrawFlatGeoscape(), R_DrawMaterialSurfaces(), R_DrawMeshShadow(), R_DrawNullModel(), R_DrawPtlCircle(), R_DrawPtlLine(), R_RenderBlendBspRRefs(), R_RenderOpaqueBspRRefs(), R_SetDefaultState(), R_SphereShade(), R_StageLighting(), and wpTexture().
void R_EnableWarp | ( | r_program_t * | program, |
bool | enable | ||
) |
Definition at line 496 of file r_state.cpp.
References r_program_s::id, cvar_s::integer, R_BindTexture, r_programs, R_SelectTexture(), r_state, R_UseProgram(), r_warp, r_warpTexture, image_s::texnum, texunit_diffuse, texunit_lightmap, and rstate_s::warp_enabled.
Referenced by R_RenderBlendWarpBspRRefs(), and R_RenderOpaqueWarpBspRRefs().
Reallocate arrays of GL primitives if needed.
size | The new array size |
Definition at line 1029 of file r_state.cpp.
Referenced by R_DrawBspNormals(), R_DrawSurfaceStage(), R_FillArrayData(), R_LoadBspVertexArrays(), and R_SetDefaultState().
void R_ReallocateTexunitArray | ( | gltexunit_t * | texunit, |
int | size | ||
) |
Reallocate texcoord array of the specified texunit, if needed.
texunit | Pointer to texunit (TODO: remove this comment as obvious and redundant) |
size | The new array size |
Definition at line 1059 of file r_state.cpp.
Referenced by R_DrawSurfaceStage(), R_FillArrayData(), and R_SetDefaultState().
bool R_SelectTexture | ( | gltexunit_t * | texunit | ) |
Returns false if the texunit is not supported.
Definition at line 40 of file r_state.cpp.
References rstate_s::active_texunit, rconfig_t::maxTextureCoords, r_config, r_state, and gltexunit_s::texture.
Referenced by R_BindTextureForTexUnit(), R_Draw3DGlobe(), R_DrawFlatGeoscape(), R_EnableBlur(), R_EnableTexture(), R_EnableWarp(), R_RenderToTexture(), R_ResetArrayState(), R_SetDefaultState(), R_SetVertexArrayState(), R_SetVertexBufferState(), R_SphereActivateTextureUnit(), R_SphereDeactivateTextureUnit(), R_SphereShade(), R_SphereShadeGLSL(), and R_TexOverride().
Definition at line 860 of file r_state.cpp.
References rstate_s::active_material, rstate_s::active_texunit, rstate_s::alpha_test_enabled, rstate_s::animation_enabled, rstate_s::blend_dest, rstate_s::blend_enabled, rstate_s::blend_src, rstate_s::blur_enabled, rstate_s::color_array_enabled, rstate_s::draw_glow_enabled, rstate_s::dynamic_lighting_enabled, gltexunit_s::enabled, f, rstate_s::fog_enabled, FOG_END, FOG_START, GL_ARRAY_LENGTH_CHUNK, rstate_s::glowmap_enabled, i, rstate_s::lighting_enabled, MAX_GL_TEXUNITS, rconfig_t::maxTextureCoords, R_BindDefaultArray(), R_BlendFunc(), R_CheckError, R_ClearStaticLights(), r_config, R_EnableAlphaTest(), R_EnableBlend(), R_EnableColorArray(), R_EnableTexture(), R_ReallocateStateArrays(), R_ReallocateTexunitArray(), R_SelectTexture(), r_state, R_TexEnv(), rstate_s::renderbuffer_enabled, rstate_s::roughnessmap_enabled, rstate_s::shell_enabled, rstate_s::specularmap_enabled, rstate_s::stencil_test_enabled, gltexunit_s::texture, texunit_0, texunit_1, texunit_2, texunit_3, texunit_4, texunit_diffuse, rstate_s::texunits, and rstate_s::warp_enabled.
Referenced by R_Init(), and R_ReinitOpenglContext().
Definition at line 825 of file r_state.cpp.
References viddef_t::context, viddefContext_t::height, R_BindDefaultArray(), R_CheckError, R_Color(), R_EnableRenderbuffer(), RDF_NOWORLDMODEL, refdef, rendererData_t::rendererFlags, SKYBOX_DEPTH, viddef, and viddefContext_t::width.
Referenced by R_BeginFrame(), and R_RenderFrame().
Definition at line 763 of file r_state.cpp.
References viddef_t::context, f, viddefContext_t::height, MAX_WORLD_WIDTH, MYgluPerspective(), R_BindDefaultArray(), R_CheckError, R_EnableRenderbuffer(), r_locals, RDF_NOWORLDMODEL, refdef, rendererData_t::rendererFlags, VID_NORM_HEIGHT, VID_NORM_WIDTH, viddef, rendererData_t::viewAngles, viddef_t::viewHeight, rendererData_t::viewOrigin, viddef_t::viewWidth, viddef_t::virtualHeight, viddef_t::virtualWidth, viddefContext_t::width, rlocals_s::world_matrix, viddef_t::x, and viddef_t::y.
Referenced by R_RenderFrame().
Definition at line 376 of file r_state.cpp.
References light_s::color, cvar_s::integer, MIN_GL_CONSTANT_ATTENUATION, light_s::origin, r_dynamic_lights, r_programs, light_s::radius, and VectorCopy.
Definition at line 956 of file r_state.cpp.
References rstate_s::active_texunit, r_state, and gltexunit_s::texenv.
Referenced by R_DrawParticles(), R_EnableTexture(), R_SetBlendMode(), R_SetDefaultState(), and R_TexOverride().
Sets special texture environment mode to override texture color; don't forget to call R_TexOverride(nullptr) to reset after drawing; intended for UI only, will conflict with lightmaps.
Definition at line 968 of file r_state.cpp.
References GL_SOURCE0_ALPHA, GL_SOURCE0_RGB, GL_SOURCE1_RGB, GL_SOURCE2_RGB, R_BindTexture, r_dummyTexture, R_SelectTexture(), R_TexEnv(), image_s::texnum, texunit_diffuse, and texunit_lightmap.
Referenced by UI_DisableFlashing(), and UI_EnableFlashing().
Definition at line 616 of file r_state.cpp.
References rstate_s::active_program, rstate_s::draw_glow_enabled, rstate_s::glowmap_enabled, R_BindColorAttachments(), R_DrawBuffers(), R_ProgramParameter1f(), and r_state.
Referenced by R_EnableDrawAsGlow(), and R_EnableGlowMap().
void R_UseMaterial | ( | const material_t * | material | ) |
Definition at line 105 of file r_state.cpp.
References rstate_s::active_material, rstate_s::active_normalmap, rstate_s::active_program, material_s::bump, defaultMaterial, material_s::hardness, cvar_s::integer, material_s::parallax, r_bumpmap, r_hardness, r_parallax, R_ProgramParameter1f(), r_programs, r_specular, r_state, material_s::specular, cvar_s::value, and rstate_s::world_program.
Referenced by R_EnableBumpmap(), R_EnableModelLights(), and R_SetSurfaceBumpMappingParameters().
const vec4_t color_white = {1, 1, 1, 1} |
Definition at line 1004 of file r_state.cpp.
Referenced by R_Color().
const vec2_t default_texcoords[4] |
Definition at line 30 of file r_state.cpp.
Referenced by R_DrawFlareSurfaces(), and R_DrawTexture().
Definition at line 584 of file r_state.cpp.
Referenced by R_EnableFog(), R_InitModelProgram(), R_InitWarpProgram(), R_InitWorldProgram(), R_UseModelProgram(), R_UseWarpProgram(), and R_UseWorldProgram().
|
static |
Definition at line 35 of file r_state.cpp.