A class to emulate an OpenGL accumulation buffer using an FBO. More...
#include <accumBufferObject.h>


Public Member Functions | |
| AccumBufferObject (GLEWContext *const glewContext) | |
| Construct a new Accumulation Buffer Object. | |
| ~AccumBufferObject () | |
| Destruct the Accumulation Buffer Object. | |
| bool | init (const PixelViewport &pvp, GLuint format) |
| Initialize the Accumulation Buffer Object. | |
| void | exit () |
| De-initialize the Accumulation Buffer Object. | |
| void | load (GLfloat value) |
| Load the current read buffer into the accumulation buffer. | |
| void | accum (GLfloat value) |
| Accumulate the current read buffer into the accumulation buffer. | |
| void | display (GLfloat value) |
| Transfers accumulation buffer values to the write buffer. | |
A class to emulate an OpenGL accumulation buffer using an FBO.
Definition at line 34 of file accumBufferObject.h.
| bool eq::util::AccumBufferObject::init | ( | const PixelViewport & | pvp, | |
| GLuint | format | |||
| ) |
Initialize the Accumulation Buffer Object.
The ABO uses a 32-bit float texture.
| width | the initial width of the rendering buffer. | |
| height | the initial height of the rendering buffer. | |
| format | the texture format corresponding to the source color read buffer. |
Definition at line 38 of file accumBufferObject.cpp.
References exit(), eq::util::FrameBufferObject::init(), eq::util::FrameBufferObject::setColorFormat(), eq::util::Texture::setFormat(), and eq::util::FrameBufferObject::unbind().
Referenced by eq::util::Accum::init().


| void eq::util::AccumBufferObject::exit | ( | ) |
De-initialize the Accumulation Buffer Object.
Reimplemented from eq::util::FrameBufferObject.
Definition at line 56 of file accumBufferObject.cpp.
References eq::util::Texture::flush().
Referenced by eq::util::Accum::exit(), init(), and ~AccumBufferObject().


| void eq::util::AccumBufferObject::load | ( | GLfloat | value | ) |
Load the current read buffer into the accumulation buffer.
The values of the current read buffer are multiplied with value and copied into the accumulation buffer.
| value | a floating-point value multiplying the source values during the load operation. |
Definition at line 67 of file accumBufferObject.cpp.
References eq::util::FrameBufferObject::bind(), eq::util::Texture::copyFromFrameBuffer(), eq::util::FrameBufferObject::getPixelViewport(), and eq::util::FrameBufferObject::unbind().
Referenced by eq::util::Accum::accum().


| void eq::util::AccumBufferObject::accum | ( | GLfloat | value | ) |
Accumulate the current read buffer into the accumulation buffer.
The read buffer is multiplied by value and added to the accumulation buffer.
| value | a floating-point value multiplying the source values during the accum operation. |
Definition at line 78 of file accumBufferObject.cpp.
References eq::util::FrameBufferObject::bind(), eq::util::Texture::copyFromFrameBuffer(), eq::util::FrameBufferObject::getPixelViewport(), and eq::util::FrameBufferObject::unbind().
Referenced by eq::util::Accum::accum().


| void eq::util::AccumBufferObject::display | ( | GLfloat | value | ) |
Transfers accumulation buffer values to the write buffer.
Each accumulation buffer is multiplied by value during the transfer.
| value | a floating-point value multiplying the accumulation values during the operation. |
Definition at line 93 of file accumBufferObject.cpp.
References eq::util::FrameBufferObject::getColorTextures().
Referenced by eq::util::Accum::display().


0.9.1 by
1.6.1