globjects  1.1.0.2f0c753c8647
Strict OpenGL objects wrapper.
globjects::Capability Class Reference

#include <globjects/include/globjects/Capability.h>

Public Member Functions

 Capability (gl::GLenum capability)
 
 Capability (gl::GLenum capability, bool enabled)
 
gl::GLenum capability () const
 
void enable ()
 
void disable ()
 
bool isEnabled () const
 
void enable (int index)
 
void disable (int index)
 
bool isEnabled (int index) const
 
void apply ()
 

Protected Attributes

gl::GLenum m_capability
 
bool m_enabled
 
std::map< int, bool > m_indexEnabled
 

Constructor & Destructor Documentation

globjects::Capability::Capability ( gl::GLenum  capability)
globjects::Capability::Capability ( gl::GLenum  capability,
bool  enabled 
)

Member Function Documentation

gl::GLenum globjects::Capability::capability ( ) const
void globjects::Capability::enable ( )
void globjects::Capability::disable ( )
bool globjects::Capability::isEnabled ( ) const
void globjects::Capability::enable ( int  index)
void globjects::Capability::disable ( int  index)
bool globjects::Capability::isEnabled ( int  index) const
void globjects::Capability::apply ( )

Member Data Documentation

gl::GLenum globjects::Capability::m_capability
protected
bool globjects::Capability::m_enabled
protected
std::map<int, bool> globjects::Capability::m_indexEnabled
protected

The documentation for this class was generated from the following file: