Exemple #1
0
        public void UpdateBounds()
        {
            if (this.camera.LastViewport == null)
            {
                return;
            }

            int left, top, width, height;

            this.camera.LastViewport.GetActualDimensions(out left, out top, out width, out height);
            this.bounds = new Miyagi.Common.Data.Rectangle(left, top, width, height);
        }
Exemple #2
0
 public MogreViewport(Camera camera, int width, int height)
 {
     this.camera = camera;
     this.bounds = new Miyagi.Common.Data.Rectangle(0, 0, width, height);
     this.UpdateBounds();
 }
Exemple #3
0
 public static bool SetZoning(Rectangle r, Haswell.Zones z)
 {
     return(SetZoning(r.Location, new Point(r.Right, r.Bottom), z));
 }