コード例 #1
0
ファイル: MyGame.cs プロジェクト: mkmkmk/SharpDXTutorial
        /// <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";
        }
コード例 #2
0
ファイル: MyGame.cs プロジェクト: jjsnail/SharpDXTutorial
        /// <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";
        }