Esempio n. 1
0
 /// <summary>
 /// Initialize the game's render pipeline. This has to be called in gameKernel.Initialize
 /// because that's where the spriteBatch has to be created.
 /// </summary>
 /// <param name="sb"></param>
 /// <param name="gd"></param>
 /// <param name="gdm"></param>
 internal void InitializeRenderPipeline(SpriteBatch sb, GraphicsDevice gd, GraphicsDeviceManager gdm)
 {
     _RenderPipeline = new RenderPipeline(sb, gd, gdm);
     _DisplayManager = new DisplayManager(
         gameKernel,
         _RenderPipeline,
         GameConstants.BaseResolution,
         GameConstants.InitialWindowTitle,
         GameConstants.InitialBackgroundColour
         );
 }
 /// <summary>
 /// Initialize the game's render pipeline. This has to be called in gameKernel.Initialize
 /// because that's where the spriteBatch has to be created.
 /// </summary>
 /// <param name="sb"></param>
 /// <param name="gd"></param>
 /// <param name="gdm"></param>
 internal void InitializeRenderPipeline(SpriteBatch sb, GraphicsDevice gd, GraphicsDeviceManager gdm)
 {
     _RenderPipeline = new RenderPipeline(sb, gd, gdm);
     _DisplayManager = new DisplayManager(
         gameKernel,
         _RenderPipeline,
         GameConstants.BaseResolution,
         GameConstants.InitialWindowTitle,
         GameConstants.InitialBackgroundColour
         );
 }