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

◆ Draw() [2/7]

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

Definition at line 447 of file SpriteBatch.cs.

448 {
449 Vector4 destination = default(Vector4);
450 destination.X = destinationRectangle.X;
451 destination.Y = destinationRectangle.Y;
452 destination.Z = destinationRectangle.Width;
453 destination.W = destinationRectangle.Height;
454 InternalDraw(texture, ref destination, scaleDestination: false, ref sourceRectangle, color, 0f, ref vector2Zero, SpriteEffects.None, 0f);
455 }
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.Graphics.SpriteBatch.vector2Zero, Microsoft.Xna.Framework.Rectangle.Width, Microsoft.Xna.Framework.Rectangle.X, and Microsoft.Xna.Framework.Rectangle.Y.