@Override public void destroyTexture(int tex) { flush(); // flush in case this texture is queued up to be drawn gl.glDeleteTextures(1, new int[] { tex }, 0); }
@Override public void endClipped() { flush(); // flush our clipped calls with SCISSOR_TEST still enabled Rectangle r = popScissorState(); if (r == null) gl.glDisable(GL_SCISSOR_TEST); else gl.glScissor(r.x, r.y, r.width, r.height); }
@Override public boolean startClipped(int x, int y, int width, int height) { flush(); // flush any pending unclipped calls Rectangle r = pushScissorState(x, curFbufHeight - y - height, width, height); gl.glScissor(r.x, r.y, r.width, r.height); if (getScissorDepth() == 1) gl.glEnable(GL_SCISSOR_TEST); return !r.isEmpty(); }