MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / AddColorSetting

Method AddColorSetting

SampleFramework11/v1.02/Settings.cpp:713–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

711}
712
713void SettingsContainer::AddColorSetting(const char* name, const char* label, const char* group,
714 Float3 initialVal, bool hdr, float minIntensity,
715 float maxIntensity, float step, ColorUnit units,
716 const char* helpText)
717{
718 Assert_(settings.find(name) == settings.end());
719 Assert_(tweakBar != nullptr);
720 ColorSetting* setting = new ColorSetting();
721 setting->Initialize(tweakBar, name, group, label, helpText, initialVal,
722 hdr, minIntensity, maxIntensity, step, units);
723 settings[name] = setting;
724 allocatedSettings.push_back(setting);
725}
726
727void SettingsContainer::AddSetting(Setting* setting)
728{

Callers

nothing calls this directly

Calls 3

endMethod · 0.80
InitializeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected