Go to the source code of this file.
Classes | |
struct | gllightmapstate_t |
Macros | |
#define | DYNAMIC_LIGHT_WIDTH 128 |
#define | DYNAMIC_LIGHT_HEIGHT 128 |
#define | LIGHTMAP_BYTES 4 |
#define | BLOCK_WIDTH 128 |
#define | BLOCK_HEIGHT 128 |
#define | MAX_LIGHTMAPS 128 |
#define | GL_LIGHTMAP_FORMAT GL_RGBA |
Functions | |
static void | LM_InitBlock (void) |
static void | LM_UploadBlock (qboolean dynamic) |
static qboolean | LM_AllocBlock (int w, int h, int *x, int *y) |
void | R_SetCacheState (msurface_t *surf) |
void | R_BuildLightMap (msurface_t *surf, byte *dest, int stride) |
image_t * | R_TextureAnimation (mtexinfo_t *tex) |
void | DrawGLPoly (glpoly_t *p) |
void | DrawGLFlowingPoly (msurface_t *fa) |
void | R_DrawTriangleOutlines (void) |
void | DrawGLPolyChain (glpoly_t *p, float soffset, float toffset) |
void | R_BlendLightmaps (void) |
void | R_RenderBrushPoly (msurface_t *fa) |
void | R_DrawAlphaSurfaces (void) |
void | DrawTextureChains (void) |
static void | GL_RenderLightmappedPoly (msurface_t *surf) |
void | R_DrawInlineBModel (void) |
void | R_DrawBrushModel (entity_t *e) |
void | R_RecursiveWorldNode (mnode_t *node) |
void | R_DrawWorld (void) |
void | R_MarkLeaves (void) |
void | GL_BuildPolygonFromSurface (msurface_t *fa) |
void | GL_CreateSurfaceLightmap (msurface_t *surf) |
void | GL_BeginBuildingLightmaps (model_t *m) |
void | GL_EndBuildingLightmaps (void) |
Variables | |
static vec3_t | modelorg |
msurface_t * | r_alpha_surfaces |
int | c_visible_lightmaps |
int | c_visible_textures |
static gllightmapstate_t | gl_lms |
#define BLOCK_HEIGHT 128 |
Definition at line 36 of file gl_rsurf.c.
#define BLOCK_WIDTH 128 |
Definition at line 35 of file gl_rsurf.c.
#define DYNAMIC_LIGHT_HEIGHT 128 |
Definition at line 31 of file gl_rsurf.c.
#define DYNAMIC_LIGHT_WIDTH 128 |
Definition at line 30 of file gl_rsurf.c.
#define GL_LIGHTMAP_FORMAT GL_RGBA |
Definition at line 43 of file gl_rsurf.c.
#define LIGHTMAP_BYTES 4 |
Definition at line 33 of file gl_rsurf.c.
#define MAX_LIGHTMAPS 128 |
Definition at line 38 of file gl_rsurf.c.
void DrawGLFlowingPoly | ( | msurface_t * | fa | ) |
Definition at line 203 of file gl_rsurf.c.
Referenced by R_DrawAlphaSurfaces(), and R_RenderBrushPoly().
Definition at line 181 of file gl_rsurf.c.
Referenced by R_DrawAlphaSurfaces(), and R_RenderBrushPoly().
void GL_BuildPolygonFromSurface | ( | msurface_t * | fa | ) |
void GL_CreateSurfaceLightmap | ( | msurface_t * | surf | ) |
Definition at line 1658 of file gl_rsurf.c.
Referenced by Mod_LoadFaces().
|
static |
Definition at line 703 of file gl_rsurf.c.
Referenced by R_DrawInlineBModel(), and R_RecursiveWorldNode().
Definition at line 1411 of file gl_rsurf.c.
Referenced by GL_CreateSurfaceLightmap(), and R_BlendLightmaps().
Definition at line 1354 of file gl_rsurf.c.
Referenced by GL_CreateSurfaceLightmap(), and R_BlendLightmaps().
Definition at line 1359 of file gl_rsurf.c.
Referenced by GL_CreateSurfaceLightmap(), GL_EndBuildingLightmaps(), and R_BlendLightmaps().
Definition at line 316 of file gl_rsurf.c.
Referenced by R_DrawInlineBModel(), and R_DrawWorld().
void R_BuildLightMap | ( | msurface_t * | surf, |
byte * | dest, | ||
int | stride | ||
) |
Definition at line 455 of file gl_light.c.
Referenced by GL_CreateSurfaceLightmap(), GL_RenderLightmappedPoly(), R_BlendLightmaps(), and R_RenderBrushPoly().
Definition at line 588 of file gl_rsurf.c.
Definition at line 957 of file gl_rsurf.c.
Definition at line 1197 of file gl_rsurf.c.
Definition at line 1265 of file gl_rsurf.c.
Definition at line 1036 of file gl_rsurf.c.
Referenced by R_DrawWorld().
void R_RenderBrushPoly | ( | msurface_t * | fa | ) |
Definition at line 478 of file gl_rsurf.c.
Referenced by DrawTextureChains(), and R_DrawInlineBModel().
void R_SetCacheState | ( | msurface_t * | surf | ) |
Definition at line 437 of file gl_light.c.
Referenced by GL_CreateSurfaceLightmap(), GL_RenderLightmappedPoly(), and R_RenderBrushPoly().
image_t* R_TextureAnimation | ( | mtexinfo_t * | tex | ) |
Definition at line 84 of file gl_rsurf.c.
Referenced by GL_RenderLightmappedPoly(), R_RecursiveWorldNode(), and R_RenderBrushPoly().
int c_visible_lightmaps |
Definition at line 40 of file gl_rsurf.c.
Referenced by R_BlendLightmaps().
int c_visible_textures |
Definition at line 41 of file gl_rsurf.c.
Referenced by DrawTextureChains().
|
static |
Definition at line 59 of file gl_rsurf.c.
Referenced by GL_BeginBuildingLightmaps(), GL_CreateSurfaceLightmap(), LM_AllocBlock(), LM_InitBlock(), LM_UploadBlock(), R_BlendLightmaps(), R_DrawBrushModel(), R_DrawTriangleOutlines(), R_DrawWorld(), and R_RenderBrushPoly().
|
static |
Definition at line 26 of file gl_rsurf.c.
Referenced by R_DrawBrushModel(), R_DrawInlineBModel(), R_DrawWorld(), and R_RecursiveWorldNode().
msurface_t* r_alpha_surfaces |
Definition at line 28 of file gl_rsurf.c.
Referenced by R_DrawAlphaSurfaces(), R_DrawInlineBModel(), and R_RecursiveWorldNode().