globjects  2.0.0.690708773bba
Strict OpenGL objects wrapper.
globjects::Capability Class Reference

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

Inheritance diagram for globjects::Capability:
globjects::Instantiator< Capability >

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
 

Additional Inherited Members

- Static Public Member Functions inherited from globjects::Instantiator< Capability >
static std::unique_ptr< Capabilitycreate (Args &&...args)
 
static std::unique_ptr< CapabilityfromId (gl::GLuint id, Args &&...args)
 

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: