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

Public Types | |
| enum | Operations { Unused = 1 << 0, SetColorMask = 1 << 1, EnableAlphaTest = 1 << 2, DisableAlphaTest = 1 << 3, EnableBlending = 1 << 4, DisableBlending = 1 << 5, EnableScissor = 1 << 6, DisableScissor = 1 << 7, EnableMultisampling = 1 << 8, SetShadeModel = 1 << 9, DisableMultisampling = 1 << 10, EnableAlpha2Coverage = 1 << 11, DisableAlpha2Coverage = 1 << 12 } |
Public Member Functions | |
| VRS_SERIALIZABLE_CLASS_ENUM (Operations) | |
| ColorBufferGL (int ops) | |
| bool | operator== (const ColorBufferGL &other) const |
| void | enableOperation (int flagToBeAdded) |
| void | disableOperation (int flagToBeRemoved) |
| int | getOperations () const |
| void | setColorMask (bool red, bool green, bool blue, bool alpha) |
| int | getColorMask () const |
| void | setAlphaFunction (GLenum fct) |
| GLenum | getAlphaFunction () const |
| void | setAlpha (double alpha) |
| double | getAlpha () const |
| void | setScissor (const Area &area) |
| void | setScissor (int x, int y, int width, int height) |
| Area | getScissor () const |
| void | setSourceBlend (GLenum mode) |
| GLenum | getSourceBlend () const |
| void | setDestinationBlend (GLenum mode) |
| GLenum | getDestinationBlend () const |
| Blending mode: GL_ZERO, GL_ONE, GL_ONE_MINUS_SRC etc. | |
| void | setFlatShading (bool onOff) |
| bool | getFlatShading () const |
| Set/get flat shading / smooth shading. | |
| VRS_TYPEINFO (ColorBufferGL, MonoAttribute) | |
| VRS_SERIALIZABLE (ColorBufferGL) | |
Static Public Member Functions | |
| static ColorBufferGL * | newAlphaTest (bool enable, GLenum fct=GL_ALWAYS, double refAlpha=1.0) |
| static ColorBufferGL * | newBlending (bool enable, GLenum srcFactor=GL_DST_COLOR, GLenum dstFactor=GL_ZERO) |
| static ColorBufferGL * | newLock (bool red, bool green, bool blue, bool alpha) |
| static ColorBufferGL * | newFlatShading (bool enable) |
| static ColorBufferGL * | newScissorTest (bool enable, const VRS::Area ®ion=VRS::Area()) |
Protected Member Functions | |
| ColorBufferGL () | |
| VRS::ColorBufferGL::ColorBufferGL | ( | int | ops | ) |
This attribute allows you to specify OpenGL color buffer settings. You can specify several settings with one attribute.
Functionality for clearing the color buffer is provided by the FrameBufferGL attribute.
| VRS::ColorBufferGL::ColorBufferGL | ( | ) | [protected] |
| VRS::ColorBufferGL::VRS_SERIALIZABLE_CLASS_ENUM | ( | Operations | ) |
| bool VRS::ColorBufferGL::operator== | ( | const ColorBufferGL & | other | ) | const |
| void VRS::ColorBufferGL::enableOperation | ( | int | flagToBeAdded | ) |
| void VRS::ColorBufferGL::disableOperation | ( | int | flagToBeRemoved | ) |
| int VRS::ColorBufferGL::getOperations | ( | ) | const [inline] |
| void VRS::ColorBufferGL::setColorMask | ( | bool | red, | |
| bool | green, | |||
| bool | blue, | |||
| bool | alpha | |||
| ) |
| int VRS::ColorBufferGL::getColorMask | ( | ) | const [inline] |
| void VRS::ColorBufferGL::setAlphaFunction | ( | GLenum | fct | ) |
| GLenum VRS::ColorBufferGL::getAlphaFunction | ( | ) | const [inline] |
| void VRS::ColorBufferGL::setAlpha | ( | double | alpha | ) |
| double VRS::ColorBufferGL::getAlpha | ( | ) | const [inline] |
| void VRS::ColorBufferGL::setScissor | ( | const Area & | area | ) |
| void VRS::ColorBufferGL::setScissor | ( | int | x, | |
| int | y, | |||
| int | width, | |||
| int | height | |||
| ) |
| Area VRS::ColorBufferGL::getScissor | ( | ) | const [inline] |
| void VRS::ColorBufferGL::setSourceBlend | ( | GLenum | mode | ) |
| GLenum VRS::ColorBufferGL::getSourceBlend | ( | ) | const [inline] |
| void VRS::ColorBufferGL::setDestinationBlend | ( | GLenum | mode | ) |
| GLenum VRS::ColorBufferGL::getDestinationBlend | ( | ) | const [inline] |
Blending mode: GL_ZERO, GL_ONE, GL_ONE_MINUS_SRC etc.
| void VRS::ColorBufferGL::setFlatShading | ( | bool | onOff | ) |
| bool VRS::ColorBufferGL::getFlatShading | ( | ) | const [inline] |
Set/get flat shading / smooth shading.
| static ColorBufferGL* VRS::ColorBufferGL::newAlphaTest | ( | bool | enable, | |
| GLenum | fct = GL_ALWAYS, |
|||
| double | refAlpha = 1.0 | |||
| ) | [static] |
| static ColorBufferGL* VRS::ColorBufferGL::newBlending | ( | bool | enable, | |
| GLenum | srcFactor = GL_DST_COLOR, |
|||
| GLenum | dstFactor = GL_ZERO | |||
| ) | [static] |
| static ColorBufferGL* VRS::ColorBufferGL::newLock | ( | bool | red, | |
| bool | green, | |||
| bool | blue, | |||
| bool | alpha | |||
| ) | [static] |
| static ColorBufferGL* VRS::ColorBufferGL::newFlatShading | ( | bool | enable | ) | [static] |
| static ColorBufferGL* VRS::ColorBufferGL::newScissorTest | ( | bool | enable, | |
| const VRS::Area & | region = VRS::Area() | |||
| ) | [static] |
| VRS::ColorBufferGL::VRS_TYPEINFO | ( | ColorBufferGL | , | |
| MonoAttribute | ||||
| ) |
| VRS::ColorBufferGL::VRS_SERIALIZABLE | ( | ColorBufferGL | ) |