Exemplo n.º 1
0
        /// <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;
        }
Exemplo n.º 2
0
 /// <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)
 {
 }
Exemplo n.º 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);
 }