| 98 | }; |
| 99 | |
| 100 | std::string loadShaderSource(const std::string& filename) |
| 101 | { |
| 102 | const unsigned char* data; |
| 103 | size_t length = 0; |
| 104 | |
| 105 | if(!loadResource(filename, &data, &length)) |
| 106 | { |
| 107 | LOG_ERROR << "failed to load shader source!"; |
| 108 | return ""; |
| 109 | } |
| 110 | |
| 111 | return std::string(reinterpret_cast<const char*>(data), length); |
| 112 | } |
| 113 | |
| 114 | struct ShaderProgram : public WithOpenGLBindings |
| 115 | { |
no test coverage detected