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); }
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); }
private extern void SetGenerator(ParticleGenerator value);
private extern void GetGenerator(ref ParticleGenerator value);
private extern void Instantiate(float x, float y, float width, float height, Texture2D texture, ParticleGenerator generator, uint maxParticles, ref int id, ref uint ptr);
public ParticleEmitter(ParticleGenerator generator, Texture2D texture, uint maxParticles) : this(generator, texture, Vector2.Zero, Vector2.Zero, maxParticles) { }
public ParticleEmitter(ParticleGenerator generator, Texture2D texture, Vector2 position, Vector2 size, uint maxParticles) : this(generator, texture, position.x, position.y, size.x, size.y, maxParticles) { }