Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
FrameBuffer Class Reference
Inheritance diagram for FrameBuffer:
Inheritance graph

Public Member Functions

 FrameBuffer (const std::vector< GLuint > &rtts, unsigned w, unsigned h)
 FrameBuffer (const std::vector< GLuint > &rtts, GLuint depth_stencil, unsigned w, unsigned h)
void bind () const
void bindDepthOnly () const
const std::vector< GLuint > & getRTT () const
GLuint getDepthTexture () const
unsigned int getWidth () const
unsigned int getHeight () const
void blitToDefault (size_t x0, size_t y0, size_t x1, size_t y1)

Static Public Member Functions

static void blit (const FrameBuffer &src, const FrameBuffer &dst, GLbitfield mask=GL_COLOR_BUFFER_BIT, GLenum filter=GL_NEAREST)

Protected Attributes

GLuint m_fbo = 0
std::vector< GLuint > m_render_targets
GLuint m_depth_texture = 0
unsigned m_width = 0
unsigned m_height = 0

The documentation for this class was generated from the following file: