MCPcopy Create free account
hub / github.com/defold/defold / GetArgTypeName

Function GetArgTypeName

engine/tools/src/texconvert/main.cpp:90–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88
89template <typename T>
90const char* GetArgTypeName(T from_value, ArgNameToTypeValue<T>* args)
91{
92 int i=0;
93 while(args[i].m_Name)
94 {
95 if (args[i].m_TypeValue == from_value)
96 {
97 return args[i].m_Name;
98 }
99 i++;
100 }
101
102 return "<unknown>";
103}
104
105ArgNameToTypeValue<dmTexc::ColorSpace> g_cs_lut[] = {
106 {"LRGB", dmTexc::CS_LRGB},

Callers 1

PrintEncodeParamsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected