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() [8/29]

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

Definition at line 409 of file SpriteBatch.cs.

410 {
411 SpriteBatchItem spriteBatchItem = this.InsertNewBatchItem(texture);
412 int width = srcRect.Width;
413 int height = srcRect.Height;
414 float texelWidth = texture.TexelWidth;
415 float x = position.X;
416 float y = position.Y;
417 SpriteSortMode sortMode = this._sortMode;
418 if (this.BatchDeffered)
419 {
420 return;
421 }
422 SpriteBatcher batcher = this._batcher;
423 Effect effect = this._effect;
424 batcher.DrawImmediateBatch(effect);
425 }
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.