Create() public abstract method

Creates the graphics.
public abstract Create ( ) : IRenderer
return IRenderer
Esempio n. 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();
        }
Esempio n. 2
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();
        }