MCPcopy Create free account
hub / github.com/aardappel/treesheets / LoadMaterialFile

Function LoadMaterialFile

lobster/src/glshader.cpp:266–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266string 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
273string Shader::Compile(const char *name, const char *vscode, const char *pscode) {
274 program = glCreateProgram();

Callers 1

AddGraphicsFunction · 0.85

Calls 2

ParseMaterialFileFunction · 0.85
LoadFileFunction · 0.70

Tested by

no test coverage detected