| 711 | } |
| 712 | |
| 713 | void 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 | |
| 727 | void SettingsContainer::AddSetting(Setting* setting) |
| 728 | { |
nothing calls this directly
no test coverage detected