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

◆ Draw() [7/7]

void Microsoft.Xna.Framework.Graphics.SpriteBatch.Draw ( Texture2D texture,
Vector2 position,
Rectangle? sourceRectangle,
Color color,
float rotation,
Vector2 origin,
Vector2 scale,
SpriteEffects effects,
float layerDepth )
inline

Definition at line 427 of file SpriteBatch.cs.

428 {
429 Vector4 destination = default(Vector4);
430 destination.X = position.X;
431 destination.Y = position.Y;
432 destination.Z = scale.X;
433 destination.W = scale.Y;
434 InternalDraw(texture, ref destination, scaleDestination: true, ref sourceRectangle, color, rotation, ref origin, effects, layerDepth);
435 }
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.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.