MCPcopy Create free account
hub / github.com/HackerPoet/FractalSoundExplorer / SetFractal

Function SetFractal

Main.cpp:269–277  ·  view source on GitHub ↗

Change the fractal

Source from the content-addressed store, hash-verified

267
268//Change the fractal
269void 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
280void resize_window(sf::RenderWindow& window, sf::RenderTexture& rt, const sf::ContextSettings& settings, int w, int h) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected