From 1070deb193ac3544fb7e84e6f045a52c20532f0d Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Sun, 13 Jan 2019 00:12:55 -0600 Subject: [PATCH] Naming change. --- RecrownedAthenaeum/Render/RectangleRenderer.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/RecrownedAthenaeum/Render/RectangleRenderer.cs b/RecrownedAthenaeum/Render/RectangleRenderer.cs index 9227381..e3080fd 100644 --- a/RecrownedAthenaeum/Render/RectangleRenderer.cs +++ b/RecrownedAthenaeum/Render/RectangleRenderer.cs @@ -9,19 +9,19 @@ using System.Threading.Tasks; namespace RecrownedAthenaeum.Render { - public class RectangleBatch : IDisposable + public class RectangleRenderer : IDisposable { public readonly PrimitiveBatch primitiveBatch; private bool disposed; private bool began; private bool filling; - public RectangleBatch(PrimitiveBatch primitiveBatch) + public RectangleRenderer(PrimitiveBatch primitiveBatch) { this.primitiveBatch = primitiveBatch; } - public RectangleBatch(GraphicsDevice graphicsDevice, Camera2D camera) : this(new PrimitiveBatch(graphicsDevice, camera, 4)) + public RectangleRenderer(GraphicsDevice graphicsDevice, Camera2D camera) : this(new PrimitiveBatch(graphicsDevice, camera, 4)) { } @@ -53,7 +53,7 @@ namespace RecrownedAthenaeum.Render /// Height of rectangle. /// Color of all vertices of this rectangle. /// Rotation of rectangle. Default is 0 radians. - public void Rectangle(int x, int y, int width, int height, Color color, double rotation = 0) + public void DrawRectangle(int x, int y, int width, int height, Color color, double rotation = 0) { if (disposed) throw new ObjectDisposedException(GetType().Name); if (!began) throw new InvalidOperationException("Renderer must be started by calling Begin.");