Began trying to fix primitive batch. Added a default camera to the configuration.
This commit is contained in:
@@ -29,7 +29,7 @@ namespace RecrownedAthenaeum.Render
|
||||
/// Begins the render batch.
|
||||
/// </summary>
|
||||
/// <param name="filled">Whether or not to fill the rectangle.</param>
|
||||
public void Begin(bool filled)
|
||||
public void Begin(bool filled = false)
|
||||
{
|
||||
filling = filled;
|
||||
if (began) throw new InvalidOperationException("Cannot begin twice.");
|
||||
@@ -75,7 +75,8 @@ namespace RecrownedAthenaeum.Render
|
||||
primitiveBatch.AddVertex(corners[2], color);
|
||||
primitiveBatch.AddVertex(corners[0], color);
|
||||
primitiveBatch.AddVertex(corners[3], color);
|
||||
} else
|
||||
}
|
||||
else
|
||||
{
|
||||
primitiveBatch.AddVertex(corners[0], color);
|
||||
primitiveBatch.AddVertex(corners[1], color);
|
||||
|
Reference in New Issue
Block a user