Package dev.prozilla.pine.core.rendering
Class FrameBufferObject
java.lang.Object
dev.prozilla.pine.core.rendering.FrameBufferObject
- All Implemented Interfaces:
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. -
bind
public void bind() -
unbind
public void unbind() -
destroy
public void destroy()Deletes this frame buffer and its texture. -
getTexture
-
getId
public int getId() -
getWidth
public int getWidth() -
getHeight
public int getHeight()
-