| 264 | } |
| 265 | |
| 266 | string LoadMaterialFile(string_view mfile) { |
| 267 | string mbuf; |
| 268 | if (LoadFile(mfile, &mbuf) < 0) return string_view("cannot load material file: ") + mfile; |
| 269 | auto err = ParseMaterialFile(mbuf); |
| 270 | return err; |
| 271 | } |
| 272 | |
| 273 | string Shader::Compile(const char *name, const char *vscode, const char *pscode) { |
| 274 | program = glCreateProgram(); |
no test coverage detected