MyGame.Camera.Camera C# (CSharp) Method

Camera() public method

Constructor that initiliaze the projection matrix
public Camera ( MyGame game ) : System
game MyGame The instance of MyGame the game component is attached to
return System
        public Camera(MyGame game)
            : base(game)
        {
            this.Projection = Matrix.CreatePerspectiveFieldOfView(
                MathHelper.PiOver4, Game.GraphicsDevice.Viewport.AspectRatio, 0.1f, 1000000.0f);
            myGame = game;
        }