Exemple #1
0
 public override void RebuildTrile(Trile trile)
 {
   TrileMaterializer trileMaterializer = new TrileMaterializer(trile, this.TrilesMesh, false);
   this.trileMaterializers.Add(trile, trileMaterializer);
   trileMaterializer.Geometry = trile.Geometry;
   trileMaterializer.DetermineFlags();
 }
Exemple #2
0
 public virtual void RebuildTrile(Trile trile)
 {
   TrileMaterializer trileMaterializer = new TrileMaterializer(trile, this.TrilesMesh);
   this.trileMaterializers.Add(trile, trileMaterializer);
   trileMaterializer.Rebuild();
 }
Exemple #3
0
 public override void Initialize()
 {
   this.TrilesMesh.Texture = (Dirtyable<Texture>) ((Texture) this.CMProvider.Global.Load<Texture2D>("Other Textures/FullWhite"));
   this.TrilesMesh.CustomRenderingHandler = new Mesh.RenderingHandler(this.DrawTriles);
   this.ArtObjectsMesh.CustomRenderingHandler = new Mesh.RenderingHandler(this.DrawArtObjects);
   this.CameraManager.ViewChanged += new Action(this.CullEverything);
   this.CameraManager.ProjectionChanged += new Action(this.CullEverything);
   this.fallbackMaterializer = new TrileMaterializer(this.LevelManager.SafeGetTrile(-1), this.TrilesMesh, true);
   this.fallbackMaterializer.Rebuild();
   this.fallbackMaterializer.Group.Texture = (Texture) this.CMProvider.Global.Load<Texture2D>("Other Textures/TransparentWhite");
   this.LevelManager.LevelChanging += (Action) (() =>
   {
     this.aoCache = new ArtObjectInstance[0];
     this.plCache = new BackgroundPlane[0];
     this.npCache = new NpcInstance[0];
     this.RegisterSatellites();
     this.UnRowify(false);
   });
 }