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

◆ Draw() [3/7]

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

Definition at line 457 of file SpriteBatch.cs.

458 {
459 Vector4 destination = default(Vector4);
460 destination.X = destinationRectangle.X;
461 destination.Y = destinationRectangle.Y;
462 destination.Z = destinationRectangle.Width;
463 destination.W = destinationRectangle.Height;
464 InternalDraw(texture, ref destination, scaleDestination: false, ref sourceRectangle, color, rotation, ref origin, effects, layerDepth);
465 }
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.Rectangle.Height, Microsoft.Xna.Framework.Graphics.SpriteBatch.InternalDraw(), Microsoft.Xna.Framework.Rectangle.Width, Microsoft.Xna.Framework.Rectangle.X, and Microsoft.Xna.Framework.Rectangle.Y.