22#include <glm/vec4.hpp>
23#include <Graph/ShaderGraph.h>
25namespace ocu = open_cpp_utils;
27namespace OpenShaderDesigner::Nodes::Math
32inline static constexpr ImColor HeaderColor = ImColor(0xA7, 0x62, 0x53);
33inline static constexpr ImColor HeaderHoveredColor = ImColor(0xC5, 0x79, 0x67);
34inline static constexpr ImColor HeaderActiveColor = ImColor(0x82, 0x4C, 0x40);
36inline static const std::string HeaderMarker =
"\uF3B9 ";
49 enum MathOpFlags_ : glw::enum_t
52 , MathOpFlags_AllowMultipleInputTypes = 0x0000'0001
58 virtual bool CheckConnection(
Pin*,
Pin*)
override;
59 virtual void ValidateConnections()
override;
73 ~Add()
override =
default;
76 void Inspect()
override;
78 std::string GetCode()
const override;
90 void Inspect()
override;
92 std::string GetCode()
const override;
103 void Inspect()
override;
105 std::string GetCode()
const override;
117 void Inspect()
override;
119 std::string GetCode()
const override;
131 void Inspect()
override;
133 std::string GetCode()
const override;
145 void Inspect()
override;
147 std::string GetCode()
const override;
156 ~Power()
override =
default;
159 void Inspect()
override;
161 std::string GetCode()
const override;
173 void Inspect()
override;
175 std::string GetCode()
const override;
Definition ShaderGraph.h:246
Definition ShaderGraph.h:142
Definition Functions.h:126
Definition Functions.h:71
Definition Functions.h:112
Definition Functions.h:168
Definition Functions.h:48
Definition Functions.h:98
Definition Functions.h:154
Definition Functions.h:140
Definition Functions.h:85
Definition ShaderGraph.h:83