Skip to content

Commit 8dc7d4a

Browse files
authored
Minor tweaks to the README instructions
* Moved assimp to raedatoui#1 as its needed before glutils can be installed * Changed the run instructions, to be more explicit about how to run the tutorial.
1 parent 5e445bd commit 8dc7d4a

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,33 +45,34 @@ Run the `gl41core-cube` example by executing `go run cube.go`
4545

4646
#### learnopengl.com tutorial
4747

48-
1- [**glutils**](https://github.com/raedatoui/glutils)
48+
1- [**assimp**](https://github.com/raedatoui/assimp) - Go wrapper of [Assimp](http://www.assimp.org/)
49+
50+
First, install Assimp on macOS using homebrew `brew install assimp`
51+
52+
Then install wrapper, `go get github.com/raedatoui/assimp`
53+
54+
2- [**glutils**](https://github.com/raedatoui/glutils)
4955

5056
Some of the utllities developed throughout the tutorials like shader compilation and linking, camera, loading textures, loading models from assimp, other redundant GL commands,etc were packaged together. Initially, these lived within the tutorial repo as the `utils` package and we later moved to a dedicated [repo](https://github.com/raedatoui/glutils) in the hope of being useful for other projects.
5157

5258
`go get github.com/raedatoui/glutils`
5359

54-
I had to fork 2 libraries and update them to get everything working.
55-
56-
2- [**glfont**](https://github.com/raedatoui/glfont) - A modern opengl text rendering library for golang
60+
3- [**glfont**](https://github.com/raedatoui/glfont) - A modern opengl text rendering library for golang
5761

5862
`go get github.com/raedatoui/glfont`
5963

6064
I made minor changes to this package where I use the shader functions from the `glutils` package and I explicitly set the profile version in the imports to `4.1` intead of `all-core`
6165

6266
Text rendering sucks and is not intended to look good, but good enough and easy to use for the sake of this tutorial.
6367

64-
3- [**assimp**](https://github.com/raedatoui/assimp) - Go wrapper of [Assimp](http://www.assimp.org/)
65-
66-
First, install Assimp on macOS using homebrew `brew install assimp`
67-
68-
Then install wrapper, `go get github.com/raedatoui/assimp`
69-
70-
I fixed some minor bugs and changed the cgo directives for linking assimp. Intead of using `LDFLAGS` and other windows specific flags, I used the `pkg-config` flag.
71-
7268
### Run
7369

74-
`go run tutorial.go` and you should see this screen
70+
```shell
71+
go get github.com/raedatoui/learn-opengl-golang
72+
cd $GOPATH/src/github.com/raedatoui/learn-opengl-golang
73+
go run tutorial.go
74+
```
75+
and you should see this screen
7576

7677
Use the right and left arrow keys to navigate through the tutorials.
7778

0 commit comments

Comments
 (0)