Exemplo n.º 1
0
 public ScrollLayer(Layer view, Rectangle boundingRect)
 {
     innerView = view;
     ScreenViewport = boundingRect;
     VirtualViewport = boundingRect;
     currentView = boundingRect;
     graphicViewport = new Viewport(boundingRect.X, boundingRect.Y,
         Math.Min(boundingRect.Width, boundingRect.Height),
         Math.Max(boundingRect.Width, boundingRect.Height));
     graphicViewport.MaxDepth = 0.9f;
     graphicViewport.MinDepth = 0.1f;
 }
Exemplo n.º 2
0
 public void RemoveLayer(Layer view)
 {
     layers.Remove(view);
 }
Exemplo n.º 3
0
 public void AddLayer(Layer view)
 {
     layers.Add(view);
 }