mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
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:
@@ -126,6 +126,8 @@ public:
|
||||
**/
|
||||
void setScissor(int x, int y, int width, int height);
|
||||
|
||||
void intersectScissor(int x, int y, int width, int height);
|
||||
|
||||
/**
|
||||
* Clears any scissor that has been created.
|
||||
**/
|
||||
@@ -478,7 +480,7 @@ private:
|
||||
float pointSize = 1.0f;
|
||||
|
||||
bool scissor = false;
|
||||
OpenGL::Viewport scissorBox = OpenGL::Viewport();
|
||||
ScissorRect scissorRect = ScissorRect();
|
||||
|
||||
// Stencil.
|
||||
bool stencilTest = false;
|
||||
|
||||
Reference in New Issue
Block a user