#include <GLFrameBufferObject.h>
Public Member Functions | |
| GLFrameBufferObject () | |
| virtual | ~GLFrameBufferObject () |
| bool | create (GLTexture &texture, bool withDepth=false) |
| void | destroy () |
| void | bind () |
| void | unBind () |
| bool | bufferValid () |
Protected Attributes | |
| GLuint | frameBufferObject_ |
| GLuint | depthBufferObject_ |
| GLTexture * | texture_ |
| bool | bound_ |
Definition at line 26 of file GLFrameBufferObject.h.
| GLFrameBufferObject::GLFrameBufferObject | ( | ) |
Definition at line 25 of file GLFrameBufferObject.cpp.
| GLFrameBufferObject::~GLFrameBufferObject | ( | ) | [virtual] |
| bool GLFrameBufferObject::create | ( | GLTexture & | texture, | |
| bool | withDepth = false | |||
| ) |
Definition at line 36 of file GLFrameBufferObject.cpp.
References depthBufferObject_, destroy(), S3D::dialogExit(), frameBufferObject_, GLTexture::getHeight(), GLTexture::getTexName(), GLTexture::getWidth(), GL_COLOR_ATTACHMENT0_EXT, GL_DEPTH_ATTACHMENT_EXT, GL_DEPTH_COMPONENT, GL_FRAMEBUFFER_COMPLETE_EXT, GL_FRAMEBUFFER_EXT, GL_RENDERBUFFER_EXT, GL_TEXTURE_2D, glBindFramebufferEXT, glBindRenderbufferEXT, glCheckFramebufferStatusEXT, glFramebufferRenderbufferEXT, glFramebufferTexture2DEXT, glGenFramebuffersEXT, glGenRenderbuffersEXT, glRenderbufferStorageEXT, GLStateExtension::hasFBO(), and texture_.
Referenced by Water2Renderer::generate().
| void GLFrameBufferObject::destroy | ( | ) |
Definition at line 77 of file GLFrameBufferObject.cpp.
References depthBufferObject_, frameBufferObject_, glDeleteFramebuffersEXT, and glDeleteRenderbuffersEXT.
Referenced by create(), and ~GLFrameBufferObject().
| void GLFrameBufferObject::bind | ( | ) |
Definition at line 86 of file GLFrameBufferObject.cpp.
References bound_, S3D::dialogExit(), frameBufferObject_, GLTexture::getHeight(), GLTexture::getWidth(), GL_FRAMEBUFFER_EXT, GL_VIEWPORT_BIT, glBindFramebufferEXT, glPushAttrib(), glViewport(), and texture_.
Referenced by Water2Renderer::bindWaterReflection().
| void GLFrameBufferObject::unBind | ( | ) |
Definition at line 96 of file GLFrameBufferObject.cpp.
References bound_, S3D::dialogExit(), GL_FRAMEBUFFER_EXT, glBindFramebufferEXT, and glPopAttrib().
Referenced by Water2Renderer::unBindWaterReflection().
| bool GLFrameBufferObject::bufferValid | ( | ) | [inline] |
GLuint GLFrameBufferObject::frameBufferObject_ [protected] |
Definition at line 40 of file GLFrameBufferObject.h.
Referenced by bind(), bufferValid(), create(), and destroy().
GLuint GLFrameBufferObject::depthBufferObject_ [protected] |
GLTexture* GLFrameBufferObject::texture_ [protected] |
bool GLFrameBufferObject::bound_ [protected] |
1.5.3