Go to the documentation of this file. 1 #ifndef OGLPLUS_TEXGEN_WRAP_NODE_HPP
9 #define OGLPLUS_TEXGEN_WRAP_NODE_HPP
16 namespace eagine::oglp::texgen {
18 enum class wrap_mode { repeat, mirror, clamp };
20 class wrap_output :
public base_output {
23 fallback_input<coord_output> input;
25 wrap_output(node_intf& parent);
31 std::ostream& definitions(std::ostream& out, compile_context& ctxt)
override;
35 :
public unary_single_output_node<
37 decltype(wrap_output::input),
38 &wrap_output::input> {
40 wrap_node() =
default;
42 wrap_node& set_mode(wrap_mode mode) {
50 #if !OGLPLUS_LINK_LIBRARY || defined(OGLPLUS_IMPLEMENTING_LIBRARY)
51 #include <oglplus/texgen/wrap_node.inl>
54 #endif // OGLPLUS_TEXGEN_WRAP_NODE_HPP
value_type
Value tree value element data type enumeration.
Definition: interface.hpp:27
basic_string_span< const char > string_view
Alias for const string views.
Definition: string_span.hpp:116
static auto type_name(const T &) noexcept -> std::string
Returns the demangled name for type T.
Definition: type_name.hpp:24