예제 #1
0
 public void OnResolutionUpdate()
 {
     Objects.Parameters.Size newSize = new Objects.Parameters.Size(
         this.Size.Width,
         this.Size.Height
         );
     Render.Resolution = newSize;
     Camera.Default.SetSize(Render.Resolution);
     this.display.Initialize(new System.Drawing.Size((int)newSize.Width, (int)newSize.Height));
 }
예제 #2
0
 public GeometryObject(string name, Shape shape, Color color, float borderThickness, bool fill, Vector2D position, ShadowEngine.Objects.Parameters.Size size) : base(name)
 {
     this.Shape           = shape;
     this.Position        = position;
     this.Size            = size;
     this.Color           = color;
     this.Fill            = fill;
     this.BorderThickness = borderThickness;
     this.Name            = name;
 }