示例#1
0
  protected void popFramebuffer() {
    if (!popFramebufferEnabled) return;

    try {
      currentFBO = fboStack.pop();
      currentFBO.bind();
    } catch (EmptyStackException e) {
      System.out.println("Empty framebuffer stack");
    }
  }
示例#2
0
  protected void setFramebuffer(GLFramebufferObject fbo) {
    if (framebufferFixed) return;

    currentFBO = fbo;
    currentFBO.bind();
  }