Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
A set of enables managed by Shader. More...
#include <EnableSet.hpp>
Public Member Functions | |
| EnableSet () | |
| virtual const char * | className () |
| Returns the name of the class. | |
| void | enable (EEnable capability) |
| void | disable (EEnable capability) |
| const std::vector< EEnable > & | enables () const |
| int | isEnabled (EEnable capability) const |
| void | disableAll () |
| bool | blendingEnabled () const |
Protected Attributes | |
| std::vector< EEnable > | mEnables |
| bool | mBlendingEnabled |
A set of enables managed by Shader.
This class substitutes for the most part the OpenGL functions glEnable() and glDisable().
Definition at line 47 of file EnableSet.hpp.
| vl::EnableSet::EnableSet | ( | ) | [inline] |
Definition at line 50 of file EnableSet.hpp.
References VL_DEBUG_SET_OBJECT_NAME.
| virtual const char* vl::EnableSet::className | ( | ) | [inline, virtual] |
Returns the name of the class.
Reimplemented from vl::Object.
Definition at line 55 of file EnableSet.hpp.
| void vl::EnableSet::enable | ( | EEnable | capability ) | [inline] |
Definition at line 59 of file EnableSet.hpp.
References vl::EN_BLEND, mBlendingEnabled, and mEnables.
| void vl::EnableSet::disable | ( | EEnable | capability ) | [inline] |
Definition at line 69 of file EnableSet.hpp.
References vl::EN_BLEND, mBlendingEnabled, and mEnables.
| const std::vector<EEnable>& vl::EnableSet::enables | ( | ) | const [inline] |
Definition at line 83 of file EnableSet.hpp.
References mEnables.
Referenced by vl::OpenGLContext::applyEnables().
| int vl::EnableSet::isEnabled | ( | EEnable | capability ) | const [inline] |
Definition at line 85 of file EnableSet.hpp.
References mEnables.
| void vl::EnableSet::disableAll | ( | ) | [inline] |
Definition at line 93 of file EnableSet.hpp.
References mBlendingEnabled, and mEnables.
| bool vl::EnableSet::blendingEnabled | ( | ) | const [inline] |
Definition at line 95 of file EnableSet.hpp.
References mBlendingEnabled.
std::vector<EEnable> vl::EnableSet::mEnables [protected] |
Definition at line 98 of file EnableSet.hpp.
Referenced by disable(), disableAll(), enable(), enables(), and isEnabled().
bool vl::EnableSet::mBlendingEnabled [protected] |
Definition at line 99 of file EnableSet.hpp.
Referenced by blendingEnabled(), disable(), disableAll(), and enable().