Change the fractal
| 267 | |
| 268 | //Change the fractal |
| 269 | void SetFractal(sf::Shader& shader, int type, Synth& synth) { |
| 270 | shader.setUniform("iType", type); |
| 271 | jx = jy = 1e8; |
| 272 | fractal = all_fractals[type]; |
| 273 | normalized = (type == 0); |
| 274 | synth.audio_pause = true; |
| 275 | hide_orbit = true; |
| 276 | frame = 0; |
| 277 | } |
| 278 | |
| 279 | //Used whenever the window is created or resized |
| 280 | void resize_window(sf::RenderWindow& window, sf::RenderTexture& rt, const sf::ContextSettings& settings, int w, int h) { |