mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-24 04:41:46 +00:00
models: md3/md5 show count of verts and tris
This commit is contained in:
parent
d137fe863c
commit
25dc9cf064
3 changed files with 7 additions and 4 deletions
|
@ -872,6 +872,9 @@ 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;
|
||||||
|
|
||||||
|
|
|
@ -306,9 +306,6 @@ AllocateFrames(md5_model_t *anim)
|
||||||
anim->num_tris += anim->meshes[i].num_tris;
|
anim->num_tris += anim->meshes[i].num_tris;
|
||||||
}
|
}
|
||||||
|
|
||||||
R_Printf(PRINT_DEVELOPER, "mesh num tris %d / num vert %d\n",
|
|
||||||
anim->num_tris, anim->num_verts);
|
|
||||||
|
|
||||||
anim->vertexIndices = (int *)
|
anim->vertexIndices = (int *)
|
||||||
malloc(sizeof(int) * anim->num_tris * 3);
|
malloc(sizeof(int) * anim->num_tris * 3);
|
||||||
anim->st = (vec2_t *)
|
anim->st = (vec2_t *)
|
||||||
|
@ -1347,6 +1344,9 @@ 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 *)(
|
||||||
|
|
|
@ -1771,7 +1771,7 @@ SelectSpawnPoint(edict_t *ent, vec3_t origin, vec3_t angles)
|
||||||
|
|
||||||
if (!spot)
|
if (!spot)
|
||||||
{
|
{
|
||||||
gi.error("Couldn't find spawn point %s\n", game.spawnpoint);
|
gi.error("Couldn't find spawn point '%s'\n", game.spawnpoint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue