Example #1
0
        public static ParticleGenerator Empty()
        {
            ParticleGenerator generator = new ParticleGenerator();

            generator.startSize = new Vector2(32.0f);
            generator.baseScale = new Vector2(1.0f);
            generator.color     = Color.White;

            return(generator);
        }
Example #2
0
        public ParticleEmitter(ParticleGenerator generator, Texture2D texture, float x, float y, float width, float height, uint maxParticles)
        {
            this.generator = generator;

            transform = Transform.Empty();

            localBounds   = Rectf.Empty();
            globalbounds  = Rectf.Empty();
            textureSource = Rectf.Empty();

            color = Color.White;

            Instantiate(x, y, width, height, texture, generator, maxParticles, ref id, ref ptr);
        }
Example #3
0
 private extern void SetGenerator(ParticleGenerator value);
Example #4
0
 private extern void GetGenerator(ref ParticleGenerator value);
Example #5
0
 private extern void Instantiate(float x, float y, float width, float height, Texture2D texture, ParticleGenerator generator, uint maxParticles, ref int id, ref uint ptr);
Example #6
0
 public ParticleEmitter(ParticleGenerator generator, Texture2D texture, uint maxParticles)
     : this(generator, texture, Vector2.Zero, Vector2.Zero, maxParticles)
 {
 }
Example #7
0
 public ParticleEmitter(ParticleGenerator generator, Texture2D texture, Vector2 position, Vector2 size, uint maxParticles)
     : this(generator, texture, position.x, position.y, size.x, size.y, maxParticles)
 {
 }