port from perforce
This commit is contained in:
31
aiwaz/Aiwaz.Contracts/ICamera.cs
Normal file
31
aiwaz/Aiwaz.Contracts/ICamera.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
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; }
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user