Ejemplo n.º 1
0
 public void Render()
 {
     foreach (var particle in LiveParticles)
     {
         ParticleSprite.Color    = ToColor(particle.Color);
         ParticleSprite.Position = particle.Position.Convert();
         ParticleSprite.Rotation = (float)(180f / Math.PI) * particle.Spin;
         ParticleSprite.Scale    = new Vector2f(particle.Size, particle.Size);
         ParticleSprite.Draw();
     }
 }
Ejemplo n.º 2
0
 public void Render()
 {
     //_batch.Clear();
     foreach (var particle in LiveParticles)
     {
         ParticleSprite.Color        = ToColor(particle.Color);
         ParticleSprite.Position     = particle.Position;
         ParticleSprite.Rotation     = MathUtility.Degrees(particle.Spin);
         ParticleSprite.UniformScale = particle.Size;
         //_batch.AddClone(ParticleSprite);
         ParticleSprite.Draw();
     }
     //_batch.Draw();
 }
 public void Render()
 {
     //_batch.Clear();
     foreach (var particle in LiveParticles)
     {
         ParticleSprite.Color    = ToColor(particle.Color);
         ParticleSprite.Position = particle.Position;
         ParticleSprite.Rotation = (float)(180f / Math.PI) * particle.Spin;
         ParticleSprite.Scale    = new Vector2f(particle.Size, particle.Size);
         //_batch.AddClone(ParticleSprite);
         ParticleSprite.Draw();
     }
     //_batch.Draw();
 }