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

Function GetIntensityLabel

SampleFramework12/v1.00/Settings.cpp:632–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630// == ColorSetting ================================================================================
631
632static std::string GetIntensityLabel(const char* colorLabelName, ColorUnit units)
633{
634 std::string intensityLabel = colorLabelName;
635 intensityLabel += " Intensity";
636 if(units == ColorUnit::Luminance)
637 intensityLabel += " (cd/m^2)";
638 else if(units == ColorUnit::Illuminance)
639 intensityLabel += " (lux)";
640 else if(units == ColorUnit::LuminousPower)
641 intensityLabel += " (lm)";
642 else if(units == ColorUnit::EV100)
643 intensityLabel += " (EV100)";
644
645 return intensityLabel;
646}
647
648ColorSetting::ColorSetting()
649{

Callers 2

InitializeMethod · 0.85
SetUnitsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected