Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
RenderState wrapping the OpenGL function glBlendEquation()/glBlendEquationSeparate(), see also http://www.opengl.org/sdk/docs/man/xhtml/glBlendEquation.xml and http://www.opengl.org/sdk/docs/man/xhtml/glBlendEquationSeparate.xml for more information. More...
#include <Shader.hpp>
Public Member Functions | |
| BlendEquation (EBlendEquation mode_rgb=BE_FUNC_ADD, EBlendEquation mode_alpha=BE_FUNC_ADD) | |
| virtual const char * | className () |
| Returns the name of the class. | |
| virtual ERenderState | type () const |
| virtual void | apply (const Camera *, OpenGLContext *ctx) const |
| The parameter cameara is NULL if we are disabling the state, non-NULL if we are enabling it. | |
| void | set (EBlendEquation mode_rgba) |
| void | set (EBlendEquation mode_rgb, EBlendEquation mode_alpha) |
| EBlendEquation | modeRGB () const |
| EBlendEquation | modeAlpha () const |
Protected Attributes | |
| EBlendEquation | mModeRGB |
| EBlendEquation | mModeAlpha |
RenderState wrapping the OpenGL function glBlendEquation()/glBlendEquationSeparate(), see also http://www.opengl.org/sdk/docs/man/xhtml/glBlendEquation.xml and http://www.opengl.org/sdk/docs/man/xhtml/glBlendEquationSeparate.xml for more information.
Definition at line 402 of file Shader.hpp.
| vl::BlendEquation::BlendEquation | ( | EBlendEquation | mode_rgb = BE_FUNC_ADD, |
| EBlendEquation | mode_alpha = BE_FUNC_ADD |
||
| ) | [inline] |
Definition at line 405 of file Shader.hpp.
References VL_DEBUG_SET_OBJECT_NAME.
| virtual const char* vl::BlendEquation::className | ( | ) | [inline, virtual] |
Returns the name of the class.
Reimplemented from vl::RenderState.
Definition at line 409 of file Shader.hpp.
| virtual ERenderState vl::BlendEquation::type | ( | ) | const [inline, virtual] |
Reimplemented from vl::RenderState.
Definition at line 410 of file Shader.hpp.
References vl::RS_BlendEquation.
| void BlendEquation::apply | ( | const Camera * | camera, |
| OpenGLContext * | ctx | ||
| ) | const [virtual] |
The parameter cameara is NULL if we are disabling the state, non-NULL if we are enabling it.
Implements vl::RenderState.
Definition at line 295 of file Shader.cpp.
References mModeAlpha, mModeRGB, VL_CHECK_OGL, vl::VL_glBlendEquation(), and vl::VL_glBlendEquationSeparate().
| void vl::BlendEquation::set | ( | EBlendEquation | mode_rgba ) | [inline] |
Definition at line 413 of file Shader.hpp.
| void vl::BlendEquation::set | ( | EBlendEquation | mode_rgb, |
| EBlendEquation | mode_alpha | ||
| ) | [inline] |
Definition at line 414 of file Shader.hpp.
| EBlendEquation vl::BlendEquation::modeRGB | ( | ) | const [inline] |
Definition at line 415 of file Shader.hpp.
| EBlendEquation vl::BlendEquation::modeAlpha | ( | ) | const [inline] |
Definition at line 416 of file Shader.hpp.
EBlendEquation vl::BlendEquation::mModeRGB [protected] |
Definition at line 418 of file Shader.hpp.
Referenced by apply().
EBlendEquation vl::BlendEquation::mModeAlpha [protected] |
Definition at line 419 of file Shader.hpp.
Referenced by apply().