\doxysection{Constants.\+h} \hypertarget{_constants_8h_source}{}\label{_constants_8h_source}\index{Include/Graph/Nodes/Math/Constants.h@{Include/Graph/Nodes/Math/Constants.h}} \begin{DoxyCode}{0} \DoxyCodeLine{00001\ \textcolor{comment}{//\ =====================================================================================================================}} \DoxyCodeLine{00002\ \textcolor{comment}{//\ \ OpenShaderDesigner,\ an\ open\ source\ software\ utility\ to\ create\ materials\ and\ shaders.}} \DoxyCodeLine{00003\ \textcolor{comment}{//\ \ Copyright\ (C)\ 2024\ \ Medusa\ Slockbower}} \DoxyCodeLine{00004\ \textcolor{comment}{//}} \DoxyCodeLine{00005\ \textcolor{comment}{//\ \ This\ program\ is\ free\ software:\ you\ can\ redistribute\ it\ and/or\ modify}} \DoxyCodeLine{00006\ \textcolor{comment}{//\ \ it\ under\ the\ terms\ of\ the\ GNU\ General\ Public\ License\ as\ published\ by}} \DoxyCodeLine{00007\ \textcolor{comment}{//\ \ the\ Free\ Software\ Foundation,\ either\ version\ 3\ of\ the\ License,\ or}} \DoxyCodeLine{00008\ \textcolor{comment}{//\ \ (at\ your\ option)\ any\ later\ version.}} \DoxyCodeLine{00009\ \textcolor{comment}{//}} \DoxyCodeLine{00010\ \textcolor{comment}{//\ \ This\ program\ is\ distributed\ in\ the\ hope\ that\ it\ will\ be\ useful,}} \DoxyCodeLine{00011\ \textcolor{comment}{//\ \ but\ WITHOUT\ ANY\ WARRANTY;\ without\ even\ the\ implied\ warranty\ of}} \DoxyCodeLine{00012\ \textcolor{comment}{//\ \ MERCHANTABILITY\ or\ FITNESS\ FOR\ A\ PARTICULAR\ PURPOSE.\ \ See\ the}} \DoxyCodeLine{00013\ \textcolor{comment}{//\ \ GNU\ General\ Public\ License\ for\ more\ details.}} \DoxyCodeLine{00014\ \textcolor{comment}{//}} \DoxyCodeLine{00015\ \textcolor{comment}{//\ \ You\ should\ have\ received\ a\ copy\ of\ the\ GNU\ General\ Public\ License}} \DoxyCodeLine{00016\ \textcolor{comment}{//\ \ along\ with\ this\ program.\ \ If\ not,\ see\ .}} \DoxyCodeLine{00017\ \textcolor{comment}{//\ =====================================================================================================================}} \DoxyCodeLine{00018\ } \DoxyCodeLine{00019\ \textcolor{preprocessor}{\#ifndef\ CONSTANTS\_H}} \DoxyCodeLine{00020\ \textcolor{preprocessor}{\#define\ CONSTANTS\_H}} \DoxyCodeLine{00021\ } \DoxyCodeLine{00022\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00023\ } \DoxyCodeLine{00024\ \textcolor{keyword}{namespace\ }OpenShaderDesigner::Nodes::Math} \DoxyCodeLine{00025\ \{} \DoxyCodeLine{00026\ \ \ \ \ } \DoxyCodeLine{00027\ \textcolor{comment}{//\ =====================================================================================================================}} \DoxyCodeLine{00028\ \textcolor{comment}{//\ Constants}} \DoxyCodeLine{00029\ \textcolor{comment}{//\ =====================================================================================================================}} \DoxyCodeLine{00030\ } \DoxyCodeLine{00031\ } \DoxyCodeLine{00032\ \textcolor{comment}{//\ Integer\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}} \DoxyCodeLine{00033\ } \DoxyCodeLine{00034\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{struct_open_shader_designer_1_1_nodes_1_1_math_1_1_integer}{Integer}}\ :\ \textcolor{keyword}{public}\ \mbox{\hyperlink{struct_open_shader_designer_1_1_node}{Node}}} \DoxyCodeLine{00035\ \{} \DoxyCodeLine{00036\ \ \ \ \ \mbox{\hyperlink{struct_open_shader_designer_1_1_nodes_1_1_math_1_1_integer}{Integer}}(\mbox{\hyperlink{class_open_shader_designer_1_1_shader_graph}{ShaderGraph}}\&\ graph,\ ImVec2\ pos);} \DoxyCodeLine{00037\ \ \ \ \ \mbox{\hyperlink{struct_open_shader_designer_1_1_nodes_1_1_math_1_1_integer}{\string~Integer}}()\ \textcolor{keyword}{override}\ =\ \textcolor{keywordflow}{default};} \DoxyCodeLine{00038\ } \DoxyCodeLine{00039\ \ \ \ \ [[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{00040\ \ \ \ \ \textcolor{keywordtype}{void}\ Inspect()\ \textcolor{keyword}{override};} \DoxyCodeLine{00041\ } \DoxyCodeLine{00042\ \ \ \ \ std::string\ GetCode()\ \textcolor{keyword}{const\ override};} \DoxyCodeLine{00043\ \};} \DoxyCodeLine{00044\ } \DoxyCodeLine{00045\ } \DoxyCodeLine{00046\ \textcolor{comment}{//\ Unsigned\ Integer\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}} \DoxyCodeLine{00047\ } \DoxyCodeLine{00048\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{struct_open_shader_designer_1_1_nodes_1_1_math_1_1_unsigned_integer}{UnsignedInteger}}\ :\ \textcolor{keyword}{public}\ \mbox{\hyperlink{struct_open_shader_designer_1_1_node}{Node}}} \DoxyCodeLine{00049\ \{} \DoxyCodeLine{00050\ \ \ \ \ \textcolor{keyword}{using\ }ValueType\ =\ ocu::any;} \DoxyCodeLine{00051\ } \DoxyCodeLine{00052\ \ \ \ \ \mbox{\hyperlink{struct_open_shader_designer_1_1_nodes_1_1_math_1_1_unsigned_integer}{UnsignedInteger}}(\mbox{\hyperlink{class_open_shader_designer_1_1_shader_graph}{ShaderGraph}}\&\ graph,\ ImVec2\ pos);} \DoxyCodeLine{00053\ \ \ \ \ \mbox{\hyperlink{struct_open_shader_designer_1_1_nodes_1_1_math_1_1_unsigned_integer}{\string~UnsignedInteger}}()\ \textcolor{keyword}{override}\ =\ \textcolor{keywordflow}{default};} \DoxyCodeLine{00054\ } \DoxyCodeLine{00055\ \ \ \ \ [[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{00056\ \ \ \ \ \textcolor{keywordtype}{void}\ Inspect()\ \textcolor{keyword}{override};} \DoxyCodeLine{00057\ } \DoxyCodeLine{00058\ \ \ \ \ std::string\ GetCode()\ \textcolor{keyword}{const\ override};} \DoxyCodeLine{00059\ \};} \DoxyCodeLine{00060\ } \DoxyCodeLine{00061\ } \DoxyCodeLine{00062\ \textcolor{comment}{//\ Scalar\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}} \DoxyCodeLine{00063\ } \DoxyCodeLine{00064\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{struct_open_shader_designer_1_1_nodes_1_1_math_1_1_scalar}{Scalar}}\ :\ \textcolor{keyword}{public}\ \mbox{\hyperlink{struct_open_shader_designer_1_1_node}{Node}}} \DoxyCodeLine{00065\ \{} \DoxyCodeLine{00066\ \ \ \ \ \textcolor{keyword}{using\ }ValueType\ =\ ocu::any;} \DoxyCodeLine{00067\ } \DoxyCodeLine{00068\ \ \ \ \ \mbox{\hyperlink{struct_open_shader_designer_1_1_nodes_1_1_math_1_1_scalar}{Scalar}}(\mbox{\hyperlink{class_open_shader_designer_1_1_shader_graph}{ShaderGraph}}\&\ graph,\ ImVec2\ pos);} \DoxyCodeLine{00069\ \ \ \ \ \mbox{\hyperlink{struct_open_shader_designer_1_1_nodes_1_1_math_1_1_scalar}{\string~Scalar}}()\ \textcolor{keyword}{override}\ =\ \textcolor{keywordflow}{default};} \DoxyCodeLine{00070\ } \DoxyCodeLine{00071\ \ \ \ \ [[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{00072\ \ \ \ \ \textcolor{keywordtype}{void}\ Inspect()\ \textcolor{keyword}{override};} \DoxyCodeLine{00073\ } \DoxyCodeLine{00074\ \ \ \ \ std::string\ GetCode()\ \textcolor{keyword}{const\ override};} \DoxyCodeLine{00075\ \};} \DoxyCodeLine{00076\ } \DoxyCodeLine{00077\ } \DoxyCodeLine{00078\ \textcolor{comment}{//\ Vector\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}} \DoxyCodeLine{00079\ } \DoxyCodeLine{00080\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{struct_open_shader_designer_1_1_nodes_1_1_math_1_1_vector}{Vector}}\ :\ \textcolor{keyword}{public}\ \mbox{\hyperlink{struct_open_shader_designer_1_1_node}{Node}}} \DoxyCodeLine{00081\ \{} \DoxyCodeLine{00082\ \ \ \ \ \textcolor{keyword}{using\ }ValueType\ =\ ocu::any;} \DoxyCodeLine{00083\ } \DoxyCodeLine{00084\ \ \ \ \ \mbox{\hyperlink{struct_open_shader_designer_1_1_nodes_1_1_math_1_1_vector}{Vector}}(\mbox{\hyperlink{class_open_shader_designer_1_1_shader_graph}{ShaderGraph}}\&\ graph,\ ImVec2\ pos);} \DoxyCodeLine{00085\ \ \ \ \ \mbox{\hyperlink{struct_open_shader_designer_1_1_nodes_1_1_math_1_1_vector}{\string~Vector}}()\ \textcolor{keyword}{override}\ =\ \textcolor{keywordflow}{default};} \DoxyCodeLine{00086\ } \DoxyCodeLine{00087\ \ \ \ \ [[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{00088\ \ \ \ \ \textcolor{keywordtype}{void}\ Inspect()\ \textcolor{keyword}{override};} \DoxyCodeLine{00089\ } \DoxyCodeLine{00090\ \ \ \ \ std::string\ GetCode()\ \textcolor{keyword}{const\ override};} \DoxyCodeLine{00091\ \};} \DoxyCodeLine{00092\ } \DoxyCodeLine{00093\ \}} \DoxyCodeLine{00094\ } \DoxyCodeLine{00095\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//CONSTANTS\_H}} \end{DoxyCode}