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

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

Definition at line 472 of file SpriteBatch.cs.

473 {
474 SpriteBatchItem spriteBatchItem = this.InsertNewBatchItem(texture);
475 int width = srcRect.Width;
476 int height = srcRect.Height;
477 float texelWidth = texture.TexelWidth;
478 float texelHeight = texture.TexelHeight;
480 this._texCoordTL.X = (float)width;
481 int y = srcRect.Y;
483 this._texCoordTL.Y = (float)y;
484 float x = position.X;
485 float y2 = position.Y;
486 SpriteSortMode sortMode = this._sortMode;
487 if (this.BatchDeffered)
488 {
489 return;
490 }
491 SpriteBatcher batcher = this._batcher;
492 Effect effect = this._effect;
493 batcher.DrawImmediateBatch(effect);
494 }
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.TexelHeight, Microsoft.Xna.Framework.Graphics.Texture2D.TexelWidth, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.