OpenShaderDesigner 0.0.1
Loading...
Searching...
No Matches
OpenShaderDesigner::Nodes::Math::Scalar Struct Reference
Inheritance diagram for OpenShaderDesigner::Nodes::Math::Scalar:
OpenShaderDesigner::Node

Public Types

using ValueType = ocu::any<int, unsigned int, float, glm::vec4>
 

Public Member Functions

 Scalar (ShaderGraph &graph, ImVec2 pos)
 
NodeCopy (ShaderGraph &graph) const override
 
void Inspect () override
 
std::string GetCode () const override
 
- Public Member Functions inherited from OpenShaderDesigner::Node
 Node (ShaderGraph &graph, ImVec2 pos)
 
void DrawPin (int id, Pin &pin, ImPinDirection direction)
 
void Draw (ImGuiID id)
 
virtual bool CheckConnection (Pin *, Pin *)
 
virtual void ValidateConnections ()
 

Additional Inherited Members

- Public Attributes inherited from OpenShaderDesigner::Node
ShaderGraphGraph
 
ImVec2 Position = { 0, 0 }
 
struct { 
 
   std::string   Title 
 
   ImColor   Color 
 
   ImColor   HoveredColor 
 
   ImColor   ActiveColor 
 
   bool   Enabled 
 
Header 
 
struct { 
 
   std::vector< Pin >   Inputs 
 
   std::vector< Pin >   Outputs 
 
IO 
 
struct { 
 
   std::string   Alias 
 
   FlagT   Flags 
 
Info 
 

Member Function Documentation

◆ Copy()

Node * Scalar::Copy ( ShaderGraph & graph) const
nodiscardoverridevirtual

◆ GetCode()

std::string Scalar::GetCode ( ) const
overridevirtual

◆ Inspect()

void Scalar::Inspect ( )
overridevirtual

The documentation for this struct was generated from the following files: