#include
<oglplus/hint.hpp>
enum class HintTarget : GLenum { LineSmooth = GL_LINE_SMOOTH_HINT, PolygonSmooth = GL_POLYGON_SMOOTH_HINT, TextureCompression = GL_TEXTURE_COMPRESSION_HINT, FragmentShaderDerivative = GL_FRAGMENT_SHADER_DERIVATIVE_HINT }; template <> Range<HintTarget> EnumValueRange<HintTarget>(void); StrCRef EnumValueName(HintTarget);
#if !OGLPLUS_NO_ENUM_VALUE_CLASSES
namespace enums {
template <typename Base, template<HintTarget> class Transform>
class EnumToClass<Base, HintTarget, Transform>
: public Base
{
public:
EnumToClass(void);
EnumToClass(Base&& base);
Transform<HintTarget::LineSmooth>
LineSmooth;
Transform<HintTarget::PolygonSmooth>
PolygonSmooth;
Transform<HintTarget::TextureCompression>
TextureCompression;
Transform<HintTarget::FragmentShaderDerivative>
FragmentShaderDerivative;
};
} // namespace enums
#endif
Specialization of EnumToClass for the HintTarget enumeration. |
enum class HintOption : GLenum { Fastest = GL_FASTEST, Nicest = GL_NICEST, DontCare = GL_DONT_CARE }; template <> Range<HintOption> EnumValueRange<HintOption>(void); StrCRef EnumValueName(HintOption);