mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Add masking (see issue #211). Only "hard" masks are supported, no
semitransparent ones. --HG-- branch : minor
This commit is contained in:
@@ -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.
|
||||
**/
|
||||
|
||||
Reference in New Issue
Block a user