Class SpriteBatchContextExtensions
A set of extensions for SpriteBatchContext.
public static class SpriteBatchContextExtensions
- Inheritance
-
SpriteBatchContextExtensions
- Inherited Members
Methods
Begin(SpriteBatch, SpriteBatchContext)
Begins a new sprite and text batch with the specified SpriteBatchContext
public static void Begin(this SpriteBatch batch, SpriteBatchContext context)
Parameters
batchSpriteBatchThe sprite batch to use for drawing.
contextSpriteBatchContextThe sprite batch context to use.
Draw(StaticSpriteBatch, SpriteBatchContext)
Draws the given batch's content onto the Microsoft.Xna.Framework.Graphics.GraphicsDevice's current render target (or the back buffer) with the given settings. Note that this method should not be called while a regular Microsoft.Xna.Framework.Graphics.SpriteBatch is currently active.
public static void Draw(this StaticSpriteBatch batch, SpriteBatchContext context)
Parameters
batchStaticSpriteBatchThe static sprite batch to use for drawing.
contextSpriteBatchContextThe sprite batch context to use.