Example #1
0
 public Camera3D()
 {
     _proj = new Projection();
     _camMatrix = Matrix.Identity;
 }
Example #2
0
        public void CopyFrom(Projection projection)
        {
            if (projection == null)
                throw new ArgumentNullException();

            _aspect = projection._aspect;
            _changeIndex = projection._changeIndex;
            _computedAspect = projection._computedAspect;
            _far = projection._far;
            _fov = projection._fov;
            _leftHandedProjection = projection._leftHandedProjection;
            _matrix = projection._matrix;
            _near = projection._near;
            _orthographic = projection._orthographic;
            _region = projection._region;

            _set = false;
            _changeIndex = System.Threading.Interlocked.Increment(ref _changeBaseIndex);
        }
Example #3
0
 public Camera3D(Projection projection)
 {
     _proj = projection;
     _camMatrix = Matrix.Identity;
 }
Example #4
0
 public Camera3D(Projection projection, Matrix cameraMatrix)
 {
     _proj = projection;
     _camMatrix = cameraMatrix;
 }
Example #5
0
 public Camera3D()
 {
     _proj      = new Projection();
     _camMatrix = Matrix.Identity;
 }
Example #6
0
 public Camera3D(Projection projection)
 {
     _proj      = projection;
     _camMatrix = Matrix.Identity;
 }
Example #7
0
 public Camera3D(Projection projection, Matrix cameraMatrix)
 {
     _proj      = projection;
     _camMatrix = cameraMatrix;
 }