| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/opengl/accumbuffergl.h>

Public Types | |
| enum | Operations { ClearAccumBuffer = 1 << 0, Accum = 1 << 1, Load = 1 << 2, Add = 1 << 3, Mult = 1 << 4, Return = 1 << 5 } |
Public Member Functions | |
| VRS_SERIALIZABLE_CLASS_ENUM (Operations) | |
| AccumBufferGL (int ops, GLfloat value=1.0, GLenum buffer=GL_BACK, const Color &clearColor=Color::black) | |
| void | enableOperation (int flagToBeAdded) |
| void | disableOperation (int flagToBeRemoved) |
| int | getOperations () const |
| void | setClearColor (const Color &) |
| Color | getClearColor () const |
| Sets/gets the color used to clear the accum buffer. | |
| void | setValue (GLfloat value) |
| GLfloat | getValue () const |
| void | setBuffer (GLenum buffer) |
| GLenum | getBuffer () const |
| VRS_TYPEINFO (AccumBufferGL, MonoAttribute) | |
| VRS_SERIALIZABLE (AccumBufferGL) | |
Protected Member Functions | |
| AccumBufferGL () | |
| VRS::AccumBufferGL::AccumBufferGL | ( | int | ops, | |
| GLfloat | value = 1.0, |
|||
| GLenum | buffer = GL_BACK, |
|||
| const Color & | clearColor = Color::black | |||
| ) |
Attribute to perform operations on the accumulation buffer and to set the value for the operation. Allowed buffers are GL_FRONT, GL_BACK, GL_LEFT, GL_RIGHT, GL_FRONT_LEFT, GL_FRONT_RIGHT, GL_BACK_LEFT and GL_BACK_RIGHT,
| VRS::AccumBufferGL::AccumBufferGL | ( | ) | [protected] |
| VRS::AccumBufferGL::VRS_SERIALIZABLE_CLASS_ENUM | ( | Operations | ) |
| void VRS::AccumBufferGL::enableOperation | ( | int | flagToBeAdded | ) |
| void VRS::AccumBufferGL::disableOperation | ( | int | flagToBeRemoved | ) |
| int VRS::AccumBufferGL::getOperations | ( | ) | const [inline] |
| void VRS::AccumBufferGL::setClearColor | ( | const Color & | ) |
| Color VRS::AccumBufferGL::getClearColor | ( | ) | const [inline] |
Sets/gets the color used to clear the accum buffer.
| void VRS::AccumBufferGL::setValue | ( | GLfloat | value | ) |
| GLfloat VRS::AccumBufferGL::getValue | ( | ) | const [inline] |
Used as accum/load/add/mult/return factor passed glAccum. Note that you cannot set differnt values for more than one operation within one single AccumBufferGL attribute. Use single instances in such a case.
| void VRS::AccumBufferGL::setBuffer | ( | GLenum | buffer | ) |
| GLenum VRS::AccumBufferGL::getBuffer | ( | ) | const [inline] |
Set/get buffer for reading the values to accumulate, i.e. this calls `glReadBuffer' with `buffer' as argument. Itīs the userīs task to check if the given exists. If the `buffer' doesnīt exist, an error occurs.
| VRS::AccumBufferGL::VRS_TYPEINFO | ( | AccumBufferGL | , | |
| MonoAttribute | ||||
| ) |
| VRS::AccumBufferGL::VRS_SERIALIZABLE | ( | AccumBufferGL | ) |