2024-03-25 14:59:00 +08:00
|
|
|
|
|
|
|
#include "camera.h"
|
|
|
|
#include "particle.h"
|
|
|
|
#include "app.h"
|
|
|
|
#include "render_util.h"
|
|
|
|
#include "util/assert.h"
|
|
|
|
#include <easyx.h>
|
|
|
|
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
|
|
|
|
void particle_Render(System_Particle *sys) {
|
2024-04-16 21:08:21 +08:00
|
|
|
for (int l = 0; l < PARTICLE_LAYER_COUNT; l++)
|
|
|
|
for (tree_Node *i = tree_FirstNode(sys->parts[l]);
|
|
|
|
i != NULL;
|
|
|
|
i = tree_Node_Next(i)) {
|
|
|
|
Particle *p = (Particle *)i->data;
|
2024-03-25 14:59:00 +08:00
|
|
|
|
2024-04-16 21:08:21 +08:00
|
|
|
render_SetModes(*p->mode, p->addtime);
|
|
|
|
render_FillCircleW(sys->super, p->pos, p->size);
|
|
|
|
}
|
2024-03-25 14:59:00 +08:00
|
|
|
}
|
|
|
|
}
|