Expose stencil buffer to render code.

The intention is to provide a layer for tracking shadow
rendering, so a single bit is sufficient for now.
This commit is contained in:
Paul Chote
2013-03-03 22:03:04 +13:00
parent 1b34c7d6b9
commit f6264eeba4
4 changed files with 37 additions and 0 deletions

View File

@@ -198,5 +198,17 @@ namespace OpenRA.Graphics
Flush();
Device.DisableDepthBuffer();
}
public void EnableStencilBuffer()
{
Flush();
Device.EnableStencilBuffer();
}
public void DisableStencilBuffer()
{
Flush();
Device.DisableStencilBuffer();
}
}
}