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

Function tryLoadWaveBlur

examples/shader/Shader.cpp:292–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292std::optional<WaveBlur> tryLoadWaveBlur(const sf::Font& font)
293{
294 sf::Shader shader;
295 if (!shader.loadFromFile("resources/wave.vert", "resources/blur.frag"))
296 return std::nullopt;
297
298 return std::make_optional<WaveBlur>(font, std::move(shader));
299}
300
301std::optional<StormBlink> tryLoadStormBlink()
302{

Callers 1

mainFunction · 0.85

Calls 1

loadFromFileMethod · 0.45

Tested by

no test coverage detected