19 #ifndef EQUTIL_ACCUMBUFFEROBJECT_H
20 #define EQUTIL_ACCUMBUFFEROBJECT_H
22 #include <eq/util/frameBufferObject.h>
23 #include <eq/util/types.h>
25 #include <eq/fabric/pixelViewport.h>
56 EQ_API
bool init(
const PixelViewport& pvp,
const unsigned format );
71 EQ_API
void load(
const float value );
83 EQ_API
void accum(
const float value );
95 EQ_API
void display(
const float value );
106 EQ_API
bool resize(
const PixelViewport& pvp );
109 void _setup(
const PixelViewport& pvp );
119 void _drawQuadWithTexture(
Texture* texture,
const PixelViewport& pvp,
129 #endif // EQUTIL_ACCUMBUFFEROBJECT_H
EQ_API ~AccumBufferObject()
Destruct the Accumulation Buffer Object.
A C++ class to abstract OpenGL frame buffer objects.
EQ_API void load(const float value)
Load the current read buffer into the accumulation buffer.
A wrapper around OpenGL textures.
EQ_API void accum(const float value)
Accumulate the current read buffer into the accumulation buffer.
EQ_API bool resize(const PixelViewport &pvp)
Resets the pixel viewport used in display and resizes the accumulation buffer if needed.
EQ_API void exit()
De-initialize the Accumulation Buffer Object.
A class to emulate an OpenGL accumulation buffer using an FBO.
EQ_API AccumBufferObject(const GLEWContext *const glewContext)
Construct a new Accumulation Buffer Object.
EQ_API void display(const float value)
Transfer accumulation buffer values to the draw buffer.
EQ_API bool init(const PixelViewport &pvp, const unsigned format)
Initialize the Accumulation Buffer Object.