Class GLFramebuffer¶
Defined in File glutil.h
Page Contents
Class Documentation¶
-
class
GLFramebuffer
¶ Helper class for creating framebuffer objects.
Public Functions
-
void
init
(const Vector2i &size, int nSamples)¶ Create a new framebuffer with the specified size and number of MSAA samples.
-
void
free
()¶ Release all associated resources.
-
void
bind
()¶ Bind the framebuffer object.
-
void
release
()¶ Release/unbind the framebuffer object.
-
void
blit
()¶ Blit the framebuffer object onto the screen.
-
bool
ready
()¶ Return whether or not the framebuffer object has been initialized.
-
int
samples
() const¶ Return the number of MSAA samples.
-
void
downloadTGA
(const std::string &filename)¶ Quick and dirty method to write a TGA (32bpp RGBA) file of the framebuffer contents for debugging.
-
void