8000 Merge pull request #3 from bramp/patch-2 · raedatoui/learn-opengl-golang@4076c38 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4076c38

Browse files
authored
Merge pull request #3 from bramp/patch-2
Minor tweaks to the README instructions
2 parents 14b3836 + 8dc7d4a commit 4076c38

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
@@ -47,33 +47,34 @@ go run gl41core-cube/cube.go
4747

4848
#### learnopengl.com tutorial
4949

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

5258
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.
5359

5460
`go get github.com/raedatoui/glutils`
5561

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

6064
`go get github.com/raedatoui/glfont`
6165

6266
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`
6367

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

66-
3- [**assimp**](https://github.com/raedatoui/assimp) - Go wrapper of [Assimp](http://www.assimp.org/)
67-
68-
First, install Assimp on macOS using homebrew `brew install assimp`
69-
70-
Then install wrapper, `go get github.com/raedatoui/assimp`
71-
72-
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.
73-
7470
### Run
7571

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

7879
Use the right and left arrow keys to navigate through the tutorials.
7980

0 commit comments

Comments
 (0)
0