public CircleShape(double x, double y, double radius, IDrawingApi drawingApi) : base(drawingApi) { this._x = x; this._y = y; this._radius = radius; }
public Circle(int x, int y, int angle, IDrawingApi drawingApi) : base(drawingApi) { _x = x; _y = y; _angle = angle; }
public CircleShape(double x, double y, double radius, IDrawingApi drawingApi) : base(drawingApi) { _x = x; _y = y; _radius = radius; }
public Circle(int x, int y, int radius, IDrawingApi drawingAPI) { this.x = x; this.y = y; this.radius = radius; this.drawingAPI = drawingAPI; }
public Squre(int x, int y, int width, int height, IDrawingApi drawingApi) : base(drawingApi) { _x = x; _y = y; _width = width; _height = height; }
public void TestBridge(IDrawingApi drawingApi) { var circle = new Circle(0, 0, 10, drawingApi); circle.Draw(); // OUTPUT: Drawing circle. }
public CircleShape(double x, double y, double radius, IDrawingApi drawingApi) : base(drawingApi) { this._x = x; this._y = y; this._radius = radius; }
protected Shape(IDrawingApi drawingApi) { DrawingApi = drawingApi; }
/// <summary>Draws a filled rectangle.</summary> /// <param name="batch">The batch to draw to.</param> /// <param name="drawingApi">The drawing API to use.</param> /// <param name="bounds">The target rectangle to draw to.</param> /// <param name="color">The color of the rectangle</param> /// <param name="depth">The depth to draw to.</param> public static void FillRectangle(this SpriteBatch batch, IDrawingApi drawingApi, XnaRectangle bounds, Color color, float depth = 0f) { batch.Draw(drawingApi.WhitePixel, bounds, null, color, 0F, Vector2.Zero, SpriteEffects.None, depth); }
/// <summary>Draws a filled rectangle.</summary> /// <param name="batch">The batch to draw to.</param> /// <param name="drawingApi">The drawing API to use.</param> /// <param name="bounds">The target rectangle to draw to.</param> /// <param name="color">The color of the rectangle</param> /// <param name="depth">The depth to draw to.</param> public static void FillRectangle(this SpriteBatch batch, IDrawingApi drawingApi, XTileRectangle bounds, Color color, float depth = 0f) => batch.FillRectangle(drawingApi, bounds.ToXnaRectangle(), color, depth);
/// <summary>Draws a filled rectangle.</summary> /// <param name="batch">The batch to draw to.</param> /// <param name="drawingApi">The drawing API to use.</param> /// <param name="x">The top-left x-coordinate of the rectangle.</param> /// <param name="y">The top-left y-coordinate of the rectangle.</param> /// <param name="width">The width of the rectangle.</param> /// <param name="height">The height of the rectangle.</param> /// <param name="color">The color of the rectangle</param> /// <param name="depth">The depth to draw to.</param> public static void FillRectangle(this SpriteBatch batch, IDrawingApi drawingApi, int x, int y, int width, int height, Color color, float depth = 0f) => batch.FillRectangle(drawingApi, new XnaRectangle(x, y, width, height), color, depth);
protected Shape(IDrawingApi drawingApi) { this.DrawingApi = drawingApi; }
public Shape(IDrawingApi drawingApi) { DrawingApi = drawingApi; }
public MyLogo(int x, int y, IDrawingApi drawingApi) : base(x, y, 10, drawingApi) { _x = x; _y = y; }
protected Shape(IDrawingApi drawingApi) { this.DrawingApi = drawingApi; }