Beispiel #1
0
 private void RenderContext(int layer)
 {
     if (renderContext != null)
     {
         if (layerVisibility[layer])
         {
             renderContext.EnableLayer(layer);
         }
         else
         {
             renderContext.DisableLayer(layer);
         }
     }
 }
Beispiel #2
0
        public void ToggleLayerVisibility(int layer)
        {
            layerVisibility[layer] = !layerVisibility[layer];

            if (renderContext != null)
            {
                if (layerVisibility[layer])
                {
                    renderContext.EnableLayer(layer);
                }
                else
                {
                    renderContext.DisableLayer(layer);
                }
            }
        }