示例#1
0
 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);
 }
示例#2
0
 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;
 }
示例#3
0
 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;
 }
示例#4
0
 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);
 }