![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Data Structures | |
struct | mwad_t |
struct | wadstate_t |
Functions | |
static void | W_CleanupName (const char *in, char *out) |
unsigned char * | W_ConvertWAD3TextureBGRA (sizebuf_t *sb) |
unsigned char * | W_GetLumpName (const char *name, fs_offset_t *returnfilesize) |
unsigned char * | W_GetTextureBGRA (char *name) |
void | W_LoadTextureWadFile (char *filename, int complain) |
static void | W_SwapLumps (int numlumps, lumpinfo_t *lumps) |
void | W_UnloadAll (void) |
Variables | |
static wadstate_t | wad |
|
static |
Definition at line 55 of file wad.c.
References i.
Referenced by W_GetLumpName(), W_GetTextureBGRA(), and W_SwapLumps().
unsigned char * W_ConvertWAD3TextureBGRA | ( | sizebuf_t * | sb | ) |
Definition at line 226 of file wad.c.
References sizebuf_t::cursize, data, sizebuf_t::data, image_height, image_width, Mem_Alloc, MSG_BeginReading(), MSG_ReadBytes(), MSG_ReadLittleLong(), name, NULL, and tempmempool.
Referenced by Mod_Q1BSP_LoadTextures(), and W_GetTextureBGRA().
unsigned char * W_GetLumpName | ( | const char * | name, |
fs_offset_t * | returnfilesize ) |
Definition at line 114 of file wad.c.
References cls, Con_Print(), lumpinfo_t::filepos, FS_LoadFile(), wadstate_t::gfx, wadstate_t::gfx_base, i, wadinfo_t::infotableofs, LittleLong, mwad_t::lumps, Mem_Free, lumpinfo_t::name, name, NULL, mwad_t::numlumps, wadinfo_t::numlumps, client_static_t::permanentmempool, lumpinfo_t::size, W_CleanupName(), W_SwapLumps(), and wad.
Referenced by Image_GetStockPicSize(), and loadimagepixelsbgra().
unsigned char * W_GetTextureBGRA | ( | char * | name | ) |
Definition at line 277 of file wad.c.
References cls, Con_Print(), data, sizebuf_t::data, FS_Read(), FS_Seek(), wadstate_t::hlwads, i, image_height, image_width, int(), Mem_Alloc, Mem_ExpandableArray_IndexRange(), Mem_ExpandableArray_NewArray(), Mem_ExpandableArray_RecordAtIndex(), Mem_Free, memexpandablearray_t::mempool, MSG_InitReadBuffer(), name, NULL, client_static_t::permanentmempool, tempmempool, w, W_CleanupName(), W_ConvertWAD3TextureBGRA(), and wad.
Referenced by Mod_Q1BSP_LoadTextures().
Definition at line 165 of file wad.c.
References cls, CON_ERROR, Con_Print(), Con_Printf(), FS_Close(), FS_OpenVirtualFile(), FS_Read(), FS_Seek(), wadstate_t::hlwads, wadinfo_t::identification, wadinfo_t::infotableofs, LittleLong, Mem_Alloc, Mem_ExpandableArray_AllocRecord(), Mem_ExpandableArray_NewArray(), Mem_Free, memexpandablearray_t::mempool, NULL, wadinfo_t::numlumps, client_static_t::permanentmempool, w, W_SwapLumps(), and wad.
Referenced by Mod_Q1BSP_ParseWadsFromEntityLump().
|
static |
Definition at line 75 of file wad.c.
References lumpinfo_t::disksize, lumpinfo_t::filepos, i, LittleLong, name, lumpinfo_t::size, size, and W_CleanupName().
Referenced by W_GetLumpName(), and W_LoadTextureWadFile().
Definition at line 87 of file wad.c.
References FS_Close(), wadstate_t::gfx_base, wadstate_t::hlwads, i, Mem_ExpandableArray_FreeArray(), Mem_ExpandableArray_IndexRange(), Mem_ExpandableArray_RecordAtIndex(), Mem_Free, NULL, w, and wad.
Referenced by FS_Rescan().
|
static |
Definition at line 42 of file wad.c.
Referenced by W_GetLumpName(), W_GetTextureBGRA(), W_LoadTextureWadFile(), and W_UnloadAll().