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

Method AddColorSetting

Shadows/SampleFramework11/Settings.cpp:545–556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543}
544
545void SettingsContainer::AddColorSetting(const char* name, const char* label, const char* group,
546 Float3 initialVal, bool hdr, float minIntensity,
547 float maxIntensity, float step, const char* helpText)
548{
549 Assert_(settings.find(name) == settings.end());
550 Assert_(tweakBar != nullptr);
551 ColorSetting* setting = new ColorSetting();
552 setting->Initialize(tweakBar, name, group, label, helpText, initialVal,
553 hdr, minIntensity, maxIntensity, step);
554 settings[name] = setting;
555 allocatedSettings.push_back(setting);
556}
557
558void SettingsContainer::AddSetting(Setting* setting)
559{

Callers

nothing calls this directly

Calls 1

InitializeMethod · 0.45

Tested by

no test coverage detected