MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / SetUnits

Method SetUnits

SampleFramework12/v1.00/Settings.cpp:767–775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

765}
766
767void ColorSetting::SetUnits(ColorUnit newUnits)
768{
769 if(hdr && newUnits != units)
770 {
771 units = newUnits;
772 std::string intensityLabel = GetIntensityLabel(label.c_str(), units);
773 intensity.SetLabel(intensityLabel.c_str());
774 }
775}
776
777// == Button ======================================================================================
778

Callers

nothing calls this directly

Calls 3

GetIntensityLabelFunction · 0.85
c_strMethod · 0.80
SetLabelMethod · 0.80

Tested by

no test coverage detected