コード例 #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);
        }
コード例 #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();
 }
コード例 #3
0
 public static bool SetZoning(Rectangle r, Haswell.Zones z)
 {
     return(SetZoning(r.Location, new Point(r.Right, r.Bottom), z));
 }