MCPcopy Create free account
hub / github.com/g3n/engine / Decode

Function Decode

loader/collada/collada.go:36–46  ·  view source on GitHub ↗

Decode decodes the specified collada file returning a decoder object and an error.

(filepath string)

Source from the content-addressed store, hash-verified

34
35// Decode decodes the specified collada file returning a decoder object and an error.
36func Decode(filepath string) (*Decoder, error) {
37
38 // Opens file
39 f, err := os.Open(filepath)
40 if err != nil {
41 return nil, err
42 }
43 defer f.Close()
44
45 return DecodeReader(f)
46}
47
48// DecodeReader decodes the specified collada reader returning a decoder object and an error.
49func DecodeReader(f io.Reader) (*Decoder, error) {

Callers

nothing calls this directly

Calls 2

DecodeReaderFunction · 0.70
CloseMethod · 0.65

Tested by

no test coverage detected