Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 private extern void SetGenerator(ParticleGenerator value);
Ejemplo n.º 4
0
 private extern void GetGenerator(ref ParticleGenerator value);
Ejemplo n.º 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);
Ejemplo n.º 6
0
 public ParticleEmitter(ParticleGenerator generator, Texture2D texture, uint maxParticles)
     : this(generator, texture, Vector2.Zero, Vector2.Zero, maxParticles)
 {
 }
Ejemplo n.º 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)
 {
 }