Go to the source code of this file.
◆ MAX_MOD_KNOWN
#define MAX_MOD_KNOWN 512 |
◆ CalcSurfaceExtents()
Definition at line 500 of file vk_model.c.
502 float mins[2], maxs[2], val;
506 int bmins[2], bmaxs[2];
508 mins[0] = mins[1] = 999999;
509 maxs[0] = maxs[1] = -99999;
513 for (
i=0 ;
i<
s->numedges ;
i++)
521 for (
j=0 ;
j<2 ;
j++)
523 val =
v->position[0] * tex->
vecs[
j][0] +
524 v->position[1] * tex->
vecs[
j][1] +
525 v->position[2] * tex->
vecs[
j][2] +
534 for (
i=0 ;
i<2 ;
i++)
536 bmins[
i] = floor(mins[
i]/16);
537 bmaxs[
i] = ceil(maxs[
i]/16);
539 s->texturemins[
i] = bmins[
i] * 16;
540 s->extents[
i] = (bmaxs[
i] - bmins[
i]) * 16;
Referenced by Mod_LoadFaces().
◆ Mod_ClusterPVS()
Definition at line 124 of file vk_model.c.
126 if (cluster == -1 || !model->
vis)
◆ Mod_DecompressVis()
◆ Mod_ForName()
◆ Mod_Free()
◆ Mod_FreeAll()
◆ Mod_Init()
◆ Mod_LoadAliasModel()
Definition at line 929 of file vk_model.c.
932 dmdl_t *pinmodel, *pheader;
936 int *pincmd, *poutcmd;
991 for (
j=0 ;
j<3 ;
j++)
1008 memcpy (poutframe->
name, pinframe->
name,
sizeof(poutframe->
name));
1009 for (
j=0 ;
j<3 ;
j++)
1025 pincmd = (
int *) ((
byte *)pinmodel + pheader->
ofs_glcmds);
1026 poutcmd = (
int *) ((
byte *)pheader + pheader->
ofs_glcmds);
Referenced by Mod_ForName().
◆ Mod_LoadBrushModel()
◆ Mod_LoadEdges()
◆ Mod_LoadFaces()
◆ Mod_LoadLeafs()
◆ Mod_LoadLighting()
◆ Mod_LoadMarksurfaces()
◆ Mod_LoadNodes()
◆ Mod_LoadPlanes()
◆ Mod_LoadSpriteModel()
◆ Mod_LoadSubmodels()
◆ Mod_LoadSurfedges()
◆ Mod_LoadTexinfo()
◆ Mod_LoadVertexes()
◆ Mod_LoadVisibility()
◆ Mod_Modellist_f()
◆ Mod_PointInLeaf()
◆ Mod_SetParent()
◆ R_BeginRegistration()
void R_BeginRegistration |
( |
char * |
model | ) |
|
◆ R_EndRegistration()
◆ R_RegisterModel()
struct model_s* R_RegisterModel |
( |
char * |
name | ) |
|
◆ RadiusFromBounds()
◆ Vk_BeginBuildingLightmaps()
◆ Vk_BuildPolygonFromSurface()
◆ Vk_CreateSurfaceLightmap()
◆ Vk_EndBuildingLightmaps()
◆ loadmodel
Definition at line 25 of file vk_model.c.
Referenced by CalcSurfaceExtents(), GL_SubdivideSurface(), Mod_ForName(), Mod_LoadBrushModel(), Mod_LoadEdges(), Mod_LoadFaces(), Mod_LoadLeafs(), Mod_LoadLighting(), Mod_LoadMarksurfaces(), Mod_LoadNodes(), Mod_LoadPlanes(), Mod_LoadSubmodels(), Mod_LoadSurfedges(), Mod_LoadTexinfo(), Mod_LoadVertexes(), Mod_LoadVisibility(), and Vk_SubdivideSurface().
◆ mod_base
Definition at line 282 of file vk_model.c.
Referenced by Mod_LoadBrushModel(), Mod_LoadEdges(), Mod_LoadFaces(), Mod_LoadLeafs(), Mod_LoadLighting(), Mod_LoadMarksurfaces(), Mod_LoadNodes(), Mod_LoadPlanes(), Mod_LoadSubmodels(), Mod_LoadSurfedges(), Mod_LoadTexinfo(), Mod_LoadVertexes(), and Mod_LoadVisibility().
◆ mod_inline
◆ mod_known
◆ mod_novis
◆ mod_numknown
◆ modfilelen
◆ registration_sequence
int registration_sequence |
static vklightmapstate_t vk_lms
#define QVk_DebugSetObjectName(a, b, c)
float RadiusFromBounds(vec3_t mins, vec3_t maxs)
byte styles[MAXLIGHTMAPS]
void * Hunk_Begin(int maxsize)
void Mod_LoadNodes(lump_t *l)
short LittleShort(short l)
static void LM_InitBlock(void)
void Vk_BeginBuildingLightmaps(model_t *m)
qvktexture_t lightmap_textures[MAX_LIGHTMAPS *2]
void Hunk_Free(void *base)
VkDeviceMemory deviceMemory
Handle to Vulkan memory object.
void Mod_LoadVertexes(lump_t *l)
void Vk_SubdivideSurface(msurface_t *fa)
void Mod_LoadAliasModel(model_t *mod, void *buffer)
float verts[4][VERTEXSIZE]
int(* FS_LoadFile)(char *name, void **buf)
static qboolean LM_AllocBlock(int w, int h, int *x, int *y)
cvar_t *(* Cvar_Get)(char *name, char *value, int flags)
#define MAX_MAP_SURFEDGES
msurface_t ** firstmarksurface
void R_BuildLightMap(msurface_t *surf, byte *dest, int stride)
msurface_t ** marksurfaces
struct mnode_s * children[2]
int registration_sequence
void Mod_LoadFaces(lump_t *l)
void(* FS_FreeFile)(void *buf)
char * va(char *format,...)
model_t mod_known[MAX_MOD_KNOWN]
void Vk_FreeUnusedImages(void)
VkDescriptorSet descriptorSet
int registration_sequence
void(* Con_Printf)(int print_level, char *str,...)
int current_lightmap_texture
float LittleFloat(float l)
VmaAllocationInfo allocInfo
void Mod_LoadSubmodels(lump_t *l)
void Mod_SetParent(mnode_t *node, mnode_t *parent)
void Mod_LoadMarksurfaces(lump_t *l)
vec_t VectorLength(vec3_t v)
void QVk_CreateTexture(qvktexture_t *texture, const unsigned char *data, uint32_t width, uint32_t height, qvksampler_t samplerType)
void(* Sys_Error)(int err_level, char *str,...)
int registration_sequence
image_t * Vk_FindImage(char *name, imagetype_t type, qvksampler_t *samplerType)
#define DYNLIGHTMAP_OFFSET
void Mod_LoadLeafs(lump_t *l)
byte mod_novis[MAX_MAP_LEAFS/8]
void CalcSurfaceExtents(msurface_t *s)
byte * Mod_DecompressVis(byte *in, model_t *model)
#define VectorAdd(a, b, c)
void Vk_CreateSurfaceLightmap(msurface_t *surf)
static void LM_UploadBlock(qboolean dynamic)
void Mod_LoadVisibility(lump_t *l)
void Mod_LoadEdges(lump_t *l)
void Mod_LoadBrushModel(model_t *mod, void *buffer)
image_t * skins[MAX_MD2SKINS]
lightstyle_t * lightstyles
void Mod_LoadTexinfo(lump_t *l)
unsigned short firstsurface
model_t * Mod_ForName(char *name, qboolean crash)
void Mod_LoadSpriteModel(model_t *mod, void *buffer)
void R_SetCacheState(msurface_t *surf)
qvksampler_t vk_current_lmap_sampler
void Vk_BuildPolygonFromSurface(msurface_t *fa)
int allocated[BLOCK_WIDTH]
byte lightmap_buffer[4 *BLOCK_WIDTH *BLOCK_HEIGHT]
void Mod_LoadSurfedges(lump_t *l)
void Mod_LoadLighting(lump_t *l)
unsigned short numsurfaces
#define QVVKTEXTURE_CLEAR(i)
void * Hunk_Alloc(int size)
void Com_sprintf(char *dest, int size, char *fmt,...)
void Mod_LoadPlanes(lump_t *l)
void Mod_Free(model_t *mod)
void Vk_EndBuildingLightmaps(void)
model_t mod_inline[MAX_MOD_KNOWN]