Go to the documentation of this file.
9 #ifndef EAGINE_SHAPES_TO_PATCHES_HPP
10 #define EAGINE_SHAPES_TO_PATCHES_HPP
32 static inline auto to_patches(std::shared_ptr<generator> gen) noexcept {
33 return std::make_unique<to_patches_gen>(std::move(gen));
39 #if !EAGINE_LINK_LIBRARY || defined(EAGINE_IMPLEMENTING_LIBRARY)
40 #include <eagine/shapes/to_patches.inl>
43 #endif // EAGINE_SHAPES_TO_PATCHES_HPP
Common code is placed in this namespace.
Definition: eagine.hpp:21
span_size_t drawing_variant
Alias for shape drawing variant index type.
Definition: gen_base.hpp:31
static auto to_patches(std::shared_ptr< generator > gen) noexcept
Constructs instances of to_patches_gen modifier.
Definition: to_patches.hpp:32
Generator modifier changing primitives in draw instructions to patches.
Definition: to_patches.hpp:21
Base class for delegating shape generators based on other generators.
Definition: delegated.hpp:21
void instructions(drawing_variant, span< draw_operation > ops) override
Fetches the drawing operations for the specified drawing variant.