| 54 | } |
| 55 | |
| 56 | bool LightStrategyWindow::DrawObjectGUI(Properties &props, bool &modifiedProps) { |
| 57 | //-------------------------------------------------------------------------- |
| 58 | // lightstrategy.type |
| 59 | //-------------------------------------------------------------------------- |
| 60 | |
| 61 | const string currentSamplerType = props.Get(Property("lightstrategy.type")(typeTable.GetDefaultTag())).Get<string>(); |
| 62 | int typeIndex = typeTable.GetVal(currentSamplerType); |
| 63 | |
| 64 | if (ImGui::Combo("Light Strategy type", &typeIndex, typeTable.GetTagList())) { |
| 65 | props.Clear(); |
| 66 | |
| 67 | props << Property("lightstrategy.type")(typeTable.GetTag(typeIndex)); |
| 68 | |
| 69 | return true; |
| 70 | } |
| 71 | ImGui::SameLine(); |
| 72 | ImGui::TextDisabled("(?)"); |
| 73 | if (ImGui::IsItemHovered()) |
| 74 | ImGui::SetTooltip("lightstrategy.type"); |
| 75 | |
| 76 | return false; |
| 77 | } |
nothing calls this directly
no test coverage detected