#include <VisFBO.hpp>
Public Member Functions | |
FBO (Texture2D *texture, GLint depthBuffer=-1, GLint stencilBuffer=-1) | |
GLuint | getDepthBuffer () |
GLuint | getStencilBuffer () |
void | unbind () |
void | bind () |
FBO::FBO | ( | Texture2D * | texture, | |
GLint | depthBuffer = -1 , |
|||
GLint | stencilBuffer = -1 | |||
) |
The constuctor.
texture | The texture we want to render to. |
void FBO::bind | ( | ) |
Binds the FBO and pushes it on the stack.
GLuint FBO::getDepthBuffer | ( | ) |
Returns depth buffer handle.
GLuint FBO::getStencilBuffer | ( | ) |
Returns stencil buffer handle.
void FBO::unbind | ( | ) |