Added offset to be used instead of origin in spritebatch does things I don't want it to do. Also added a project to more easily test this library.
This commit is contained in:
@@ -106,5 +106,15 @@ namespace RecrownedAthenaeum.Render
|
||||
|
||||
primitiveBatch.Flush();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Draws the given rectangle.
|
||||
/// </summary>
|
||||
/// <param name="rectangle">Uses the x, y and dimensions to draw a rectangle.</param>
|
||||
/// <param name="color">The color of the rectangle.</param>
|
||||
public void Draw(Rectangle rectangle, Color color)
|
||||
{
|
||||
Draw(rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user