MCPcopy Index your code
hub / github.com/g3n/engine / parseMatlib

Method parseMatlib

loader/obj/obj.go:476–483  ·  view source on GitHub ↗

Parses a mtllib line: mtllib

(fields []string)

Source from the content-addressed store, hash-verified

474// Parses a mtllib line:
475// mtllib <name>
476func (dec *Decoder) parseMatlib(fields []string) error {
477
478 if len(fields) < 1 {
479 return errors.New("Material library (mtllib) with no fields")
480 }
481 dec.Matlib = fields[0]
482 return nil
483}
484
485// Parses an object line:
486// o <name>

Callers 1

parseObjLineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected