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
void accum(const float value)
Accumulate the current read buffer into the accumulation buffer.
A C++ class to abstract OpenGL frame buffer objects.
AccumBufferObject(const GLEWContext *const glewContext)
Construct a new Accumulation Buffer Object.
bool resize(const PixelViewport &pvp)
Resets the pixel viewport used in display and resizes the accumulation buffer if needed.
void load(const float value)
Load the current read buffer into the accumulation buffer.
A class to emulate an OpenGL accumulation buffer using an FBO.
~AccumBufferObject()
Destruct the Accumulation Buffer Object.
bool init(const PixelViewport &pvp, const unsigned format)
Initialize the Accumulation Buffer Object.
A wrapper around OpenGL textures.
void display(const float value)
Transfer accumulation buffer values to the draw buffer.
void exit()
De-initialize the Accumulation Buffer Object.