MCPcopy Create free account
hub / github.com/dfranx/SHADERed / ShowVariableFunctions

Method ShowVariableFunctions

src/SHADERed/Objects/PluginManager.cpp:1297–1314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1295 return ret;
1296 }
1297 bool PluginManager::ShowVariableFunctions(PluginFunctionData* data, ShaderVariable::ValueType type)
1298 {
1299 bool ret = false;
1300 for (int i = 0; i < m_plugins.size(); i++) {
1301 int nameCount = m_plugins[i]->VariableFunctions_GetNameCount((plugin::VariableType)type);
1302
1303 for (int j = 0; j < nameCount; j++) {
1304 const char* name = m_plugins[i]->VariableFunctions_GetName((plugin::VariableType)type, j);
1305 if (ImGui::Selectable(name)) {
1306 data->Owner = m_plugins[i];
1307 strcpy(data->Name, name);
1308 ret = true;
1309 }
1310 }
1311 }
1312
1313 return ret;
1314 }
1315}

Callers 1

m_drawFunctionMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected