示例#1
0
        public Camera(Game game, RenderableObject/* for RenderableObject */  followObject, Vector3 followDistance, float aspectRatio, float nearClip, float farClip)
            : base(game)
        {
            this.followObject = followObject;
            this._followDistance = followDistance;
            this.aspectRatio = aspectRatio;
            this.nearClip = nearClip;
            this.farClip = farClip;

            _projection = Matrix.CreatePerspectiveFieldOfView(MathHelper.PiOver4, aspectRatio, nearClip, farClip);
        }
示例#2
0
 public Camera(Game game, RenderableObject followObject, float followDistance, float aspectRatio)
     : this(game, followObject, followDistance, aspectRatio, 0.1f, 10000.0f)
 {
     // calls Camera constructor with 0.1f and 10000.0f as clipping planes
 }