Example #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;
 }
Example #2
0
 public void RemoveLayer(Layer view)
 {
     layers.Remove(view);
 }
Example #3
0
 public void AddLayer(Layer view)
 {
     layers.Add(view);
 }