Class FramebufferStack

java.lang.Object
foundry.veil.api.client.render.framebuffer.FramebufferStack

public class FramebufferStack extends Object
Pushes/pops the current state of the bound framebuffer. This enables restoring an older render state without having to assume the main framebuffer should be bound.
  • Constructor Details

    • FramebufferStack

      public FramebufferStack()
  • Method Details

    • push

      public static void push()
      Pushes the current framebuffer to the stack.
    • pop

      public static void pop()
      Pushes the current framebuffer and restores the previous state. If the stack is empty, the main framebuffer is bound.
    • clear

      public static void clear()
      Clears the entire framebuffer stack.
    • isEmpty

      public static boolean isEmpty()
      Returns:
      Whether there are any framebuffers on the stack