예제 #1
0
 public static void Begin(this SpriteBatch spriteBatch, SpriteBatchSettings spriteBatchSettings)
 {
     spriteBatch.Begin(
         spriteBatchSettings.SpriteSortMode,
         spriteBatchSettings.BlendState,
         spriteBatchSettings.SamplerState,
         spriteBatchSettings.DepthStencilState,
         spriteBatchSettings.RasterizerState,
         spriteBatchSettings.Effect,
         spriteBatchSettings.TransformMatrix
         );
 }
예제 #2
0
        public GuiRenderer(GraphicsDevice graphicsDevice)
        {
            _spriteBatch = new SpriteBatch(graphicsDevice);

            Settings = new SpriteBatchSettings();
        }