feat: Added Basic Camera

This commit is contained in:
2023-11-27 13:46:01 +03:00
parent 9b45bfa4fd
commit 9f4ad882e3
4 changed files with 139 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace Syntriax.Engine.Core.Abstract;
public interface ICamera
{
Action<ICamera>? OnMatrixTransformChanged { get; set; }
Action<ICamera>? OnViewportChanged { get; set; }
Action<ICamera>? OnPositionChanged { get; set; }
Action<ICamera>? OnRotationChanged { get; set; }
Action<ICamera>? OnZoomChanged { get; set; }
Matrix MatrixTransform { get; }
Viewport Viewport { get; set; }
Vector2 Position { get; set; }
float Rotation { get; set; }
float Zoom { get; set; }
void Update();
}