/// <summary> /// Draws the line. /// </summary> /// <param name="graphics">Graphics manager to use.</param> public override void Draw(GraphicsManager graphics) { graphics.DrawLine((float)x, (float)y, (float)(x + w), (float)(y + h), color); }
/// <summary> /// Initializes a new instance of the <see cref="SpriteList" /> class. /// </summary> /// <param name="graphics">Graphics manager to use</param> /// <param game="game">The game object that is holding the SpriteList.</param> public SpriteList(GraphicsManager graphics, Game game) { this.graphics = graphics; this.game = game; }
/// <summary> /// Overridable Draw() function that is looped. /// </summary> /// <param name="graphics">Graphics manager of the sprite.</param> public virtual void Draw(GraphicsManager graphics) { }
/// <summary> /// Draw function for the ellipse. /// </summary> /// <param name="graphics">Graphics manager to use.</param> public override void Draw(GraphicsManager graphics) { graphics.DrawEllipse((float)x, (float)y, (float)w, (float)h, color, fill, angle, xAnchor, yAnchor); }