Go to the documentation of this file.
9 #ifndef EAGINE_SHAPES_TRANSLATED_HPP
10 #define EAGINE_SHAPES_TRANSLATED_HPP
25 std::shared_ptr<generator> gen,
26 std::array<float, 3> d) noexcept
35 std::array<float, 3> _d;
41 translate(std::shared_ptr<generator> gen, std::array<float, 3> d) noexcept {
42 return std::make_unique<translated_gen>(std::move(gen), d);
49 #if !EAGINE_LINK_LIBRARY || defined(EAGINE_IMPLEMENTING_LIBRARY)
50 #include <eagine/shapes/translated.inl>
53 #endif // EAGINE_SHAPES_TRANSLATED_HPP
static auto translate(std::shared_ptr< generator > gen, std::array< float, 3 > d) noexcept
Constructs instances of translated_gen modifier.
Definition: translated.hpp:41
Basic template for spheres in N-dimensional space.
Definition: primitives.hpp:122
Common code is placed in this namespace.
Definition: eagine.hpp:21
Class designating an vertex attribute variant in a shape generator.
Definition: vertex_attrib.hpp:104
auto bounding_sphere() -> math::sphere< float, true > override
Returns the bounding sphere for the generated shape.
Generator modifier translating the generated vertices by specifed amount.
Definition: translated.hpp:22
void attrib_values(vertex_attrib_variant, span< float >) override
Fetches the vertex attribute data for the specified variant as floats.
Base class for delegating shape generators based on other generators.
Definition: delegated.hpp:21