#include "sw.h"
#include "block.h"
Go to the source code of this file.
◆ BLOCK_FUNC [1/4]
◆ BLOCK_FUNC [2/4]
◆ BLOCK_FUNC [3/4]
◆ BLOCK_FUNC [4/4]
◆ BLOCK_SHIFT [1/4]
◆ BLOCK_SHIFT [2/4]
◆ BLOCK_SHIFT [3/4]
◆ BLOCK_SHIFT [4/4]
◆ D_CacheSurface()
◆ D_FlushCaches()
◆ D_SCAlloc()
Definition at line 246 of file surf.c.
253 if ((size <= 0) || (size > 0x10000 *
TEX_BYTES))
254 Com_Error(ERR_FATAL,
"D_SCAlloc: bad cache size %d\n", size);
257 size = (size + 3) & ~3;
271 while (new->size < size) {
275 Com_Error(ERR_FATAL,
"D_SCAlloc: hit the end of memory");
284 if (new->size - size > 256) {
298 new->height = (size -
sizeof(*new) +
sizeof(
new->data)) /
width;
Referenced by D_CacheSurface().
◆ D_SCDump_f()
Definition at line 311 of file surf.c.
317 Com_Printf(
"ROVER:\n");
318 Com_Printf(
"%p : %i bytes %i width\n", test, test->
size,
Referenced by R_Register().
◆ R_DrawSurface()
Definition at line 77 of file surf.c.
80 int smax, tmax, twidth;
124 basetptr = &
r_source[toffset * twidth];
137 soffset += blocksize;
141 pcolumndest += horzblockstep;
Referenced by D_CacheSurface().
◆ R_DrawSurfaceBlock8_mip0()
static void R_DrawSurfaceBlock8_mip0 |
( |
void |
| ) |
|
|
static |
◆ R_DrawSurfaceBlock8_mip1()
static void R_DrawSurfaceBlock8_mip1 |
( |
void |
| ) |
|
|
static |
◆ R_DrawSurfaceBlock8_mip2()
static void R_DrawSurfaceBlock8_mip2 |
( |
void |
| ) |
|
|
static |
◆ R_DrawSurfaceBlock8_mip3()
static void R_DrawSurfaceBlock8_mip3 |
( |
void |
| ) |
|
|
static |
◆ R_FreeCaches()
◆ R_InitCaches()
Definition at line 172 of file surf.c.
187 size += (pix - 64000) * 3;
193 size = (size + 8191) & ~8191;
195 Com_DPrintf(
"%ik surface cache\n", size / 1024);
Referenced by R_ModeChanged().
◆ R_TextureAnimation()
static image_t* R_TextureAnimation |
( |
mtexinfo_t * |
tex | ) |
|
|
static |
◆ pbasesource
◆ prowdestbase
◆ r_drawsurf
◆ r_lightptr
◆ r_lightwidth
◆ r_numhblocks
◆ r_numvblocks
◆ r_source
◆ r_sourcemax
◆ r_stepback
◆ sc_base
◆ sc_rover
◆ sc_size
◆ sourcetstep
◆ surfmiptable
◆ surfrowbytes
cvar_t * sw_surfcacheoverride
void Com_Error(error_type_t type, const char *fmt,...)