Ejemplo n.º 1
0
 internal Camera2D(float x, float y, float vieww, float viewh, float totalw, float totalh, Padding stpad = null, float maxz = 0.25f, float smoothfactor = 0.08f)
 {
     currentView = new RectangleF(x, y, vieww, viewh);
     targetView = currentView.Clone();
     stgxlim = totalw;
     stgylim = totalh;
     stagepadding = stpad != null ? stpad : new Padding(0, 0, 0, 0);
     maxzoom = maxz;
     smoothness = smoothfactor;
 }