MCPcopy Create free account
hub / github.com/cogentcore/core / SetFileFS

Method SetFileFS

xyz/io.go:34–34  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 3

DecodeFileFSFunction · 0.65
ReadObjMethod · 0.65
ReadSceneMethod · 0.65

Implementers 1

Decoderxyz/io/obj/obj.go

Calls

no outgoing calls

Tested by

no test coverage detected