OGLplus  (0.59.0) a C++ wrapper for rendering APIs

enum_class.hpp
Go to the documentation of this file.
1 #ifndef EGLPLUS_EGL_API_ENUM_CLASS_HPP
9 #define EGLPLUS_EGL_API_ENUM_CLASS_HPP
10 
11 #include "config.hpp"
12 #include <eagine/enum_bitfield.hpp>
13 #include <eagine/enum_class.hpp>
14 #include <eagine/identifier.hpp>
15 
16 namespace eagine::eglp {
17 //------------------------------------------------------------------------------
25 template <typename Self, identifier_t Id>
26 using egl_enum_class =
28 
32 
36 
37 static constexpr auto
38 same_enum_class(egl_any_enum_class a, egl_any_enum_class b) noexcept -> bool {
39  return ::eagine::same_enum_class(a, b);
40 }
41 //------------------------------------------------------------------------------
42 } // namespace eagine::eglp
43 
44 #endif // EGLPLUS_EGL_API_ENUM_CLASS_HPP
Enum class for constants or enumerators (typically from a C-API).
Definition: enum_class.hpp:237
#define EAGINE_ID_V(NAME)
Macro for constructing instances of eagine::identifier_t.
Definition: identifier.hpp:359
EGL-related code is placed in this namespace.
Definition: eglplus.hpp:11
enum_class< Self, egl_types::int_type, EAGINE_ID_V(EGL), Id > egl_enum_class
Typed wrapper class for EGL enum constants/values.
Definition: enum_class.hpp:27
Type erasure for instantiations of enum_value from a specified library.
Definition: enum_class.hpp:212
EGLint int_type
Signed integer type.
Definition: config.hpp:116
Type erasure for instantiations of enum_class from a specified library.
Definition: enum_class.hpp:385

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).