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