Require stencil=true to be specified in setCanvas if stenciling is used while a Canvas is active and there is no custom stencil buffer.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-04-29 21:29:37 -03:00
parent 10d73ea1d7
commit 621fb24ba1
8 changed files with 42 additions and 10 deletions
+5
View File
@@ -124,6 +124,11 @@ bool isPixelFormatDepthStencil(PixelFormat format);
**/
bool isPixelFormatDepth(PixelFormat format);
/**
* Gets whether the specified pixel format is a stencil type.
**/
bool isPixelFormatStencil(PixelFormat format);
/**
* Gets the size in bytes of the specified pixel format.
* NOTE: Currently returns 0 for compressed formats.