Class FrameBufferObject

java.lang.Object
dev.prozilla.pine.core.rendering.FrameBufferObject
All Implemented Interfaces:
Lifecycle

public class FrameBufferObject extends Object implements Lifecycle
Represents an OpenGL frame buffer.
  • Constructor Details

    • FrameBufferObject

      public FrameBufferObject(int width, int height)
  • Method Details

    • init

      public void init()
      Initializes this frame buffer object with a texture.
      Specified by:
      init in interface Lifecycle
    • bind

      public void bind()
    • unbind

      public void unbind()
    • destroy

      public void destroy()
      Deletes this frame buffer and its texture.
      Specified by:
      destroy in interface Lifecycle
    • getTexture

      public Texture getTexture()
    • getId

      public int getId()
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()