Skip to content

Commit ca3b74f

Browse files
author
Bernardo de Oliveira Bruning
committed
include support load obj by arg
1 parent d5c779d commit ca3b74f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmd/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ func run() {
2424
}
2525

2626
img := image.NewRGBA(image.Rect(0, 0, int(win.Bounds().W()), int(win.Bounds().H())))
27-
file, err := os.Open("loader/obj/cube.obj")
27+
path := os.Args[1]
28+
file, err := os.Open(path)
2829
if err != nil {
2930
panic(err)
3031
}

0 commit comments

Comments
 (0)