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();
}