FrameBuffer
How to create
To maintain the size of the framebuffer with the screen size you have to do the following code in Render2D
Functions
resize
This updates the framebuffer size with the current screen size
clear
This clears the framebuffer
bind
Binds the framebuffer to what is rendering next
unbind
Unbinds the framebuffer
getTextureID
Returns the texture ID as a Number
getWidth
Returns the framebuffer width as a Number
getHeight
Returns the framebuffer height as a Number
Last updated