Example #1
0
        public override void AgregarParticulas(int cantidad)
        {
            SmokePart p;
            int       i;
            Vector3   dire;
            int       tex;

            for (i = this.ParticlesAmount; i < (this.ParticlesAmount + cantidad); i++)
            {
                dire = this.RandVec3();
                tex  = r.Next(0, this.Textures.Count);
                p    = new SmokePart(this.InitCoords, this.Speed, this.Acceleration, dire, this.InitialColor, this.InitialAlpha, this.PointSizeMin, this.TimeToLive_Particle, this.Textures[tex], this.SizeSpeed);
                this.Particles.Add(p);
                p.Index_ParticleVertex = i;
                this.ParticlesVertex.Add(p.CV_PositionColored);
            }
            this.ParticlesAmount += cantidad;
        }
 public override void AgregarParticulas(int cantidad)
 {
     SmokePart p;
     int i;
     Vector3 dire;
     int tex;
     for (i = this.ParticlesAmount; i < (this.ParticlesAmount + cantidad); i++)
     {
         dire = this.RandVec3();
         tex = r.Next(0, this.Textures.Count);
         p = new SmokePart(this.InitCoords, this.Speed, this.Acceleration, dire, this.InitialColor, this.InitialAlpha, this.PointSizeMin, this.TimeToLive_Particle, this.Textures[tex],this.SizeSpeed);
         this.Particles.Add(p);
         p.Index_ParticleVertex = i;
         this.ParticlesVertex.Add(p.CV_PositionColored);
     }
     this.ParticlesAmount += cantidad;
 }