Esempio n. 1
0
        /// <summary>
        /// Construct any component instances here.
        /// </summary>
        public MyGame()
        {
            // GraphicsDeviceManager is mandatory for a game to run
            _graphicsDeviceManager = new GraphicsDeviceManager(this);

            // initialize the scene renderer system
            _sceneRenderer = new SceneRenderer(this);

            // initialize the camera provider, it will register the camera service also
            _cameraProvider = new CameraProvider(this);

            // Set the content root directory relative to current executable's folder
            Content.RootDirectory = "Content";
        }
Esempio n. 2
0
        /// <summary>
        /// Construct any component instances here.
        /// </summary>
        public MyGame()
        {
            // GraphicsDeviceManager is mandatory for a game to run
            _graphicsDeviceManager = new GraphicsDeviceManager(this);

            // initialize the scene renderer system
            _sceneRenderer = new SceneRenderer(this);

            // initialize the camera provider, it will register the camera service also
            _cameraProvider = new CameraProvider(this);

            // Set the content root directory relative to current executable's folder
            Content.RootDirectory = "Content";
        }