You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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.
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.
51
57
52
58
`go get github.com/raedatoui/glutils`
53
59
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
57
61
58
62
`go get github.com/raedatoui/glfont`
59
63
60
64
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`
61
65
62
66
Text rendering sucks and is not intended to look good, but good enough and easy to use for the sake of this tutorial.
63
67
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
-
72
68
### Run
73
69
74
-
`go run tutorial.go` and you should see this screen
0 commit comments