Exemple #1
0
        public GamePage(string launchArguments)
        {
            this.InitializeComponent();

            // Create the game.
            _game = XamlGame <SkyBoxGame> .Create(launchArguments, Window.Current.CoreWindow, this);
        }
Exemple #2
0
        //-------------------------------------------------------------------------------------
        // Class constructors

        public GroundObject(SkyBoxGame game, Texture2D texture)
            : base(game)
        {
            // Have we already built the ground vertex array in a previous instance?
            if (_vertices == null)
            {
                // No, so build it now
                BuildVertices();
            }

            // Set other object properties
            ObjectTexture = texture;
        }
        //-------------------------------------------------------------------------------------
        // Class constructors

        public CameraObject(SkyBoxGame game)
            : base(game)
        {
        }