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

◆ BasicDebugDrawer()

ReLogic.Graphics.BasicDebugDrawer.BasicDebugDrawer ( GraphicsDevice graphicsDevice)
inline

Definition at line 15 of file BasicDebugDrawer.cs.

16 {
17 //IL_0008: Unknown result type (might be due to invalid IL or missing references)
18 //IL_0012: Expected O, but got Unknown
19 //IL_0016: Unknown result type (might be due to invalid IL or missing references)
20 //IL_0020: Expected O, but got Unknown
21 //IL_002e: Unknown result type (might be due to invalid IL or missing references)
22 //IL_0033: Unknown result type (might be due to invalid IL or missing references)
23 _spriteBatch = new SpriteBatch(graphicsDevice);
24 _texture = new Texture2D(graphicsDevice, 4, 4);
25 Color[] array = (Color[])(object)new Color[16];
26 for (int i = 0; i < array.Length; i++)
27 {
28 array[i] = Color.White;
29 }
30 _texture.SetData<Color>(array);
31 }

References ReLogic.Graphics.BasicDebugDrawer._spriteBatch, ReLogic.Graphics.BasicDebugDrawer._texture, System.array, Microsoft.Xna.Framework.Graphics.Texture2D, and Microsoft.Xna.Framework.Color.White.