mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 12:06:37 +00:00
renamed the camera class
This commit is contained in:
@@ -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" />
|
||||
|
||||
+7
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user