Table of Contents

Class SpriteBatchContextExtensions

Namespace
MLEM.Graphics
Assembly
MLEM.dll

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

batch SpriteBatch

The sprite batch to use for drawing.

context SpriteBatchContext

The 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

batch StaticSpriteBatch

The static sprite batch to use for drawing.

context SpriteBatchContext

The sprite batch context to use.