I have a simple Go program, my first program in OpenGL. It uses OpenGL version 2.1:
https://github.com/pebbe/gl/blob/master/gl2.1/demo.go
I rewrote it for OpenGL version 3.0 and above. It’s much less simple now:
https://github.com/pebbe/gl/blob/master/gl3/demo.go
Would someone please take a look if there are still things in there that are not allowed in new versions of OpenGL?
Is glLineWidth() still allowed?
By the way, how do you exactly set the line width? glLineWidth(5) seems to have the same effect as glLineWidth(50).