RenderingLibrary.Graphics.SpriteRenderer.EndSpriteBatch C# (CSharp) Method

EndSpriteBatch() public method

public EndSpriteBatch ( ) : void
return void
        public void EndSpriteBatch()
        {
            mSpriteBatch.PopRenderStates();

        }

Usage Example

示例#1
0
        internal void RenderLayer(SystemManagers managers, Layer layer, bool prerender = true)
        {
            //////////////////Early Out////////////////////////////////
            if (layer.Renderables.Count == 0)
            {
                return;
            }
            ///////////////End Early Out///////////////////////////////

            if (prerender)
            {
                PreRender(layer.Renderables);
            }

            spriteRenderer.BeginSpriteBatch(mRenderStateVariables, layer, BeginType.Push, mCamera);

            layer.SortRenderables();

            Render(layer.Renderables, managers, layer);

            spriteRenderer.EndSpriteBatch();
        }