예제 #1
0
파일: Game.cs 프로젝트: exomia/framework
        /// <summary>
        ///     Initializes the game graphics parameters.
        /// </summary>
        private void InitializeGameGraphicsParameters()
        {
            GameGraphicsParameters parameters = GameGraphicsParameters.Create(IntPtr.Zero);

            OnInitializeGameGraphicsParameters(ref parameters);

            _platform.Initialize(ref parameters);
            _graphicsDevice.Initialize(ref parameters);

            GameGraphicsParameters = parameters;
        }
예제 #2
0
파일: Game.cs 프로젝트: exomia/framework
 /// <summary>
 ///     Initialize <see cref="GameGraphicsParameters" />. Called once before
 ///     <see cref="OnBeforeInitialize" /> to perform user-defined overrides of
 ///     <see cref="GameGraphicsParameters" />.
 /// </summary>
 /// <param name="parameters"> [in,out] The <see cref="GameGraphicsParameters" />. </param>
 protected virtual void OnInitializeGameGraphicsParameters(ref GameGraphicsParameters parameters)
 {
 }
예제 #3
0
 /// <summary>
 ///     Initializes the <see cref="GamePlatform" />.
 /// </summary>
 /// <param name="parameters"> [in,out] Options for controlling the operation. </param>
 public void Initialize(ref GameGraphicsParameters parameters)
 {
     _mainWindow.Initialize(ref parameters);
 }