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

Method Shader

src/SFML/Graphics/Shader.cpp:228–232  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

226
227////////////////////////////////////////////////////////////
228Shader::Shader(const std::filesystem::path& filename, Type type)
229{
230 if (!loadFromFile(filename, type))
231 throw Exception("Failed to load shader from file");
232}
233
234
235////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected