|
CeresEngine 0.2.0
A game development framework
|
A helper class that wraps a OpenGL capability. More...
#include <CeresEngine/RenderAPI/OpenGL/GLStateManager.hpp>
Public Member Functions | |
| GLCapability (const GLenum capability, const bool defaultState=false) | |
Creates a new GLCapability wrapper. | |
| GLCapability & | operator= (const bool state) |
| Sets the capability state value. | |
| operator bool () const | |
| Gets the current capability state value. | |
Public Attributes | |
| GLenum | capability |
| The OpenGL capability constant. | |
| bool | current |
| The current state. | |
A helper class that wraps a OpenGL capability.
Assigning a boolean value to an object of this class will update the OpenGL state with a call to glEnable or glDisable.
|
inline |
Creates a new GLCapability wrapper.
| capability | The OpenGL capability constant |
| defaultState | The default initialization value (as defined by the OpenGL spec). Most values are false. |
|
inline |
Gets the current capability state value.
|
inline |
Sets the capability state value.
| state | The new state value |
*this | GLenum CeresEngine::GLCapability::capability |
The OpenGL capability constant.
| bool CeresEngine::GLCapability::current |
The current state.