FBO Class Reference

#include <VisFBO.hpp>

List of all members.

Public Member Functions

 FBO (Texture2D *texture, GLint depthBuffer=-1, GLint stencilBuffer=-1)
GLuint getDepthBuffer ()
GLuint getStencilBuffer ()
void unbind ()
void bind ()


Detailed Description

A very useful FBO helper class.

Constructor & Destructor Documentation

FBO::FBO ( Texture2D texture,
GLint  depthBuffer = -1,
GLint  stencilBuffer = -1 
)

The constuctor.

Parameters:
texture The texture we want to render to.


Member Function Documentation

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 (  ) 

Unbinds the FBO and pops it off the stack. If there are other FBOs on the stack, the next FBO will be bound.


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

Generated on Wed Dec 10 14:40:58 2008 by  doxygen 1.5.7.1