Add masking (see issue #211). Only "hard" masks are supported, no

semitransparent ones.

--HG--
branch : minor
This commit is contained in:
vrld
2011-04-26 22:10:34 +02:00
parent 1b8b144bc8
commit 939041886c
4 changed files with 71 additions and 0 deletions
+16
View File
@@ -234,6 +234,22 @@ namespace opengl
**/
int getScissor(lua_State * L);
/**
* Enables the stencil buffer and set stencil function to fill it
*/
void defineMask();
/**
* Set stencil function to mask the following drawing calls using
* the current stencil buffer
*/
void useMask();
/**
* Disables the stencil buffer
*/
void discardMask();
/**
* Creates an Image object with padding and/or optimization.
**/