Package dev.prozilla.pine.core.rendering
Class FrameBufferObject
java.lang.Object
dev.prozilla.pine.core.rendering.FrameBufferObject
- All Implemented Interfaces:
Destructible
,Initializable
Represents an OpenGL frame buffer.
-
Constructor Summary
Constructors -
Method Summary
-
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 interfaceInitializable
-
bind
public void bind() -
unbind
public void unbind() -
destroy
public void destroy()Deletes this frame buffer and its texture.- Specified by:
destroy
in interfaceDestructible
-
getTexture
-
getId
public int getId() -
getWidth
public int getWidth() -
getHeight
public int getHeight()
-