Example #1
0
 protected void popDestTextures() {
   try {
     currentDestTex = destTexStack.pop();
     currentFBO.setDrawBuffers(currentDestTex);
   } catch (EmptyStackException e) {
     System.out.println("Empty texture stack");
   }
 }
Example #2
0
  protected void popFramebuffer() {
    if (!popFramebufferEnabled) return;

    try {
      currentFBO = fboStack.pop();
      currentFBO.bind();
    } catch (EmptyStackException e) {
      System.out.println("Empty framebuffer stack");
    }
  }
Example #3
0
 protected void pushDestTextures() {
   destTexStack.push(currentDestTex);
 }
Example #4
0
 protected void pushFramebuffer() {
   if (pushFramebufferEnabled) fboStack.push(currentFBO);
 }