terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ Draw() [15/29]

void Microsoft.Xna.Framework.Graphics.SpriteBatch.Draw ( Texture2D texture,
Vector2 position,
Rectangle srcRect,
VertexColors color )
inlineinherited

Definition at line 428 of file SpriteBatch.cs.

429 {
430 SpriteBatchItem spriteBatchItem = this.InsertNewBatchItem(texture);
431 int width = srcRect.Width;
432 int height = srcRect.Height;
433 float texelWidth = texture.TexelWidth;
434 float x = position.X;
435 float y = position.Y;
436 SpriteSortMode sortMode = this._sortMode;
437 if (this.BatchDeffered)
438 {
439 return;
440 }
441 SpriteBatcher batcher = this._batcher;
442 Effect effect = this._effect;
443 batcher.DrawImmediateBatch(effect);
444 }
class f__AnonymousType0<< Count > j__TPar
SpriteBatchItem InsertNewBatchItem(Texture2D texture)

References Microsoft.Xna.Framework.Graphics.SpriteBatch._batcher, Microsoft.Xna.Framework.Graphics.SpriteBatch._effect, Microsoft.Xna.Framework.Graphics.SpriteBatch._sortMode, Microsoft.Xna.Framework.Graphics.SpriteBatch.BatchDeffered, Microsoft.Xna.Framework.Graphics.SpriteBatcher.DrawImmediateBatch(), Microsoft.Xna.Framework.Graphics.SpriteBatch.InsertNewBatchItem(), j__TPar, Microsoft.Xna.Framework.Graphics.Texture2D.TexelWidth, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.