summaryrefslogtreecommitdiff
path: root/src/engine/renderparticles.cpp
diff options
context:
space:
mode:
authorxolatile2025-08-04 18:17:30 +0200
committerxolatile2025-08-04 18:17:30 +0200
commita89dca11cf475e0bd1399cf5d5c5135d00495ec3 (patch)
tree4d551a7f4193bc89a0b8560e955f4f874101b388 /src/engine/renderparticles.cpp
parent9d533fa4d82935a083ff93a09aed95baea9fbfd4 (diff)
downloadxolatile-badassbug-a89dca11cf475e0bd1399cf5d5c5135d00495ec3.tar.xz
xolatile-badassbug-a89dca11cf475e0bd1399cf5d5c5135d00495ec3.tar.zst
Minor changes...
Diffstat (limited to 'src/engine/renderparticles.cpp')
-rw-r--r--src/engine/renderparticles.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/engine/renderparticles.cpp b/src/engine/renderparticles.cpp
index ad9e9d8..c6994bf 100644
--- a/src/engine/renderparticles.cpp
+++ b/src/engine/renderparticles.cpp
@@ -178,7 +178,6 @@ struct partrenderer
virtual void update() { }
virtual void render() = 0;
virtual bool haswork() = 0;
- virtual int count() = 0; //for debug
virtual void cleanup() {}
virtual void seedemitter(particleemitter &pe, const vec &o, const vec &d, int fade, float size, int gravity)
@@ -226,26 +225,6 @@ struct partrenderer
}
}
}
-
- const char *debuginfo()
- {
- formatstring(info, "%d\t%s(", count(), partnames[type&0xFF]);
- if(type&PT_GLARE) concatstring(info, "g,");
- if(type&PT_SOFT) concatstring(info, "s,");
- if(type&PT_LERP) concatstring(info, "l,");
- if(type&PT_MOD) concatstring(info, "m,");
- if(type&PT_RND4) concatstring(info, "r,");
- if(type&PT_FLIP) concatstring(info, "f,");
- if(collide) concatstring(info, "c,");
- int len = strlen(info);
- info[len-1] = info[len-1] == ',' ? ')' : '\0';
- if(texname)
- {
- const char *title = strrchr(texname, '/');
- if(title) concformatstring(info, ": %s", title+1);
- }
- return info;
- }
};
struct listparticle : particle
@@ -984,25 +963,9 @@ void removetrackedparticles(physent *owner)
VARP(particleglare, 0, 2, 100);
-VARN(debugparticles, dbgparts, 0, 0, 1);
-
-void debugparticles()
-{
- if(!dbgparts) return;
- int n = sizeof(parts)/sizeof(parts[0]);
- pushhudmatrix();
- hudmatrix.ortho(0, FONTH*n*2*screenw/float(screenh), FONTH*n*2, 0, -1, 1); //squeeze into top-left corner
- flushhudmatrix();
- hudshader->set();
- loopi(n) draw_text(parts[i]->info, FONTH, (i+n/2)*FONTH);
- pophudmatrix();
-}
-
void renderparticles(bool mainpass)
{
canstep = mainpass;
- //want to debug BEFORE the lastpass render (that would delete particles)
- if(dbgparts && mainpass) loopi(sizeof(parts)/sizeof(parts[0])) parts[i]->debuginfo();
if(glaring && !particleglare) return;