Equalizer 1.0

eq::util::AccumBufferObject Class Reference

A class to emulate an OpenGL accumulation buffer using an FBO. More...

#include <accumBufferObject.h>

Inheritance diagram for eq::util::AccumBufferObject:
Collaboration diagram for eq::util::AccumBufferObject:

List of all members.

Public Member Functions

 AccumBufferObject (const GLEWContext *const glewContext)
 Construct a new Accumulation Buffer Object.
 ~AccumBufferObject ()
 Destruct the Accumulation Buffer Object.
bool init (const PixelViewport &pvp, const GLuint format)
 Initialize the Accumulation Buffer Object.
void exit ()
 De-initialize the Accumulation Buffer Object.
void load (const GLfloat value)
 Load the current read buffer into the accumulation buffer.
void accum (const GLfloat value)
 Accumulate the current read buffer into the accumulation buffer.
void display (const GLfloat value)
 Transfer accumulation buffer values to the draw buffer.

Detailed Description

A class to emulate an OpenGL accumulation buffer using an FBO.

See also:
glAccum(), eq::util::Accum

Definition at line 36 of file accumBufferObject.h.


Constructor & Destructor Documentation

eq::util::AccumBufferObject::AccumBufferObject ( const GLEWContext *const  glewContext)

Construct a new Accumulation Buffer Object.

Version:
1.0
eq::util::AccumBufferObject::~AccumBufferObject ( )

Destruct the Accumulation Buffer Object.

Version:
1.0

Member Function Documentation

void eq::util::AccumBufferObject::accum ( const GLfloat  value)

Accumulate the current read buffer into the accumulation buffer.

The color values of the current read buffer are multiplied by value and added to the accumulation buffer.

Parameters:
valuea floating-point value multiplying the source values during the accum operation.
Version:
1.0
void eq::util::AccumBufferObject::display ( const GLfloat  value)

Transfer accumulation buffer values to the draw buffer.

The accumulation buffer color values are multiplied by value, and copied into the current draw buffer.

Parameters:
valuea floating-point value multiplying the accumulation values during the operation.
Version:
1.0
void eq::util::AccumBufferObject::exit ( )

De-initialize the Accumulation Buffer Object.

Version:
1.0

Reimplemented from eq::util::FrameBufferObject.

bool eq::util::AccumBufferObject::init ( const PixelViewport pvp,
const GLuint  format 
)

Initialize the Accumulation Buffer Object.

The ABO uses a 32-bit float texture for the accumulation.

Parameters:
pvpthe initial pixel viewport of the rendering buffer.
formatthe texture format corresponding to the source color read buffer.
Returns:
true on success, false otherwise
See also:
Window::getColorFormat(), glReadBuffer()
Version:
1.0
void eq::util::AccumBufferObject::load ( const GLfloat  value)

Load the current read buffer into the accumulation buffer.

The color values of the current read buffer are multiplied with value and copied into the accumulation buffer.

Parameters:
valuea floating-point value multiplying the source values during the load operation.
Version:
1.0

The documentation for this class was generated from the following file:
Generated on Sun May 8 2011 19:11:10 for Equalizer 1.0 by  doxygen 1.7.3