예제 #1
0
        /// <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();
        }
예제 #2
0
 /// <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;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new EngineConfiguration class.
 /// </summary>
 /// <param name="graphicsManager">The GraphicsManager.</param>
 public EngineConfiguration(GraphicsManager graphicsManager)
     : this(graphicsManager, null)
 {
 }