// Constructor
        public GamePage()
        {
            InitializeComponent();

            _game = XamlGame <HiddenSurfaceCullingGame> .Create("", this);

            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        }
Exemple #2
0
        //-------------------------------------------------------------------------------------
        // 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();
            }
        }