SetFile sets the file name being used for decoding, or error if not found. Returns a list of files that should be loaded along with the main one, if needed. For example, .obj decoder adds a corresponding .mtl file. In addition, decoded files may specify further files (textures, etc) that must be lo
(fsys fs.FS, fname string)
| 32 | // All file operations use the fsys file system for access, and this should be a |
| 33 | // Sub FS anchored at the directory where the filename is located. |
| 34 | SetFileFS(fsys fs.FS, fname string) ([]string, error) |
| 35 | |
| 36 | // Decode reads the given data and decodes it, returning a new instance |
| 37 | // of the Decoder that contains all the decoded info. |