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

base_unit.hpp
Go to the documentation of this file.
1 
9 #ifndef EAGINE_UNITS_BASE_UNIT_HPP
10 #define EAGINE_UNITS_BASE_UNIT_HPP
11 
12 #include "base_dim.hpp"
13 #include "scales.hpp"
14 
15 namespace eagine::units::base {
16 
17 template <typename Dimension, typename Derived>
18 struct unit {
19  using dimension = Dimension;
20  using scale = scales::one;
21  using type = Derived;
22 };
23 
24 } // namespace eagine::units::base
25 
26 #endif // EAGINE_UNITS_BASE_UNIT_HPP
static auto scale(std::shared_ptr< generator > gen, std::array< float, 3 > s) noexcept
Constructs instances of scaled_gen modifier.
Definition: scaled.hpp:41

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