public override void Initialize() { base.Initialize(); this.mesh = new Mesh() { Effect = (BaseEffect)(this.effect = new PlaneParticleEffect()), SkipStates = true }; this.SetupGeometry(); this.Initialized = true; this.LightingPostProcess.DrawGeometryLights += new Action(this.DrawLights); }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (this.LightingPostProcess != null) { this.LightingPostProcess.DrawGeometryLights -= new Action(this.DrawLights); } if (this.Geometry != null) { this.Geometry.Dispose(); this.Geometry = (ShaderInstancedIndexedPrimitives <VertexPositionTextureInstance, Matrix>)null; } if (this.mesh != null) { this.mesh.Dispose(); this.mesh = (Mesh)null; } this.effect = (PlaneParticleEffect)null; this.Initialized = false; }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (this.LightingPostProcess != null) this.LightingPostProcess.DrawGeometryLights -= new Action(this.DrawLights); if (this.Geometry != null) { this.Geometry.Dispose(); this.Geometry = (ShaderInstancedIndexedPrimitives<VertexPositionTextureInstance, Matrix>) null; } if (this.mesh != null) { this.mesh.Dispose(); this.mesh = (Mesh) null; } this.effect = (PlaneParticleEffect) null; this.Initialized = false; }
public override void Initialize() { base.Initialize(); this.mesh = new Mesh() { Effect = (BaseEffect) (this.effect = new PlaneParticleEffect()), SkipStates = true }; this.SetupGeometry(); this.Initialized = true; this.LightingPostProcess.DrawGeometryLights += new Action(this.DrawLights); }