/// <summary> /// Initializes a new instance of the <see cref="DrawingManager"/> class. /// </summary> /// <param name="rw">The <see cref="RenderWindow"/>.</param> public DrawingManager(RenderWindow rw) { BackgroundColor = Color.Black; // Create the objects _sb = new RoundedSpriteBatch(); _lightManager = CreateLightManager(); _refractionManager = CreateRefractionManager(); // Set up the sprite used to draw the light map _drawBufferToWindowSprite = new SFML.Graphics.Sprite { Color = Color.White, Rotation = 0, Scale = Vector2.One, Origin = Vector2.Zero, Position = Vector2.Zero }; // Set the RenderWindow RenderWindow = rw; }