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