File tree Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ require (
15
15
github.com/go-gl/mathgl v0.0.0-20190713194549-592312d8590a
16
16
github.com/golang-source-engine/filesystem v0.1.2
17
17
github.com/golang-source-engine/stringtable v0.1.0
18
- github.com/golang-source-engine/vmt v0.1.0
18
+ github.com/golang-source-engine/vmt v0.1.1
19
19
)
Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ github.com/golang-source-engine/vmt v0.0.0-20190917225430-668305ff2fd8 h1:jBRzeb
43
43
github.com/golang-source-engine/vmt v0.0.0-20190917225430-668305ff2fd8 /go.mod h1:NVdf67X6t/Uu2WsOIyVNMJPGR9DIhBJMqrU2rpJlqQM =
44
44
github.com/golang-source-engine/vmt v0.1.0 h1:B9RVSozvfgnfK0FWao/XPgf83FVIByeMeQNm5onInU8 =
45
45
github.com/golang-source-engine/vmt v0.1.0 /go.mod h1:bXMpaO+WnKcuJ+CyR8sgrKnxQ+2+13OribIL+pgZmeg =
46
+ github.com/golang-source-engine/vmt v0.1.1 h1:yBl2XzwBhmwmpEWxEK5t7HpfL63ZTOwGcEMsA/xUrTc =
47
+ github.com/golang-source-engine/vmt v0.1.1 /go.mod h1:devs1P7sA/Spthvxw8+wzuEsN3Ibadbia6n3SQQfdW8 =
46
48
github.com/logrusorgru/aurora v0.0.0-20190428105938-cea283e61946 h1:z+WaKrgu3kCpcdnbK9YG+JThpOCd1nU5jO5ToVmSlR4 =
47
49
github.com/logrusorgru/aurora v0.0.0-20190428105938-cea283e61946 /go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4 =
48
50
golang.org/x/image v0.0.0-20190209060608-ef4a1470e0dc /go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs =
Original file line number Diff line number Diff line change
1
+ package material
2
+
3
+ import "io"
4
+
5
+ type VirtualFilesystem interface {
6
+ GetFile (string ) (io.Reader , error )
7
+ }
Original file line number Diff line number Diff line change 1
1
package material
2
2
3
3
import (
4
- "github.com/golang-source-engine/filesystem"
5
4
"github.com/golang-source-engine/vmt"
6
5
)
7
6
8
- func LoadVmtFromFilesystem (fs * filesystem. FileSystem , filePath string ) (* vmt.Properties , error ) {
7
+ func LoadVmtFromFilesystem (fs VirtualFilesystem , filePath string ) (* vmt.Properties , error ) {
9
8
mat ,err := vmt .FromFilesystem (filePath , fs , vmt .NewProperties ())
10
9
if err != nil {
11
10
return nil , err
You can’t perform that action at this time.
0 commit comments