A C++ class to abstract an accumulation buffer. More...
#include <accum.h>

Public Member Functions | |
| Accum (GLEWContext *const glewContext) | |
| Construct a new accumulation buffer. | |
| ~Accum () | |
| Destruct the accumulation buffer. | |
| bool | init (const PixelViewport &pvp, GLuint textureFormat) |
| Inits the accumulation object. | |
| void | exit () |
| Exits the accum object. | |
| bool | resize (const int width, const int height) |
| Resizes the accumulation object. | |
| void | clear () |
| Clears the accumulation object. | |
| void | accum () |
| Accumulates a frame into the accumulation object. | |
| void | display () |
| Displays the result of the accumulation object. | |
| uint32_t | getMaxSteps () const |
| Get the number of maximum steps possible to do during the accumulation operation. | |
| uint32_t | getNumSteps () const |
| Get the current number of accumulations done. | |
| void | setTotalSteps (uint32_t totalSteps) |
| Set the total steps that will be used. | |
| uint32_t | getTotalSteps () |
| bool | usesFBO () const |
| Test if the accumulation uses the FBO implementation. | |
| GLEWContext * | glewGetContext () |
| const GLEWContext * | glewGetContext () const |
Static Public Member Functions | |
| static bool | usesFBO (const GLEWContext *glewContext) |
| Test if the accumulation would use the FBO implementation. | |
A C++ class to abstract an accumulation buffer.
Depending on the OpenGL version, an FBO or glAccum() is used.
Remark: MacOS systems seem to have a buggy implementation of glAccum(), and use a workaround which needs setTotalSteps().
Definition at line 39 of file accum.h.
| uint32_t eq::util::Accum::getMaxSteps | ( | ) | const |
| uint32_t eq::util::Accum::getNumSteps | ( | ) | const [inline] |
| bool eq::util::Accum::init | ( | const PixelViewport & | pvp, | |
| GLuint | textureFormat | |||
| ) |
| bool eq::util::Accum::resize | ( | const int | width, | |
| const int | height | |||
| ) |
| void eq::util::Accum::setTotalSteps | ( | uint32_t | totalSteps | ) | [inline] |
Set the total steps that will be used.
This is needed only for Darwin systems because of the specific glAccum() workaround.
| totalSteps | the total number of steps to do. |
Definition at line 108 of file accum.h.
Referenced by eq::Compositor::assembleFramesSorted(), and eq::Compositor::assembleFramesUnsorted().

| bool eq::util::Accum::usesFBO | ( | const GLEWContext * | glewContext | ) | [static] |
| bool eq::util::Accum::usesFBO | ( | ) | const |
0.9.1 by
1.6.2