using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RecrownedAthenaeum.Render { /// /// The settings the sprite batch should use. /// public struct SpriteBatchSettings { /// /// Defines sprites sort mode. /// public SpriteSortMode spriteSortMode; /// /// The blend state to use. /// public BlendState blendState; /// /// Sampler state to use. /// public SamplerState samplerState; /// /// The depth stencil state to use. /// public DepthStencilState depthStencilState; /// /// The rasterizer state to use. /// public RasterizerState rasterizerState; /// /// The effect to use. /// public Effect effect; /// /// The transformation matrix to use. /// public Matrix transformMatrix; /// /// Begins the given sprite batch with the current set of settings. /// /// Begins the spritebatch with the given settings. public void BeginSpriteBatch(SpriteBatch spriteBatch) { spriteBatch.Begin(spriteSortMode, blendState, samplerState, depthStencilState, rasterizerState, effect, transformMatrix); } } }