summaryrefslogtreecommitdiff
path: root/src/engine/renderparticles.cpp
diff options
context:
space:
mode:
authorxolatile2025-08-10 14:30:56 +0200
committerxolatile2025-08-10 14:30:56 +0200
commitbec4167d29a68efd0cd2da36143e7f1c78a119a0 (patch)
treef5f75c25e412b000850c4e466db94ee4b804dfa2 /src/engine/renderparticles.cpp
parent757096e7df15c14b9b10352fa91663483f9e34f8 (diff)
downloadxolatile-badassbug-bec4167d29a68efd0cd2da36143e7f1c78a119a0.tar.xz
xolatile-badassbug-bec4167d29a68efd0cd2da36143e7f1c78a119a0.tar.zst
Cleared all warnings on GCC...
Diffstat (limited to 'src/engine/renderparticles.cpp')
-rw-r--r--src/engine/renderparticles.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/engine/renderparticles.cpp b/src/engine/renderparticles.cpp
index 637dcb2..a3cc91f 100644
--- a/src/engine/renderparticles.cpp
+++ b/src/engine/renderparticles.cpp
@@ -138,9 +138,9 @@ struct partrenderer {
}
virtual ~partrenderer() {
}
- virtual void init(int n) { }
+ virtual void init(int) { }
virtual void reset() = 0;
- virtual void resettracked(physent *owner) { }
+ virtual void resettracked(physent *) { }
virtual particle *addpart(const vec &o, const vec &d, int fade, int color, float size, int gravity = 0) = 0;
virtual void update() { }
virtual void render() = 0;
@@ -201,8 +201,7 @@ struct listrenderer : partrenderer {
}
virtual ~listrenderer() {
}
- virtual void killpart(listparticle *p) {
- }
+ virtual void killpart(listparticle *) {}
void reset() {
if(!list) return;
listparticle *p = list;
@@ -301,6 +300,7 @@ struct meterrenderer : listrenderer {
glEnable(GL_BLEND);
}
void renderpart(listparticle *p, const vec &o, const vec &d, int blend, int ts) {
+ (void) ts; (void) d; (void) blend;
int basetype = type&0xFF;
float scale = FONTH*p->size/80.0f, right = 8, left = p->progress/100.0f*right;
matrix4x3 m(camright, vec(camup).neg(), vec(camdir).neg(), o);
@@ -362,6 +362,7 @@ struct textrenderer : listrenderer {
if(p->text && p->flags&1) delete[] p->text;
}
void renderpart(listparticle *p, const vec &o, const vec &d, int blend, int ts) {
+ (void) ts; (void) d;
float scale = p->size/80.0f, xoff = -(text_width(p->text) + ((p->flags>>1)&7)*FONTH)/2, yoff = 0;
matrix4x3 m(camright, vec(camup).neg(), vec(camdir).neg(), o);
m.scale(scale);
@@ -387,6 +388,7 @@ struct texticonrenderer : listrenderer {
gle::end();
}
void renderpart(listparticle *p, const vec &o, const vec &d, int blend, int ts) {
+ (void) ts; (void) d;
float scale = p->size/80.0f, xoff = p->val, yoff = 0;
matrix4x3 m(camright, vec(camup).neg(), vec(camdir).neg(), o);
m.scale(scale);
@@ -485,6 +487,7 @@ static inline void seedpos(particleemitter &pe, const vec &o, const vec &d, int
template<>
inline void seedpos<PT_TAPE>(particleemitter &pe, const vec &o, const vec &d, int fade, float size, int grav) {
+ (void) pe; (void) o; (void) fade; (void) grav;
pe.extendbb(d, size);
}