Capability.h
Go to the documentation of this file.
#pragma once
#include <map>
#include <glbinding/gl/types.h>
#include <globjects/globjects_api.h>
namespace globjects
{
class GLOBJECTS_API Capability
{
public:
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:
gl::GLenum m_capability;
bool m_enabled;
std::map<int, bool> m_indexEnabled;
};
} // namespace globjects
globjects::Capability::m_indexEnabled
std::map< int, bool > m_indexEnabled
Definition: Capability.h:37
globjects
Contains all the classes that wrap OpenGL functionality.
globjects::Capability::m_enabled
bool m_enabled
Definition: Capability.h:36
globjects::Capability::m_capability
gl::GLenum m_capability
Definition: Capability.h:34
globjects::Capability
Definition: Capability.h:15
globjects::enable
GLOBJECTS_API void enable(gl::GLenum capability)
globjects::isEnabled
GLOBJECTS_API bool isEnabled(gl::GLenum capability)
globjects::disable
GLOBJECTS_API void disable(gl::GLenum capability)