|
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. | |
| void | R_DrawSurfaces (const mBspSurfaces_t *surfs, glElementIndex_t *indexPtr) |
| General surface drawing function, that draw the surface chains. | |
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 mBspSurfaces_t::count, mBspSurface_t::deluxemap_texnum, mBspSurface_t::firstTriangle, mBspTexInfo_t::flags, mBspSurface_t::frame, GL_ELEMENT_INDEX_TYPE, mBspTexInfo_t::image, mBspSurface_t::lightmap_texnum, mBspSurface_t::numTriangles, R_Color(), R_EnableBumpmap(), R_EnableGlowMap(), r_locals, R_SetSurfaceState(), r_state, refdef, SURF_BLEND33, SURF_BLEND66, mBspSurfaces_t::surfaces, and mBspSurface_t::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_t::deluxemap_texnum, mBspSurface_t::flags, mBspTexInfo_t::image, image_t::material, MSURF_LIGHTMAP, R_BindDeluxemapTexture(), r_bumpmap, R_EnableBumpmap(), R_EnableSpecularMap(), r_state, R_UseMaterial(), and mBspSurface_t::texinfo.
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 mBspSurface_t::flags, mBspTexInfo_t::flags, image_t::glowmap, mBspTexInfo_t::image, mBspSurface_t::lightmap_texnum, MSURF_LIGHTMAP, image_t::normalmap, R_BindLightmapTexture(), R_BindTexture, R_CheckError, R_Color(), R_EnableGlowMap(), R_SetSurfaceBumpMappingParameters(), r_state, image_t::specularmap, SURF_BLEND33, SURF_BLEND66, mBspSurface_t::texinfo, image_t::texnum, and texunit_lightmap.
Referenced by R_DrawSurfaces().