Create() 공개 추상적인 메소드

Creates the graphics.
public abstract Create ( ) : IRenderer
리턴 IRenderer
예제 #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 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();
        }