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:
@@ -198,5 +198,17 @@ namespace OpenRA.Graphics
|
||||
Flush();
|
||||
Device.DisableDepthBuffer();
|
||||
}
|
||||
|
||||
public void EnableStencilBuffer()
|
||||
{
|
||||
Flush();
|
||||
Device.EnableStencilBuffer();
|
||||
}
|
||||
|
||||
public void DisableStencilBuffer()
|
||||
{
|
||||
Flush();
|
||||
Device.DisableStencilBuffer();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user