#include "r_local.h"
Go to the source code of this file.
Functions | |
void | R_DrawSurfaceBlock8_mip0 (void) |
void | R_DrawSurfaceBlock8_mip1 (void) |
void | R_DrawSurfaceBlock8_mip2 (void) |
void | R_DrawSurfaceBlock8_mip3 (void) |
void | R_BuildLightMap (void) |
image_t * | R_TextureAnimation (mtexinfo_t *tex) |
void | R_DrawSurface (void) |
void | R_InitCaches (void) |
void | D_FlushCaches (void) |
surfcache_t * | D_SCAlloc (int width, int size) |
void | D_SCDump (void) |
int | MaskForNum (int num) |
int | D_log2 (int num) |
surfcache_t * | D_CacheSurface (msurface_t *surface, int miplevel) |
Variables | |
drawsurf_t | r_drawsurf |
int | lightleft |
int | sourcesstep |
int | blocksize |
int | sourcetstep |
int | lightdelta |
int | lightdeltastep |
int | lightright |
int | lightleftstep |
int | lightrightstep |
int | blockdivshift |
unsigned | blockdivmask |
void * | prowdestbase |
unsigned char * | pbasesource |
int | surfrowbytes |
unsigned * | r_lightptr |
int | r_stepback |
int | r_lightwidth |
int | r_numhblocks |
int | r_numvblocks |
unsigned char * | r_source |
unsigned char * | r_sourcemax |
static void(* | surfmiptable [4])(void) |
unsigned | blocklights [1024] |
float | surfscale |
qboolean | r_cache_thrash |
int | sc_size |
surfcache_t * | sc_rover |
surfcache_t * | sc_base |
surfcache_t* D_CacheSurface | ( | msurface_t * | surface, |
int | miplevel | ||
) |
Definition at line 575 of file r_surf.c.
Referenced by D_SolidSurf(), and R_BuildPolygonFromSurface().
Definition at line 418 of file r_surf.c.
Referenced by R_BeginRegistration(), R_InitGraphics(), R_SetupFrame(), and R_Shutdown().
surfcache_t* D_SCAlloc | ( | int | width, |
int | size | ||
) |
image_t* R_TextureAnimation | ( | mtexinfo_t * | tex | ) |
unsigned blockdivmask |
Definition at line 29 of file r_surf.c.
Referenced by R_DrawSurface().
int blockdivshift |
Definition at line 28 of file r_surf.c.
Referenced by R_DrawSurface().
unsigned blocklights[1024] |
Definition at line 277 of file r_light.c.
Referenced by R_AddDynamicLights(), R_BuildLightMap(), and R_DrawSurface().
int blocksize |
Definition at line 26 of file r_surf.c.
Referenced by R_DrawSurface().
int lightleft |
Definition at line 26 of file r_surf.c.
Referenced by R_DrawSurfaceBlock8_mip0(), R_DrawSurfaceBlock8_mip1(), R_DrawSurfaceBlock8_mip2(), and R_DrawSurfaceBlock8_mip3().
int lightleftstep |
Definition at line 28 of file r_surf.c.
Referenced by R_DrawSurfaceBlock8_mip0(), R_DrawSurfaceBlock8_mip1(), R_DrawSurfaceBlock8_mip2(), and R_DrawSurfaceBlock8_mip3().
int lightright |
Definition at line 28 of file r_surf.c.
Referenced by R_DrawSurfaceBlock8_mip0(), R_DrawSurfaceBlock8_mip1(), R_DrawSurfaceBlock8_mip2(), and R_DrawSurfaceBlock8_mip3().
int lightrightstep |
Definition at line 28 of file r_surf.c.
Referenced by R_DrawSurfaceBlock8_mip0(), R_DrawSurfaceBlock8_mip1(), R_DrawSurfaceBlock8_mip2(), and R_DrawSurfaceBlock8_mip3().
unsigned char* pbasesource |
Definition at line 31 of file r_surf.c.
Referenced by R_DrawSurface(), R_DrawSurfaceBlock8_mip0(), R_DrawSurfaceBlock8_mip1(), R_DrawSurfaceBlock8_mip2(), and R_DrawSurfaceBlock8_mip3().
void* prowdestbase |
Definition at line 30 of file r_surf.c.
Referenced by R_DrawSurface(), R_DrawSurfaceBlock8_mip0(), R_DrawSurfaceBlock8_mip1(), R_DrawSurfaceBlock8_mip2(), and R_DrawSurfaceBlock8_mip3().
qboolean r_cache_thrash |
Definition at line 55 of file r_surf.c.
Referenced by D_SCAlloc().
drawsurf_t r_drawsurf |
Definition at line 24 of file r_surf.c.
Referenced by D_CacheSurface(), R_AddDynamicLights(), R_BuildLightMap(), and R_DrawSurface().
unsigned* r_lightptr |
Definition at line 33 of file r_surf.c.
Referenced by R_DrawSurface(), R_DrawSurfaceBlock8_mip0(), R_DrawSurfaceBlock8_mip1(), R_DrawSurfaceBlock8_mip2(), and R_DrawSurfaceBlock8_mip3().
int r_lightwidth |
Definition at line 35 of file r_surf.c.
Referenced by R_DrawSurface(), R_DrawSurfaceBlock8_mip0(), R_DrawSurfaceBlock8_mip1(), R_DrawSurfaceBlock8_mip2(), and R_DrawSurfaceBlock8_mip3().
int r_numhblocks |
Definition at line 36 of file r_surf.c.
Referenced by R_DrawSurface().
int r_numvblocks |
Definition at line 36 of file r_surf.c.
Referenced by R_DrawSurface(), R_DrawSurfaceBlock8_mip0(), R_DrawSurfaceBlock8_mip1(), R_DrawSurfaceBlock8_mip2(), and R_DrawSurfaceBlock8_mip3().
unsigned char* r_source |
Definition at line 37 of file r_surf.c.
Referenced by R_DrawSurface().
unsigned char * r_sourcemax |
Definition at line 37 of file r_surf.c.
Referenced by R_DrawSurface(), R_DrawSurfaceBlock8_mip0(), R_DrawSurfaceBlock8_mip1(), R_DrawSurfaceBlock8_mip2(), and R_DrawSurfaceBlock8_mip3().
int r_stepback |
Definition at line 34 of file r_surf.c.
Referenced by R_DrawSurface(), R_DrawSurfaceBlock8_mip0(), R_DrawSurfaceBlock8_mip1(), R_DrawSurfaceBlock8_mip2(), and R_DrawSurfaceBlock8_mip3().
surfcache_t * sc_base |
Definition at line 58 of file r_surf.c.
Referenced by D_FlushCaches(), D_SCAlloc(), D_SCDump(), and R_InitCaches().
surfcache_t* sc_rover |
Definition at line 58 of file r_surf.c.
Referenced by D_FlushCaches(), D_SCAlloc(), D_SCDump(), R_InitCaches(), and R_SetupFrame().
int sc_size |
Definition at line 57 of file r_surf.c.
Referenced by D_FlushCaches(), D_SCAlloc(), and R_InitCaches().
int sourcetstep |
Definition at line 26 of file r_surf.c.
Referenced by R_DrawSurface(), R_DrawSurfaceBlock8_mip0(), R_DrawSurfaceBlock8_mip1(), R_DrawSurfaceBlock8_mip2(), and R_DrawSurfaceBlock8_mip3().
int surfrowbytes |
Definition at line 32 of file r_surf.c.
Referenced by R_DrawSurface(), R_DrawSurfaceBlock8_mip0(), R_DrawSurfaceBlock8_mip1(), R_DrawSurfaceBlock8_mip2(), and R_DrawSurfaceBlock8_mip3().
float surfscale |
Definition at line 54 of file r_surf.c.
Referenced by D_CacheSurface().