love.graphics.getScissor now has a proper C++ module method

This commit is contained in:
Alex Szpakowski
2014-01-09 22:49:00 -04:00
parent c64b3d2527
commit fda005c5ff
9 changed files with 25 additions and 16 deletions
+4 -4
View File
@@ -163,10 +163,10 @@ public:
void setScissor();
/**
* This native Lua function gets the current scissor box in the order of:
* x, y, width, height
**/
int getScissor(lua_State *L) const;
* Gets the current scissor box.
* @return Whether the scissor is enabled.
*/
bool getScissor(int &x, int &y, int &width, int &height) const;
/**
* Enables the stencil buffer and set stencil function to fill it