예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
 /// <summary>
 /// Overridable Draw() function that is looped.
 /// </summary>
 /// <param name="graphics">Graphics manager of the sprite.</param>
 public virtual void Draw(GraphicsManager graphics)
 {
 }
예제 #4
0
 /// <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);
 }