Inheritance: IDisposable
示例#1
0
 public void Build(GraphicsDeviceManager gdm, ContentManager cm, VoxMapConfig vc)
 {
     vRenderer = new VoxelRenderer(gdm, cm);
     vRenderer.LoadEffect(vc.FXFile);
     vRenderer.LoadVMap(Path.Combine(vc.RootPath, vc.TexVoxMap));
     vRenderer.Hook(vc.VoxState);
     foreach(var r in vc.VoxState.World.regions) {
         if(r != null) {
             vc.VoxState.VWorkPool.AddWork(new RegionTesselator(r, vRenderer));
         }
     }
 }
 public RegionTesselator(Region r, VoxelRenderer vg)
 {
     region = r;
     renderer = vg;
 }