| 97 | |
| 98 | struct StyleParamQuantity : ParamQuantity { |
| 99 | std::string getDisplayValueString() override { |
| 100 | static const char *styleNames[] = { |
| 101 | "Standard", "Rosc", "Gamma", "Expo", "Weibull", "Low-High", "FBM", "Perlin", |
| 102 | }; |
| 103 | int index = static_cast<int>(std::round(getValue())); |
| 104 | index = clamp(index, 0, R8::NUM_AVAILABLE_STYLES - 1); |
| 105 | return styleNames[index]; |
| 106 | } |
| 107 | }; |
| 108 | |
| 109 | Random8() { |
nothing calls this directly
no outgoing calls
no test coverage detected