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

◆ Draw() [5/7]

void Microsoft.Xna.Framework.Graphics.SpriteBatch.Draw ( Texture2D texture,
Vector2 position,
Rectangle? sourceRectangle,
Color color )
inline

Definition at line 407 of file SpriteBatch.cs.

408 {
409 Vector4 destination = default(Vector4);
410 destination.X = position.X;
411 destination.Y = position.Y;
412 destination.Z = 1f;
413 destination.W = 1f;
414 InternalDraw(texture, ref destination, scaleDestination: true, ref sourceRectangle, color, 0f, ref vector2Zero, SpriteEffects.None, 0f);
415 }
unsafe void InternalDraw(Texture2D texture, ref Vector4 destination, bool scaleDestination, ref Rectangle? sourceRectangle, Color color, float rotation, ref Vector2 origin, SpriteEffects effects, float depth)

References System.destination, Microsoft.Xna.Framework.Graphics.SpriteBatch.InternalDraw(), Microsoft.Xna.Framework.Graphics.SpriteBatch.vector2Zero, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.