Esempio n. 1
0
        public GamePage(string launchArguments)
        {
            this.InitializeComponent();

            // Create the game.
            _game = XamlGame <HiddenSurfaceCullingGame> .Create(launchArguments, Window.Current.CoreWindow, this);
        }
        //-------------------------------------------------------------------------------------
        // Class constructors

        public CubeObject(HiddenSurfaceCullingGame game)
            : base(game)
        {
            // Have we already built the cube vertex array in a previous instance?
            if (_vertices == null)
            {
                // No, so build them now
                BuildVertices();
            }
        }