#include <Fbo.h>
Public Member Functions | |
| Fbo () | |
| Standard Constructor. | |
| Fbo (const string &identifier, const GLuint &width, const GLuint &height, const GLuint &channels, const GLuint &colorAttachmentTextures) | |
| Constructor. | |
| Fbo (const Fbo &source) | |
| Copy-constructor. | |
| ~Fbo () | |
| Destructor. | |
| void | bind () |
| Bind FBO in OpenGL. | |
| void | disable () |
| Turn off rendering to this buffer. | |
| void | bindColorTexture (const GLuint &textureNumber) |
| Binds color texture in OpenGL. | |
| const string & | getIdentifier () const |
| Gets FBO identifier. | |
| GLuint | getWidth () const |
| Gets FBO resolution width. | |
| GLuint | getHeight () const |
| Gets FBO resolution height. | |
| GLuint | getGlName () |
| Gets OpenGL FBO name. | |
| void | renderGl (const GLuint &x, const GLuint &y, const GLuint &width, const GLuint &height, const GLuint &textureNumber) |
| Renders framebuffer contents to screen. | |
| virtual string | toString () const |
| Returns a textual representation. | |
| virtual string | className () const |
| Returns the class name of the object. | |
| virtual enum classId | classId () const |
| Returns the class id of the object. | |
| Fbo | operator= (const Fbo &fbo) |
| Operator =. | |
Private Attributes | |
| struct fboEntry * | data |
| data of the texture | |
| Fbo::Fbo | ( | ) |
Standard Constructor.
| Fbo::Fbo | ( | const string & | identifier, | |
| const GLuint & | width, | |||
| const GLuint & | height, | |||
| const GLuint & | channels, | |||
| const GLuint & | colorAttachmentCount | |||
| ) |
Constructor.
Creates an FBO
| identifier | The name by that this framebuffer will be referred to | |
| width | Width of the buffer in pixels | |
| height | Height of the buffer in pixels | |
| channels | Bytes per Pixel | |
| colorAttachmentCount | Number of Textures attached to buffer |
| Fbo::Fbo | ( | const Fbo & | source | ) |
Copy-constructor.
Duplicates an FBO
| Fbo::~Fbo | ( | ) |
Destructor.
Destroys the FBO
| void Fbo::bind | ( | ) |
Bind FBO in OpenGL.
Signals OpenGL to use this one as active framebuffer
| void Fbo::disable | ( | ) |
Turn off rendering to this buffer.
Turns back to default framebuffer rendering
| void Fbo::bindColorTexture | ( | const GLuint & | textureNumber | ) |
Binds color texture in OpenGL.
Signals OpenGL to use the first color texture as active textur
| const string & Fbo::getIdentifier | ( | ) | const |
Gets FBO identifier.
| GLuint Fbo::getWidth | ( | ) | const |
Gets FBO resolution width.
| GLuint Fbo::getHeight | ( | ) | const |
Gets FBO resolution height.
| GLuint Fbo::getGlName | ( | ) |
Gets OpenGL FBO name.
| void Fbo::renderGl | ( | const GLuint & | x, | |
| const GLuint & | y, | |||
| const GLuint & | width, | |||
| const GLuint & | height, | |||
| const GLuint & | textureNumber | |||
| ) |
Renders framebuffer contents to screen.
| x | the screen |
| string Fbo::toString | ( | ) | const [virtual] |
Returns a textual representation.
| string Fbo::className | ( | ) | const [virtual] |
Returns the class name of the object.
| enum classId Fbo::classId | ( | ) | const [virtual] |
Returns the class id of the object.
1.5.6