refactor
This commit is contained in:
@@ -20,7 +20,7 @@ namespace RecrownedAthenaeum.Render
|
||||
BasicEffect basicEffect;
|
||||
PrimitiveType primitiveType;
|
||||
int verticesPerPrimitive;
|
||||
GraphicsDevice graphicsDevice = Setup.graphicsDeviceManager.GraphicsDevice;
|
||||
GraphicsDevice graphicsDevice = Configuration.graphicsDeviceManager.GraphicsDevice;
|
||||
bool began;
|
||||
bool disposed;
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace RecrownedAthenaeum.Render
|
||||
/// Creates a batch used to draw primitives.
|
||||
/// </summary>
|
||||
/// <param name="camera">The current camera being used.</param>
|
||||
/// <param name="graphicsDevice">The graphics device used to draw the primitives. Will be using <see cref="Setup"/>'s graphics device from graphics device manager if null. Default is null.</param>
|
||||
/// <param name="graphicsDevice">The graphics device used to draw the primitives. Will be using <see cref="Configuration"/>'s graphics device from graphics device manager if null. Default is null.</param>
|
||||
/// <param name="verticesPerBatch">The amount of vertices every batch can hold before flushing. Default is 450. Should be changed to be the most optimal number if possible to prevent unnecessary resizing. Especially if using strip primitive types.</param>
|
||||
public PrimitiveBatch(Camera2D camera, GraphicsDevice graphicsDevice = null, int verticesPerBatch = 500)
|
||||
{
|
||||
|
Reference in New Issue
Block a user