/// <summary>
/// Initializes a new SpriteBatch class.
/// </summary>
/// <param name="graphicsManager">The GraphicsManager.</param>
public SpriteBatch(GraphicsManager graphicsManager)
{
if (!graphicsManager.IsSupported)
throw new NotSupportedException("The specified GraphicsManager is not supported.");
Renderer = graphicsManager.Create();
Renderer.Initialize();
}