mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-02 05:52:15 +00:00
models: show number commands in model
This commit is contained in:
parent
cfda9919e3
commit
b3eb00673b
2 changed files with 13 additions and 6 deletions
|
@ -1106,9 +1106,6 @@ Mod_LoadModel_MD3(const char *mod_name, const void *buffer, int modfilelen,
|
||||||
pheader->ofs_glcmds = ofs_glcmds;
|
pheader->ofs_glcmds = ofs_glcmds;
|
||||||
pheader->ofs_end = ofs_end;
|
pheader->ofs_end = ofs_end;
|
||||||
|
|
||||||
R_Printf(PRINT_DEVELOPER, "mesh num tris %d / num vert %d / commands %d\n",
|
|
||||||
pheader->num_tris, pheader->num_xyz, pheader->num_glcmds);
|
|
||||||
|
|
||||||
num_xyz = 0;
|
num_xyz = 0;
|
||||||
num_tris = 0;
|
num_tris = 0;
|
||||||
|
|
||||||
|
@ -2119,6 +2116,8 @@ Mod_LoadLimits(const char *mod_name, void *extradata, modtype_t type)
|
||||||
{
|
{
|
||||||
if (type == mod_alias)
|
if (type == mod_alias)
|
||||||
{
|
{
|
||||||
|
dmdxmesh_t *mesh_nodes;
|
||||||
|
int num_mesh_nodes, i;
|
||||||
dmdx_t *pheader;
|
dmdx_t *pheader;
|
||||||
|
|
||||||
pheader = (dmdx_t *)extradata;
|
pheader = (dmdx_t *)extradata;
|
||||||
|
@ -2135,6 +2134,17 @@ Mod_LoadLimits(const char *mod_name, void *extradata, modtype_t type)
|
||||||
__func__, mod_name, pheader->skinwidth, MAX_LBM_HEIGHT);
|
__func__, mod_name, pheader->skinwidth, MAX_LBM_HEIGHT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
R_Printf(PRINT_DEVELOPER, "%s: model %s num tris %d / num vert %d / commands %d\n",
|
||||||
|
__func__, mod_name, pheader->num_tris, pheader->num_xyz, pheader->num_glcmds);
|
||||||
|
|
||||||
|
num_mesh_nodes = pheader->num_meshes;
|
||||||
|
mesh_nodes = (dmdxmesh_t *)((char*)pheader + pheader->ofs_meshes);
|
||||||
|
|
||||||
|
for (i = 0; i < num_mesh_nodes; i++)
|
||||||
|
{
|
||||||
|
R_Printf(PRINT_DEVELOPER, "%s: model %s mesh #%d: %d commands\n",
|
||||||
|
__func__, mod_name, i, mesh_nodes[i].num);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1344,9 +1344,6 @@ Mod_LoadModel_MD5(const char *mod_name, const void *buffer, int modfilelen,
|
||||||
pheader->ofs_glcmds = ofs_glcmds;
|
pheader->ofs_glcmds = ofs_glcmds;
|
||||||
pheader->ofs_end = ofs_end;
|
pheader->ofs_end = ofs_end;
|
||||||
|
|
||||||
R_Printf(PRINT_DEVELOPER, "mesh num tris %d / num vert %d / commands %d\n",
|
|
||||||
pheader->num_tris, pheader->num_xyz, pheader->num_glcmds);
|
|
||||||
|
|
||||||
for(i = 0; i < md5file->num_frames; i ++)
|
for(i = 0; i < md5file->num_frames; i ++)
|
||||||
{
|
{
|
||||||
daliasxframe_t *frame = (daliasxframe_t *)(
|
daliasxframe_t *frame = (daliasxframe_t *)(
|
||||||
|
|
Loading…
Reference in a new issue