#include <GLFramebuffer.h>
Wrapper for an OpenGL framebuffer
Definition at line 25 of file GLFramebuffer.h.
virtual GLFramebuffer::~GLFramebuffer |
( |
| ) |
|
|
virtual |
GLFramebuffer::GLFramebuffer |
( |
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
unsigned int |
channelCount, |
|
|
Image::BaseType |
baseType |
|
) |
| |
|
protected |
void GLFramebuffer::bind |
( |
| ) |
|
Bind the framebuffer for rendering.
void GLFramebuffer::blit |
( |
| ) |
|
Blit our color texture to the back buffer.
Create a new framebuffer.
Return the color data of this framebuffer as an image. If an input image is provided, it will be used to store the color data; otherwise a new image of the required format will be created.
unsigned int GLFramebuffer::getColorTexture |
( |
| ) |
const |
|
inline |
unsigned int GLFramebuffer::getDepthTexture |
( |
| ) |
const |
|
inline |
bool GLFramebuffer::getEncodeSrgb |
( |
| ) |
|
|
inline |
unsigned int GLFramebuffer::getHeight |
( |
| ) |
const |
|
inline |
unsigned int GLFramebuffer::getWidth |
( |
| ) |
const |
|
inline |
void GLFramebuffer::setEncodeSrgb |
( |
bool |
encode | ) |
|
|
inline |
Set the encode sRGB flag, which controls whether values written to the framebuffer are encoded to the sRGB color space.
Definition at line 48 of file GLFramebuffer.h.
void GLFramebuffer::unbind |
( |
| ) |
|
Unbind the frame buffer after rendering.
unsigned int GLFramebuffer::_channelCount |
|
protected |
unsigned int GLFramebuffer::_colorTexture |
|
protected |
unsigned int GLFramebuffer::_depthTexture |
|
protected |
bool GLFramebuffer::_encodeSrgb |
|
protected |
unsigned int GLFramebuffer::_framebuffer |
|
protected |
unsigned int GLFramebuffer::_height |
|
protected |
unsigned int GLFramebuffer::_width |
|
protected |
The documentation for this class was generated from the following file: