Mouse position & selection; warning fixes

This commit is contained in:
2023-02-02 23:52:15 +00:00
parent fcf6f76949
commit 7e1eaaae64
22 changed files with 347 additions and 137 deletions

View File

@@ -1,4 +1,5 @@
#include "particle.h"
#include "stb_ds.h"
struct emitter make_emitter()
{
@@ -15,6 +16,8 @@ struct emitter set_emitter(struct emitter e)
for (int i = 0; i < arrlen(e.particles)-1; i++) {
e.particles[i].next = &e.particles[i+1];
}
return e;
}
void free_emitter(struct emitter e)
@@ -52,4 +55,4 @@ void emitter_step(struct emitter e, double dt)
e.first = &e.particles[i];
}
}
}
}