| 147 | } |
| 148 | |
| 149 | std::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 | /*----------------------------------------------------------------*/ |
nothing calls this directly
no outgoing calls
no test coverage detected