Go to the documentation of this file.
9 #ifndef EAGINE_SHAPES_OCCLUDED_HPP
10 #define EAGINE_SHAPES_OCCLUDED_HPP
27 , _samples{samples} {}
39 return std::make_unique<occluded_gen>(std::move(gen), samples);
46 #if !EAGINE_LINK_LIBRARY || defined(EAGINE_IMPLEMENTING_LIBRARY)
47 #include <eagine/shapes/occluded.inl>
50 #endif // EAGINE_SHAPES_OCCLUDED_HPP
std::ptrdiff_t span_size_t
Signed span size type used by eagine.
Definition: types.hpp:36
Common code is placed in this namespace.
Definition: eagine.hpp:21
void attrib_values(vertex_attrib_variant, span< float >) override
Fetches the vertex attribute data for the specified variant as floats.
Class designating an vertex attribute variant in a shape generator.
Definition: vertex_attrib.hpp:104
Generator modifier calculating vertex occlusion weights.
Definition: occluded.hpp:22
static auto occlude(std::shared_ptr< generator > gen, span_size_t samples=8) noexcept
Constructs instances of occluded_gen modifier.
Definition: occluded.hpp:38
Base class for delegating shape generators based on other generators.
Definition: delegated.hpp:21