MCPcopy Create free account
hub / github.com/cdcseacave/openMVS / LoadShaderFile

Method LoadShaderFile

apps/Viewer/Shader.cpp:149–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149std::string Shader::LoadShaderFile(const std::string& filename) {
150 std::ifstream file(filename, std::ios::in);
151 if (!file.is_open()) {
152 DEBUG("Failed to open shader file: %s in %s", filename.c_str(), Util::getCurrentFolder().c_str());
153 return "";
154 }
155 std::stringstream buffer;
156 buffer << file.rdbuf();
157 return buffer.str();
158}
159/*----------------------------------------------------------------*/

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected