#include <GLFramebuffer.h>
Public Member Functions | |
GLFramebuffer () | |
~GLFramebuffer () | |
GLuint | getBuffer () |
GLuint | getWidth () |
GLuint | getHeight () |
GLTexture * | createTexture () |
GLTexture * | getTexture (int index=0) |
void | create (GLuint width, GLuint height) |
void | free () |
Private Attributes | |
GLuint | buffer |
GLuint | width |
GLuint | height |
vector< GLTexture > | textures |
Definition at line 11 of file GLFramebuffer.h.
GLFramebuffer::GLFramebuffer | ( | ) |
GLFramebuffer::~GLFramebuffer | ( | ) |
void GLFramebuffer::create | ( | GLuint | width, | |
GLuint | height | |||
) |
Definition at line 41 of file GLFramebuffer.cpp.
References buffer, free(), getTexture(), and textures.
Referenced by GL3DView::initializeGL(), and GL3DView::paintGL().
GLTexture * GLFramebuffer::createTexture | ( | ) |
Definition at line 30 of file GLFramebuffer.cpp.
References textures.
Referenced by GL3DView::GL3DView().
void GLFramebuffer::free | ( | ) |
Definition at line 121 of file GLFramebuffer.cpp.
References buffer, and textures.
Referenced by create(), GL3DView::uninitializeGL(), and ~GLFramebuffer().
GLuint GLFramebuffer::getBuffer | ( | ) |
Definition at line 15 of file GLFramebuffer.cpp.
References buffer.
Referenced by GL3DView::drawColorCubes(), and GL3DView::drawVolume().
GLuint GLFramebuffer::getHeight | ( | ) |
Definition at line 25 of file GLFramebuffer.cpp.
References height.
Referenced by GL3DView::drawVolume().
GLTexture * GLFramebuffer::getTexture | ( | int | index = 0 |
) |
Definition at line 36 of file GLFramebuffer.cpp.
References textures.
Referenced by create(), GL3DView::drawVolume(), and GL3DView::paintGL().
GLuint GLFramebuffer::getWidth | ( | ) |
Definition at line 20 of file GLFramebuffer.cpp.
References width.
Referenced by GL3DView::drawVolume().
GLuint GLFramebuffer::buffer [private] |
Definition at line 25 of file GLFramebuffer.h.
Referenced by create(), free(), getBuffer(), and GLFramebuffer().
GLuint GLFramebuffer::height [private] |
vector<GLTexture> GLFramebuffer::textures [private] |
Definition at line 27 of file GLFramebuffer.h.
Referenced by create(), createTexture(), free(), and getTexture().
GLuint GLFramebuffer::width [private] |