Add Textured Particles

This commit is contained in:
Ricardo Luís Vaz Silva 2022-11-01 16:28:00 -03:00 committed by Christoph Oelckers
commit b6202ffc4c
5 changed files with 95 additions and 10 deletions

View file

@ -278,7 +278,7 @@ enum PSFlag
};
void P_SpawnParticle(FLevelLocals *Level, const DVector3 &pos, const DVector3 &vel, const DVector3 &accel, PalEntry color, double startalpha, int lifetime, double size,
double fadestep, double sizestep, int flags)
double fadestep, double sizestep, int flags, FTextureID texture, ERenderStyle style)
{
particle_t *particle = NewParticle(Level);
@ -296,6 +296,8 @@ void P_SpawnParticle(FLevelLocals *Level, const DVector3 &pos, const DVector3 &v
particle->size = size;
particle->sizestep = sizestep;
particle->notimefreeze = !!(flags & PS_NOTIMEFREEZE);
particle->texture = texture;
particle->style = style;
}
}