Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Begin() [5/5]

void Microsoft.Xna.Framework.Graphics.SpriteBatch.Begin ( SpriteSortMode sortMode,
BlendState blendState,
SamplerState samplerState,
DepthStencilState depthStencilState,
RasterizerState rasterizerState,
Effect effect,
Matrix transformMatrix )
inline

Definition at line 345 of file SpriteBatch.cs.

346 {
347 if (inBeginEndPair)
348 {
349 throw new InvalidOperationException(FrameworkResources.EndMustBeCalledBeforeBegin);
350 }
352 this.blendState = blendState;
353 this.samplerState = samplerState;
354 this.depthStencilState = depthStencilState;
355 this.rasterizerState = rasterizerState;
356 customEffect = effect;
357 this.transformMatrix = transformMatrix;
358 if (sortMode == SpriteSortMode.Immediate)
359 {
361 {
362 throw new InvalidOperationException(FrameworkResources.CannotNextSpriteBeginImmediate);
363 }
366 }
368 {
369 throw new InvalidOperationException(FrameworkResources.CannotNextSpriteBeginImmediate);
370 }
372 inBeginEndPair = true;
373 }

References Microsoft.Xna.Framework.Graphics.GraphicsResource._parent, Microsoft.Xna.Framework.Graphics.SpriteBatch.blendState, Microsoft.Xna.Framework.FrameworkResources.CannotNextSpriteBeginImmediate, Microsoft.Xna.Framework.Graphics.SpriteBatch.customEffect, Microsoft.Xna.Framework.Graphics.SpriteBatch.depthStencilState, Microsoft.Xna.Framework.FrameworkResources.EndMustBeCalledBeforeBegin, Microsoft.Xna.Framework.Graphics.SpriteBatch.inBeginEndPair, Microsoft.Xna.Framework.Graphics.SpriteBatch.rasterizerState, Microsoft.Xna.Framework.Graphics.SpriteBatch.samplerState, Microsoft.Xna.Framework.Graphics.SpriteBatch.SetRenderState(), Microsoft.Xna.Framework.Graphics.GraphicsDevice.spriteBeginCount, Microsoft.Xna.Framework.Graphics.GraphicsDevice.spriteImmediateBeginCount, Microsoft.Xna.Framework.Graphics.SpriteBatch.spriteSortMode, and Microsoft.Xna.Framework.Graphics.SpriteBatch.transformMatrix.