Пример #1
0
 public void clearSubRenderers(bool clearSelf, VoxelTree control)
 {
     if (clearSelf && renderer != null)
     {
         //control.enqueueJob(new DropRendererJob(renderer));
         renderer.clear();
         renderer = null;
         return;
     }
     for (byte xi = 0; xi < CHILD_DIMENSION; ++xi)
     {
         for (byte yi = 0; yi < CHILD_DIMENSION; ++yi)
         {
             for (byte zi = 0; zi < CHILD_DIMENSION; ++zi)
             {
                 if (children[xi, yi, zi].GetType() != typeof(Voxel))
                 {
                     ((VoxelBlock)children[xi, yi, zi]).clearSubRenderers(true, control);
                 }
             }
         }
     }
 }
Пример #2
0
 public override void execute()
 {
     lock (rend.control) {
         rend.clear();
     }
 }