refactoring; removed configuration setup; added consistent sprite batch; got rid of sprite batch settings; implemented newer setup;
This commit is contained in:
@@ -20,11 +20,10 @@ namespace RecrownedAthenaeum.Render
|
||||
/// <summary>
|
||||
/// Creates a rectangle renderer with the given <see cref="PrimitiveBatch"/>.
|
||||
/// </summary>
|
||||
/// <param name="camera">Camera to use for <see cref="PrimitiveBatch"/>. Default will use <see cref="Configuration"/>.</param>
|
||||
/// <param name="graphicsDevice">Graphics device to use. Default will use <see cref="Configuration"/>.</param>
|
||||
public RectangleRenderer(Camera2D camera = null, GraphicsDevice graphicsDevice = null)
|
||||
/// <param name="graphicsDevice">Graphics device to use.</param>
|
||||
public RectangleRenderer(GraphicsDevice graphicsDevice)
|
||||
{
|
||||
primitiveBatch = new PrimitiveBatch(camera, graphicsDevice);
|
||||
primitiveBatch = new PrimitiveBatch(graphicsDevice);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user