| 208 | } |
| 209 | |
| 210 | void WaveSimulation2D::setf(fl::size x, fl::size y, float value) { |
| 211 | if (!has(x, y)) |
| 212 | return; |
| 213 | |
| 214 | value = fl::clamp(value, 0.0f, 1.0f); |
| 215 | i16 v16 = wave_detail::float_to_fixed(value); |
| 216 | seti16(x, y, v16); |
| 217 | } |
| 218 | |
| 219 | void WaveSimulation2D::update() { |
| 220 | if (mUseChangeGrid) { |
nothing calls this directly
no test coverage detected