32 lines
603 B
C#
32 lines
603 B
C#
using SlimDX;
|
|
namespace Aiwaz.Contracts
|
|
{
|
|
public class ViewFrustum
|
|
{
|
|
public Plane[] Plane = new Plane[6];
|
|
};
|
|
|
|
public interface ICamera
|
|
{
|
|
Matrix ProjectionMatrix { get; }
|
|
Matrix ViewMatrix { get; }
|
|
|
|
float FarClip { get; set; }
|
|
float NearClip { get; set; }
|
|
|
|
ViewFrustum ViewFrustum { get; }
|
|
};
|
|
|
|
public interface IPerspectiveCamera
|
|
{
|
|
float Fov { get; set; }
|
|
float AspectRatio { get; set; }
|
|
};
|
|
|
|
public interface IOrthographicCamera
|
|
{
|
|
float Width { get; set; }
|
|
float Height { get; set; }
|
|
};
|
|
}
|