\doxysection{Math.\+h} \hypertarget{_math_8h_source}{}\label{_math_8h_source}\index{Include/Graph/Nodes/Math.h@{Include/Graph/Nodes/Math.h}} \begin{DoxyCode}{0} \DoxyCodeLine{00001\ \textcolor{comment}{//\ =====================================================================================================================}} \DoxyCodeLine{00002\ \textcolor{comment}{//\ Copyright\ 2024\ Medusa\ Slockbower}} \DoxyCodeLine{00003\ \textcolor{comment}{//\ Licensed\ under\ the\ Apache\ License,\ Version\ 2.0\ (the\ "{}License"{});}} \DoxyCodeLine{00004\ \textcolor{comment}{//\ you\ may\ not\ use\ this\ file\ except\ in\ compliance\ with\ the\ License.}} \DoxyCodeLine{00005\ \textcolor{comment}{//\ You\ may\ obtain\ a\ copy\ of\ the\ License\ at}} \DoxyCodeLine{00006\ \textcolor{comment}{//}} \DoxyCodeLine{00007\ \textcolor{comment}{//\ \ http://www.apache.org/licenses/LICENSE-\/2.0}} \DoxyCodeLine{00008\ \textcolor{comment}{//}} \DoxyCodeLine{00009\ \textcolor{comment}{//\ Unless\ required\ by\ applicable\ law\ or\ agreed\ to\ in\ writing,\ software}} \DoxyCodeLine{00010\ \textcolor{comment}{//\ distributed\ under\ the\ License\ is\ distributed\ on\ an\ "{}AS\ IS"{}\ BASIS,}} \DoxyCodeLine{00011\ \textcolor{comment}{//\ WITHOUT\ WARRANTIES\ OR\ CONDITIONS\ OF\ ANY\ KIND,\ either\ express\ or\ implied.}} \DoxyCodeLine{00012\ \textcolor{comment}{//\ See\ the\ License\ for\ the\ specific\ language\ governing\ permissions\ and}} \DoxyCodeLine{00013\ \textcolor{comment}{//\ limitations\ under\ the\ License.}} \DoxyCodeLine{00014\ \textcolor{comment}{//\ =====================================================================================================================}} \DoxyCodeLine{00015\ } \DoxyCodeLine{00016\ \textcolor{preprocessor}{\#ifndef\ MATH\_H}} \DoxyCodeLine{00017\ \textcolor{preprocessor}{\#define\ MATH\_H}} \DoxyCodeLine{00018\ } \DoxyCodeLine{00019\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00020\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00021\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00022\ } \DoxyCodeLine{00023\ \textcolor{keyword}{namespace\ }ocu\ =\ open\_cpp\_utils;} \DoxyCodeLine{00024\ } \DoxyCodeLine{00025\ \textcolor{keyword}{namespace\ }OpenShaderDesigner::Nodes::Math} \DoxyCodeLine{00026\ \{} \DoxyCodeLine{00027\ \ \ \ \ \textcolor{keyword}{inline}\ \textcolor{keyword}{static}\ \textcolor{keyword}{constexpr}\ ImColor\ HeaderColor\ =\ ImColor(0x92,\ 0x16,\ 0x16);} \DoxyCodeLine{00028\ } \DoxyCodeLine{00029\ \ \ \ \ \textcolor{keyword}{struct\ }\mbox{\hyperlink{struct_open_shader_designer_1_1_nodes_1_1_math_1_1_constant}{Constant}}\ :\ \textcolor{keyword}{public}\ \mbox{\hyperlink{struct_open_shader_designer_1_1_node}{Node}}} \DoxyCodeLine{00030\ \ \ \ \ \{} \DoxyCodeLine{00031\ \ \ \ \ \ \ \ \ \textcolor{keyword}{using\ }ValueType\ =\ ocu::any;} \DoxyCodeLine{00032\ } \DoxyCodeLine{00033\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{struct_open_shader_designer_1_1_nodes_1_1_math_1_1_constant}{Constant}}(\mbox{\hyperlink{class_open_shader_designer_1_1_shader_graph}{ShaderGraph}}\&\ graph,\ ImVec2\ pos);} \DoxyCodeLine{00034\ \ \ \ \ \ \ \ \ \textcolor{keyword}{virtual}\ \mbox{\hyperlink{struct_open_shader_designer_1_1_nodes_1_1_math_1_1_constant}{\string~Constant}}()\ =\ \textcolor{keywordflow}{default};} \DoxyCodeLine{00035\ } \DoxyCodeLine{00036\ \ \ \ \ \ \ \ \ [[nodiscard]]\ \mbox{\hyperlink{struct_open_shader_designer_1_1_node}{Node}}*\ Copy(\mbox{\hyperlink{class_open_shader_designer_1_1_shader_graph}{ShaderGraph}}\&\ graph)\ \textcolor{keyword}{const\ override};} \DoxyCodeLine{00037\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ Inspect()\ \textcolor{keyword}{override};} \DoxyCodeLine{00038\ } \DoxyCodeLine{00039\ \ \ \ \ \ \ \ \ ValueType\ \ \ \ Value;} \DoxyCodeLine{00040\ \ \ \ \ \};} \DoxyCodeLine{00041\ } \DoxyCodeLine{00042\ \ \ \ \ RegisterNode(\textcolor{stringliteral}{"{}Math/Constant"{}},\ \mbox{\hyperlink{struct_open_shader_designer_1_1_nodes_1_1_math_1_1_constant}{Constant}});} \DoxyCodeLine{00043\ } \DoxyCodeLine{00044\ \ \ \ \ \textcolor{keyword}{struct\ }\mbox{\hyperlink{struct_open_shader_designer_1_1_nodes_1_1_math_1_1_add}{Add}}\ :\ \textcolor{keyword}{public}\ \mbox{\hyperlink{struct_open_shader_designer_1_1_node}{Node}}} \DoxyCodeLine{00045\ \ \ \ \ \{} \DoxyCodeLine{00046\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{struct_open_shader_designer_1_1_nodes_1_1_math_1_1_add}{Add}}(\mbox{\hyperlink{class_open_shader_designer_1_1_shader_graph}{ShaderGraph}}\&\ graph,\ ImVec2\ pos);} \DoxyCodeLine{00047\ \ \ \ \ \ \ \ \ \textcolor{keyword}{virtual}\ \mbox{\hyperlink{struct_open_shader_designer_1_1_nodes_1_1_math_1_1_add}{\string~Add}}()\ =\ \textcolor{keywordflow}{default};} \DoxyCodeLine{00048\ } \DoxyCodeLine{00049\ \ \ \ \ \ \ \ \ [[nodiscard]]\ \mbox{\hyperlink{struct_open_shader_designer_1_1_node}{Node}}*\ Copy(\mbox{\hyperlink{class_open_shader_designer_1_1_shader_graph}{ShaderGraph}}\&\ graph)\ \textcolor{keyword}{const\ override};} \DoxyCodeLine{00050\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ Inspect()\ \textcolor{keyword}{override};} \DoxyCodeLine{00051\ \ \ \ \ \};} \DoxyCodeLine{00052\ } \DoxyCodeLine{00053\ \ \ \ \ RegisterNode(\textcolor{stringliteral}{"{}Math/Add"{}},\ \mbox{\hyperlink{struct_open_shader_designer_1_1_nodes_1_1_math_1_1_add}{Add}});} \DoxyCodeLine{00054\ \}} \DoxyCodeLine{00055\ } \DoxyCodeLine{00056\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//MATH\_H}} \end{DoxyCode}