This commit is contained in:
2019-01-21 22:18:22 -06:00
parent ea6b3cf9e3
commit 8c54d7e12d
9 changed files with 15 additions and 15 deletions

View File

@@ -24,12 +24,12 @@ namespace RecrownedAthenaeum.Camera
/// </summary>
public Matrix Matrix { get; private set; }
private GraphicsDevice graphicsDevice = Setup.graphicsDeviceManager.GraphicsDevice;
private GraphicsDevice graphicsDevice = Configuration.graphicsDeviceManager.GraphicsDevice;
/// <summary>
/// Constructs 2D camera.
/// </summary>
/// <param name="graphicsDevice">The graphics device to use. Will use graphics device from <see cref="Setup"/>'s graphics device manager if this is null which it is by default.</param>
/// <param name="graphicsDevice">The graphics device to use. Will use graphics device from <see cref="Configuration"/>'s graphics device manager if this is null which it is by default.</param>
public Camera2D(GraphicsDevice graphicsDevice = null)
{
if (graphicsDevice != null) this.graphicsDevice = graphicsDevice;