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

Function LoadMaterialFile

dev/src/glshader.cpp:367–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367string LoadMaterialFile(string_view mfile, string_view prefix, lobster::VM &vm) {
368 string mbuf;
369 if (LoadFile(mfile, &mbuf) < 0) return string_view("cannot load material file: ") + mfile;
370 auto err = ParseMaterialFile(mbuf, prefix, vm);
371 return err;
372}
373
374string Shader::Compile(string_view name, const char *vscode, const char *pscode) {
375 program = glCreateProgram();

Callers 1

AddGraphicsFunction · 0.85

Calls 2

ParseMaterialFileFunction · 0.85
LoadFileFunction · 0.70

Tested by

no test coverage detected