summaryrefslogtreecommitdiff
path: root/src/engine/animmodel.h
diff options
context:
space:
mode:
authorxolatile2025-08-10 00:19:46 +0200
committerxolatile2025-08-10 00:19:46 +0200
commit757096e7df15c14b9b10352fa91663483f9e34f8 (patch)
treedcad789d0abd8be76463277dc01bf32c4e6a527b /src/engine/animmodel.h
parentb2c89d7060e99a36c8c7ac897b7386686c74deac (diff)
downloadxolatile-badassbug-757096e7df15c14b9b10352fa91663483f9e34f8.tar.xz
xolatile-badassbug-757096e7df15c14b9b10352fa91663483f9e34f8.tar.zst
all
Diffstat (limited to 'src/engine/animmodel.h')
-rw-r--r--src/engine/animmodel.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/engine/animmodel.h b/src/engine/animmodel.h
index 51d09e8..07143a2 100644
--- a/src/engine/animmodel.h
+++ b/src/engine/animmodel.h
@@ -86,7 +86,7 @@ struct animmodel : model {
void setkey() {
key = &shaderparamskey::keys[*this];
}
- void setshaderparams(mesh *m, const animstate *as) {
+ void setshaderparams(const animstate *as) {
if(!Shader::lastshader) return;
float mincolor = as->cur.anim&ANIM_FULLBRIGHT ? fullbrightmodels/100.0f : 0.0f;
if(fullbright) {
@@ -140,7 +140,7 @@ struct animmodel : model {
//~if(force) cleanup();
loadshader();
}
- void setshader(mesh *m, const animstate *as) {
+ void setshader(mesh *m) {
m->setshader(loadshader());
}
void bind(mesh *b, const animstate *as) {
@@ -152,8 +152,8 @@ struct animmodel : model {
else /*if(as->cur.anim&ANIM_SHADOW)*/ SETMODELSHADER(b, notexturemodel);
return;
}
- setshader(b, as);
- setshaderparams(b, as);
+ setshader(b);
+ setshaderparams(as);
int activetmu = 0;
if(tex!=lasttex) {
glBindTexture(GL_TEXTURE_2D, tex->id);
@@ -366,8 +366,8 @@ struct animmodel : model {
bool hasframes(int i, int n) const { return i>=0 && i+n<=totalframes(); }
int clipframes(int i, int n) const { return min(n, totalframes() - i); }
virtual void cleanup() {}
- virtual void preload(part *p) {}
- virtual void render(const animstate *as, float pitch, const vec &axis, const vec &forward, dynent *d, part *p) {}
+ virtual void preload(part *) {}
+ virtual void render(const animstate *, float , const vec &, const vec &, dynent *, part *) {}
void bindpos(GLuint ebuf, GLuint vbuf, void *v, int stride) {
if(lastebuf!=ebuf) {
gle::bindebo(ebuf);
@@ -423,7 +423,7 @@ struct animmodel : model {
}
}
};
- virtual meshgroup *loadmeshes(const char *name, va_list args) { return NULL; }
+ virtual meshgroup *loadmeshes(const char *, va_list ) { return NULL; }
meshgroup *sharemeshes(const char *name, ...) {
static hashnameset<meshgroup *> meshgroups;
if(!meshgroups.access(name)) {