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

gen_capabilities.hpp
Go to the documentation of this file.
1 
9 #ifndef EAGINE_SHAPES_GEN_CAPABILITIES_HPP
10 #define EAGINE_SHAPES_GEN_CAPABILITIES_HPP
11 
12 #include "../bitfield.hpp"
13 #include "../types.hpp"
14 
15 namespace eagine {
16 namespace shapes {
17 //------------------------------------------------------------------------------
28 };
29 //------------------------------------------------------------------------------
33 //------------------------------------------------------------------------------
36 static constexpr auto
39  return {a, b};
40 }
41 //------------------------------------------------------------------------------
42 } // namespace shapes
43 } // namespace eagine
44 
45 #endif // EAGINE_SHAPES_GEN_CAPABILITIES_HPP
Common code is placed in this namespace.
Definition: eagine.hpp:21
generator_capability
Shape generator capability bit enumeration.
Definition: gen_capabilities.hpp:21
@ element_strips
Line or triangle strips should be generated if possible.
@ primitive_restart
Primitive restart functionality should be used if possible.
@ element_fans
Line or triangle fanst should be generated if possible.
static constexpr auto operator|(generator_capability a, generator_capability b) noexcept -> generator_capabilities
Bitwise-or operator for generator_capability enumerators.
Definition: gen_capabilities.hpp:37

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