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); }
public MogreViewport(Camera camera, int width, int height) { this.camera = camera; this.bounds = new Miyagi.Common.Data.Rectangle(0, 0, width, height); this.UpdateBounds(); }
public static bool SetZoning(Rectangle r, Haswell.Zones z) { return(SetZoning(r.Location, new Point(r.Right, r.Bottom), z)); }