Esempio n. 1
0
        public void Draw(GameState game)
        {
            this.surfaces.ModelviewMatrix.Matrix = Matrix4.LookAt(
                new Vector3(0, 0, 50), new Vector3(0, 0, 0), new Vector3(0, 1, 0)
                );

            game.Render();
        }
Esempio n. 2
0
        public void Draw(GameState game)
        {
            this.surfaces.ModelviewMatrix.Matrix =
                Matrix4.CreateRotationY((float)game.Time.NumericValue) *
                Matrix4.LookAt(
                new Vector3(0, 0, 30), new Vector3(0, 0, 0), new Vector3(0, 1, 0)
                );

            game.Render();
        }