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

◆ Draw() [1/7]

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

Definition at line 437 of file SpriteBatch.cs.

438 {
439 Vector4 destination = default(Vector4);
440 destination.X = destinationRectangle.X;
441 destination.Y = destinationRectangle.Y;
442 destination.Z = destinationRectangle.Width;
443 destination.W = destinationRectangle.Height;
444 InternalDraw(texture, ref destination, scaleDestination: false, ref nullRectangle, color, 0f, ref vector2Zero, SpriteEffects.None, 0f);
445 }
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.nullRectangle, Microsoft.Xna.Framework.Graphics.SpriteBatch.vector2Zero, Microsoft.Xna.Framework.Rectangle.Width, Microsoft.Xna.Framework.Rectangle.X, and Microsoft.Xna.Framework.Rectangle.Y.