| 543 | } |
| 544 | |
| 545 | void 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 | |
| 558 | void SettingsContainer::AddSetting(Setting* setting) |
| 559 | { |
nothing calls this directly
no test coverage detected