Go to the documentation of this file. 1 #ifndef OGLPLUS_TEXGEN_GLSL_NODE_HPP
9 #define OGLPLUS_TEXGEN_GLSL_NODE_HPP
15 namespace eagine::oglp::texgen {
17 class glsl_output :
public multi_input_output {
19 friend class glsl_node;
25 glsl_output(node_intf& parent, std::string, slot_data_type);
27 glsl_output(node_intf& parent)
28 : glsl_output(parent,
"vec4(0.0)", slot_data_type::float_4) {}
34 std::ostream& definitions(std::ostream& out, compile_context& ctxt)
override;
37 class glsl_node :
public multi_input_node {
44 glsl_output& single_output()
override {
48 glsl_node& set_glsl(
const std::string& glsl) {
53 glsl_node& set_type(slot_data_type type) {
61 #if !OGLPLUS_LINK_LIBRARY || defined(OGLPLUS_IMPLEMENTING_LIBRARY)
62 #include <oglplus/texgen/glsl_node.inl>
65 #endif // OGLPLUS_TEXGEN_GLSL_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