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

◆ DrawSquare() [2/2]

void ReLogic.Graphics.BasicDebugDrawer.DrawSquare ( Vector4 positionAndSize,
Color color )
inline

Implements ReLogic.Graphics.IDebugDrawer.

Definition at line 44 of file BasicDebugDrawer.cs.

45 {
46 //IL_000c: Unknown result type (might be due to invalid IL or missing references)
47 //IL_0012: Unknown result type (might be due to invalid IL or missing references)
48 //IL_0018: Unknown result type (might be due to invalid IL or missing references)
49 //IL_0026: Unknown result type (might be due to invalid IL or missing references)
50 //IL_002c: Unknown result type (might be due to invalid IL or missing references)
51 //IL_0031: Unknown result type (might be due to invalid IL or missing references)
52 //IL_0037: Unknown result type (might be due to invalid IL or missing references)
53 //IL_003d: Unknown result type (might be due to invalid IL or missing references)
54 //IL_0047: Unknown result type (might be due to invalid IL or missing references)
55 _spriteBatch.Draw(_texture, new Vector2(positionAndSize.X, positionAndSize.Y), (Rectangle?)null, color, 0f, Vector2.Zero, new Vector2(positionAndSize.Z, positionAndSize.W) / 4f, (SpriteEffects)0, 1f);
56 }
void Draw(Texture2D texture, Vector2 position, Color color)

References ReLogic.Graphics.BasicDebugDrawer._spriteBatch, ReLogic.Graphics.BasicDebugDrawer._texture, Microsoft.Xna.Framework.Graphics.SpriteBatch.Draw(), Microsoft.Xna.Framework.Graphics.Vector2, Microsoft.Xna.Framework.Vector4.W, Microsoft.Xna.Framework.Vector4.X, Microsoft.Xna.Framework.Vector4.Y, Microsoft.Xna.Framework.Vector4.Z, and Microsoft.Xna.Framework.Vector2.Zero.