Added love.graphics.intersectScissor(x, y, w, h). Resolves issue #1071.

It sets the active scissor rectangle to the intersection of the existing scissor (if any) and the specified rectangle.
This commit is contained in:
Alex Szpakowski
2015-09-16 19:04:57 -03:00
parent 9c1214c77a
commit 00845c0ad0
7 changed files with 61 additions and 17 deletions
@@ -52,6 +52,7 @@ int w_getWidth(lua_State *L);
int w_getHeight(lua_State *L);
int w_getDimensions(lua_State *L);
int w_setScissor(lua_State *L);
int w_intersectScissor(lua_State *L);
int w_getScissor(lua_State *L);
int w_stencil(lua_State *L);
int w_setStencilTest(lua_State *L);