33 lines
510 B
C#
33 lines
510 B
C#
using System;
|
|
|
|
using OpenTK;
|
|
using OpenTK.Graphics.OpenGL;
|
|
|
|
namespace org.nhengine.graphics
|
|
{
|
|
public class GLSceneOrientation
|
|
{
|
|
protected Matrix4
|
|
_mCamera,
|
|
_mProjection;
|
|
|
|
public GLSceneOrientation()
|
|
{
|
|
_mCamera = Matrix4.Identity;
|
|
_mProjection = Matrix4.CreatePerspectiveFieldOfView(
|
|
MathHelper.PiOver4,
|
|
1.0f,
|
|
50.0f,
|
|
100000.0f
|
|
);
|
|
}
|
|
|
|
public Matrix4 mCamera(){
|
|
return this._mCamera;
|
|
}
|
|
public Matrix4 mProjection(){
|
|
return this._mProjection;
|
|
}
|
|
}
|
|
}
|