OpenShaderDesigner 0.0.1
Loading...
Searching...
No Matches
OpenShaderDesigner::Pin Struct Reference

Public Types

using Ambiguous = ocu::any<glm::int32, glm::uint32, glm::float32, glm::vec3>
 

Public Member Functions

 Pin (const std::string &name, PinType type, FlagT flags=PinFlags_None)
 
std::string GetVarName () const
 

Public Attributes

std::string Name
 
PinType Type
 
FlagT Flags
 
Ambiguous Value
 
ImPinPtr Ptr
 

Static Public Attributes

static const ImColor Colors [PinType_COUNT]
 
static constexpr const char * TypeNames [PinType_COUNT]
 
static const std::string TypeKeywords [PinType_COUNT]
 
static const int TypeWidths [PinType_COUNT]
 

Member Data Documentation

◆ Colors

const ImColor OpenShaderDesigner::Pin::Colors[PinType_COUNT]
inlinestatic
Initial value:
= {
ImColor(0x7A, 0x9F, 0x82)
, ImColor(0x64, 0x94, 0xAA)
, ImColor(0xA6, 0x3D, 0x40)
, ImColor(0xE9, 0xB8, 0x72)
, ImColor(0xFF, 0xFF, 0xFF)
}

◆ TypeKeywords

const std::string OpenShaderDesigner::Pin::TypeKeywords[PinType_COUNT]
inlinestatic
Initial value:
= {
"uint"
, "int"
, "float"
, "vec3"
, "vec3"
}

◆ TypeNames

const char* OpenShaderDesigner::Pin::TypeNames[PinType_COUNT]
inlinestaticconstexpr
Initial value:
= {
"Unsigned Int"
, "Int"
, "Float"
, "Vector"
, "Any"
}

◆ TypeWidths

const int OpenShaderDesigner::Pin::TypeWidths[PinType_COUNT]
inlinestatic
Initial value:
= {
1
, 1
, 1
, 3
, -1
}

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