Framebuffer

A framebuffer

Constructors

this
this(Window window, vec2i size)

The constructor

Members

Functions

bind
void bind()

Bind the framebuffer

getTexId
GLuint getTexId()

Gets the texture ID associated with the fbo

height
int height()

Height of framebuffer

realHeight
int realHeight()

Real height of framebuffer

realWidth
int realWidth()

Real width of framebuffer

renderToFit
void renderToFit()

Renders the framebuffer to fit in the current viewport

unbind
void unbind()

Unbind the framebuffer

width
int width()

Width of framebuffer

Meta