MCPcopy Create free account
hub / github.com/SFML/SFML / update

Method update

examples/shader/Shader.cpp:45–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 }
44
45 void update(float /* time */, float x, float y) override
46 {
47 m_shader.setUniform("pixel_threshold", (x + y) / 30);
48 }
49
50 void draw(sf::RenderTarget& target, sf::RenderStates states) const override
51 {

Callers

nothing calls this directly

Calls 1

setUniformMethod · 0.80

Tested by

no test coverage detected