/// <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(); }
/// <summary> /// Initializes a new EngineConfiguration class. /// </summary> /// <param name="graphicsManager">The GraphicsManager.</param> /// <param name="audioInitializer">The AudioInitializer.</param> public EngineConfiguration(GraphicsManager graphicsManager, IAudioInitializer audioInitializer) { GraphicsManager = graphicsManager; AudioInitializer = audioInitializer; }
/// <summary> /// Initializes a new EngineConfiguration class. /// </summary> /// <param name="graphicsManager">The GraphicsManager.</param> public EngineConfiguration(GraphicsManager graphicsManager) : this(graphicsManager, null) { }