renamed the camera class

This commit is contained in:
Dylan Wilson
2017-11-21 20:57:32 +10:00
parent 90a1802cb3
commit 33759382f7
2 changed files with 8 additions and 4 deletions
@@ -90,7 +90,7 @@
<Compile Include="IColorable.cs" />
<Compile Include="Collections\IPoolable.cs" />
<Compile Include="Content\ContentManagerExtensions.cs" />
<Compile Include="Camera2D.cs" />
<Compile Include="OrthographicCamera.cs" />
<Compile Include="Content\ContentReaderExtensions.cs" />
<Compile Include="GameTimeExtensions.cs" />
<Compile Include="IMovable.cs" />
@@ -5,19 +5,23 @@ using MonoGame.Extended.ViewportAdapters;
namespace MonoGame.Extended
{
public class Camera2D : IMovable, IRotatable
public abstract class Camera
{
}
public class OrthographicCamera : Camera, IMovable, IRotatable
{
private readonly ViewportAdapter _viewportAdapter;
private float _maximumZoom = float.MaxValue;
private float _minimumZoom;
private float _zoom;
public Camera2D(GraphicsDevice graphicsDevice)
public OrthographicCamera(GraphicsDevice graphicsDevice)
: this(new DefaultViewportAdapter(graphicsDevice))
{
}
public Camera2D(ViewportAdapter viewportAdapter)
public OrthographicCamera(ViewportAdapter viewportAdapter)
{
_viewportAdapter = viewportAdapter;