public void excute() { GPOpenGLStateManager manager = GPOpenGLStateManager.getInstance(); if (shouldCal) { stencilRect.intersectWith(manager.getScissorRect()); shouldCal = false; } manager.enableScissor(true); manager.scissor(stencilRect); }
public GLStencilCommond(Bound_Rectangle rect) { this.stencilRect = rect.clone(); }