Renamed Camera class to Camera3D.

This commit is contained in:
Harrison Deng 2019-02-06 00:12:39 -06:00
parent 3c7e6cdefb
commit 3bd3b0f9f6
3 changed files with 6 additions and 6 deletions

View File

@ -5,9 +5,9 @@ using System;
namespace RecrownedAthenaeum.Camera
{
/// <summary>
/// A virtual 2D camera that wraps the normal <see cref="Camera"/>. Default projection is orthographic.
/// A virtual 2D camera that wraps the normal <see cref="Camera3D"/>. Default projection is orthographic.
/// </summary>
public class Camera2D : Camera
public class Camera2D : Camera3D
{
/// <summary>
@ -16,7 +16,7 @@ namespace RecrownedAthenaeum.Camera
public Vector2 Position { get { return new Vector2(position.X, position.Y); } set { position.X = value.X; position.Y = value.Y; } }
/// <summary>
/// A 2D camera from the generic <see cref="Camera"/>.
/// A 2D camera from the generic <see cref="Camera3D"/>.
/// </summary>
public Camera2D() : base()
{

View File

@ -11,7 +11,7 @@ namespace RecrownedAthenaeum.Camera
/// <summary>
/// A generic 3D camera.
/// </summary>
public class Camera
public class Camera3D
{
/// <summary>
/// Current position in the world.
@ -57,7 +57,7 @@ namespace RecrownedAthenaeum.Camera
/// Constructs 3D camera with an orthographic projection matrix with dimensions of graphics devices viewport. All changes to matrices should have apply called after changes.
/// </summary>
/// <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 Camera(GraphicsDevice graphicsDevice = null)
public Camera3D(GraphicsDevice graphicsDevice = null)
{
this.graphicsDevice = graphicsDevice ?? (Configuration.GraphicsDeviceManager.GraphicsDevice);

View File

@ -51,7 +51,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Camera\Camera.cs" />
<Compile Include="Camera\Camera3D.cs" />
<Compile Include="Camera\Camera2D.cs" />
<Compile Include="ContentSystem\ContentData.cs" />
<Compile Include="ContentSystem\ContentManagerController.cs" />