1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Implement spawning particles with node texture appearance

This commit is contained in:
sfan5 2020-05-22 14:17:03 +02:00
parent 15ba75e4cf
commit 9d6e7e48d6
10 changed files with 145 additions and 20 deletions

View file

@ -42,7 +42,7 @@ class Particle : public scene::ISceneNode
video::ITexture *texture,
v2f texpos,
v2f texsize,
video::SColor color = video::SColor(0xFFFFFFFF)
video::SColor color
);
~Particle() = default;
@ -171,7 +171,7 @@ public:
protected:
static bool getNodeParticleParams(const MapNode &n, const ContentFeatures &f,
ParticleParameters &p, video::ITexture **texture, v2f &texpos,
v2f &texsize, video::SColor *color);
v2f &texsize, video::SColor *color, u8 tilenum = 0);
void addParticle(Particle* toadd);