diff options
| author | xolatile | 2025-08-10 14:30:56 +0200 |
|---|---|---|
| committer | xolatile | 2025-08-10 14:30:56 +0200 |
| commit | bec4167d29a68efd0cd2da36143e7f1c78a119a0 (patch) | |
| tree | f5f75c25e412b000850c4e466db94ee4b804dfa2 /src/engine/skelmodel.h | |
| parent | 757096e7df15c14b9b10352fa91663483f9e34f8 (diff) | |
| download | xolatile-badassbug-bec4167d29a68efd0cd2da36143e7f1c78a119a0.tar.xz xolatile-badassbug-bec4167d29a68efd0cd2da36143e7f1c78a119a0.tar.zst | |
Cleared all warnings on GCC...
Diffstat (limited to 'src/engine/skelmodel.h')
| -rw-r--r-- | src/engine/skelmodel.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/engine/skelmodel.h b/src/engine/skelmodel.h index ad5d34e..140acf8 100644 --- a/src/engine/skelmodel.h +++ b/src/engine/skelmodel.h @@ -169,16 +169,19 @@ struct skelmodel : animmodel { m.tcstride = sizeof(vert); } static inline void assignvert(vvertn &vv, int j, vert &v, blendcombo &c) { + (void)j;(void)c; vv.pos = v.pos; vv.norm = v.norm; vv.tc = v.tc; } inline void assignvert(vvertbump &vv, int j, vert &v, blendcombo &c) { + (void)c; vv.pos = v.pos; vv.tc = v.tc; vv.tangent = bumpverts[j].tangent; } static inline void assignvert(vvertnw &vv, int j, vert &v, blendcombo &c) { + (void)j; vv.pos = v.pos; vv.norm = v.norm; vv.tc = v.tc; @@ -251,7 +254,7 @@ struct skelmodel : animmodel { vdata += voffset; loopi(numverts) fillvert(vdata[i], verts[i]); } - void interpverts(const dualquat * RESTRICT bdata1, const dualquat * RESTRICT bdata2, bool tangents, void * RESTRICT vdata, skin &s) { + void interpverts(const dualquat * RESTRICT bdata1, const dualquat * RESTRICT bdata2, bool tangents, void * RESTRICT vdata) { const int blendoffset = ((skelmeshgroup *)group)->skel->numgpubones; bdata2 -= blendoffset; #define IPLOOP(type, dosetup, dotransform) \ @@ -284,6 +287,7 @@ struct skelmodel : animmodel { else s->setvariant(min(maxweights, g->vweights)-1, 0); } void render(const animstate *as, skin &s, vbocacheentry &vc) { + (void) as;(void) s;(void) vc; if(!Shader::lastshader) return; glDrawRangeElements_(GL_TRIANGLES, minvert, maxvert, elen, GL_UNSIGNED_SHORT, &((skelmeshgroup *)group)->edata[eoffset]); glde++; @@ -741,6 +745,7 @@ struct skelmodel : animmodel { loopv(antipodes) sc.bdata[antipodes[i].child].fixantipodal(sc.bdata[antipodes[i].parent]); } void concattagtransform(part *p, int i, const matrix4x3 &m, matrix4x3 &n) { + (void)i;(void)m;(void)n;(void)p; matrix4x3 t; t.mul(bones[tags[i].bone].base, tags[i].matrix); t.posttranslate(p->translate, p->model->scale); @@ -960,6 +965,7 @@ struct skelmodel : animmodel { gle::clearebo(); } void bindvbo(const animstate *as, vbocacheentry &vc, skelcacheentry *sc = NULL, blendcacheentry *bc = NULL) { + (void) bc; vvert *vverts = 0; bindpos(ebuf, vc.vbuf, &vverts->pos, vertsize); if(as->cur.anim&ANIM_NOSKIN) { @@ -995,6 +1001,7 @@ struct skelmodel : animmodel { } } void concattagtransform(part *p, int i, const matrix4x3 &m, matrix4x3 &n) { + (void)i;(void)m;(void)n;(void)p; skel->concattagtransform(p, i, m, n); } int addblendcombo(const blendcombo &c) { @@ -1131,7 +1138,7 @@ struct skelmodel : animmodel { (animcacheentry &)vc = sc; loopv(meshes) { skelmesh &m = *(skelmesh *)meshes[i]; - m.interpverts(sc.bdata, bc ? bc->bdata : NULL, tangents, vdata + m.voffset*vertsize, p->skins[i]); + m.interpverts(sc.bdata, bc ? bc->bdata : NULL, tangents, vdata + m.voffset*vertsize); } gle::bindvbo(vc.vbuf); glBufferData_(GL_ARRAY_BUFFER, vlen*vertsize, vdata, GL_STREAM_DRAW); |
