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

◆ DrawSquareFromCenter()

void ReLogic.Graphics.BasicDebugDrawer.DrawSquareFromCenter ( Vector2 center,
Vector2 size,
float rotation,
Color color )
inline

Implements ReLogic.Graphics.IDebugDrawer.

Definition at line 68 of file BasicDebugDrawer.cs.

69 {
70 //IL_000c: Unknown result type (might be due to invalid IL or missing references)
71 //IL_0016: Unknown result type (might be due to invalid IL or missing references)
72 //IL_0023: Unknown result type (might be due to invalid IL or missing references)
73 //IL_0028: Unknown result type (might be due to invalid IL or missing references)
74 //IL_002e: Unknown result type (might be due to invalid IL or missing references)
75 _spriteBatch.Draw(_texture, center, (Rectangle?)null, color, rotation, new Vector2(2f, 2f), size / 4f, (SpriteEffects)0, 1f);
76 }
void Draw(Texture2D texture, Vector2 position, Color color)

References ReLogic.Graphics.BasicDebugDrawer._spriteBatch, ReLogic.Graphics.BasicDebugDrawer._texture, Microsoft.Xna.Framework.Graphics.SpriteBatch.Draw(), and Microsoft.Xna.Framework.Graphics.Vector2.