UFO: Alien Invasion
|
surface-related refresh code More...
#include "r_local.h"
#include "r_lightmap.h"
#include "r_light.h"
#include "r_error.h"
#include "r_draw.h"
Go to the source code of this file.
Functions | |
void | R_SetSurfaceBumpMappingParameters (const mBspSurface_t *surf, const image_t *normalMap, const image_t *specularMap) |
static void | R_SetSurfaceState (const mBspSurface_t *surf) |
Set the surface state according to surface flags and bind the texture. More... | |
void | R_DrawSurfaces (const mBspSurfaces_t *surfs, glElementIndex_t *indexPtr) |
General surface drawing function, that draw the surface chains. More... | |
surface-related refresh code
Definition in file r_surface.cpp.
void R_DrawSurfaces | ( | const mBspSurfaces_t * | surfs, |
glElementIndex_t * | indexPtr | ||
) |
General surface drawing function, that draw the surface chains.
Definition at line 98 of file r_surface.cpp.
References rstate_s::active_normalmap, rendererData_t::batchCount, rendererData_t::brushCount, mBspSurfaces_s::count, mBspSurface_s::deluxemap_texnum, mBspSurface_s::firstTriangle, mBspTexInfo_s::flags, mBspSurface_s::frame, rlocals_s::frame, GL_ELEMENT_INDEX_TYPE, mBspTexInfo_s::image, mBspSurface_s::lightmap_texnum, mBspSurface_s::numTriangles, R_Color(), R_EnableBumpmap(), R_EnableGlowMap(), r_locals, R_SetSurfaceState(), r_state, refdef, SURF_BLEND33, SURF_BLEND66, mBspSurfaces_s::surfaces, and mBspSurface_s::texinfo.
Referenced by R_RenderAlphaTestBspRRefs(), R_RenderBlendBspRRefs(), R_RenderBlendWarpBspRRefs(), R_RenderOpaqueBspRRefs(), and R_RenderOpaqueWarpBspRRefs().
void R_SetSurfaceBumpMappingParameters | ( | const mBspSurface_t * | surf, |
const image_t * | normalMap, | ||
const image_t * | specularMap | ||
) |
Definition at line 32 of file r_surface.cpp.
References mBspSurface_s::deluxemap_texnum, mBspSurface_s::flags, mBspTexInfo_s::image, rstate_s::lighting_enabled, image_s::material, MSURF_LIGHTMAP, R_BindDeluxemapTexture(), r_bumpmap, R_EnableBumpmap(), R_EnableSpecularMap(), r_state, R_UseMaterial(), mBspSurface_s::texinfo, and cvar_s::value.
Referenced by R_SetSurfaceState(), and R_StageLighting().
|
static |
Set the surface state according to surface flags and bind the texture.
Definition at line 59 of file r_surface.cpp.
References rstate_s::blend_enabled, mBspTexInfo_s::flags, mBspSurface_s::flags, image_s::glowmap, mBspTexInfo_s::image, mBspSurface_s::lightmap_texnum, MSURF_LIGHTMAP, image_s::normalmap, R_BindLightmapTexture(), R_BindTexture, R_CheckError, R_Color(), R_EnableGlowMap(), R_SetSurfaceBumpMappingParameters(), r_state, image_s::specularmap, SURF_BLEND33, SURF_BLEND66, mBspSurface_s::texinfo, image_s::texnum, and texunit_lightmap.
Referenced by R_DrawSurfaces().