public void InitializeGraphicsDevice() { graphics = (GraphicsDeviceManager)Game.Services.GetService(typeof(GraphicsDeviceManager)); device = graphics.GraphicsDevice; spriteBatch = (SpriteBatch)Game.Services.GetService(typeof(SpriteBatch)); LineBatch.Init(device); }
public void Draw(SpriteBatch spriteBatch, Vector2 offset) { LineBatch.DrawLine(spriteBatch, color, point1 + offset, point2 + offset); }