13 #ifndef OGLPLUS_CAPABILITY_1107121519_HPP
14 #define OGLPLUS_CAPABILITY_1107121519_HPP
55 #include <oglplus/enums/capability.ipp>
58 #if !OGLPLUS_NO_ENUM_VALUE_NAMES
59 #include <oglplus/enums/capability_names.ipp>
62 #if !OGLPLUS_ENUM_VALUE_RANGES
63 #include <oglplus/enums/capability_range.ipp>
66 inline void operator << (
Capability capability,
bool enable)
70 OGLPLUS_GLFUNC(Enable)(GLenum(capability));
71 OGLPLUS_VERIFY_SIMPLE(Enable);
75 OGLPLUS_GLFUNC(Disable)(GLenum(capability));
76 OGLPLUS_VERIFY_SIMPLE(Disable);
82 OGLPLUS_GLFUNC(Enable)(GLenum(capability));
83 OGLPLUS_VERIFY_SIMPLE(Enable);
88 OGLPLUS_GLFUNC(Disable)(GLenum(capability));
89 OGLPLUS_VERIFY_SIMPLE(Disable);
133 #include <oglplus/enums/functionality.ipp>
136 #if !OGLPLUS_NO_ENUM_VALUE_NAMES
137 #include <oglplus/enums/functionality_names.ipp>
140 #if !OGLPLUS_ENUM_VALUE_RANGES
141 #include <oglplus/enums/functionality_range.ipp>
144 struct FunctionalityAndNumber
149 inline FunctionalityAndNumber operator | (
Functionality func, GLuint number)
151 FunctionalityAndNumber result = { GLenum(func)+number };
155 inline void operator << (FunctionalityAndNumber func_and_num,
bool enable)
159 OGLPLUS_GLFUNC(Enable)(func_and_num._code);
160 OGLPLUS_VERIFY_SIMPLE(Enable);
164 OGLPLUS_GLFUNC(Disable)(func_and_num._code);
165 OGLPLUS_VERIFY_SIMPLE(Disable);
169 inline void operator + (FunctionalityAndNumber func_and_num)
171 OGLPLUS_GLFUNC(Enable)(func_and_num._code);
172 OGLPLUS_VERIFY_SIMPLE(Enable);
175 inline void operator - (FunctionalityAndNumber func_and_num)
177 OGLPLUS_GLFUNC(Disable)(func_and_num._code);
178 OGLPLUS_VERIFY_SIMPLE(Disable);
183 #endif // include guard
Enumeration-related declarations.
Functionality
Functionality enumeration.
Definition: capability.hpp:132
Capability
Capability enumeration.
Definition: capability.hpp:54