MCPcopy Create free account
hub / github.com/crownengine/crown / light_name_to_enum

Function light_name_to_enum

src/resource/unit_compiler.cpp:96–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96static LightType::Enum light_name_to_enum(const char *name)
97{
98 for (u32 i = 0; i < countof(s_light); ++i) {
99 if (strcmp(name, s_light[i].name) == 0)
100 return s_light[i].type;
101 }
102
103 return LightType::COUNT;
104}
105
106static LodFadeMode::Enum lod_fade_mode_name_to_enum(const char *name)
107{

Callers 1

compile_lightFunction · 0.85

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected