Closed CodeDoes closed 6 years ago
Yes. opengl stable doesn't work with develop. I can make it conditional to the nimversion if that would be better. Or we can leave this commit until the next nim version which should be at the end of the month.
The latter option looks preferable, considering there might be some other adjustments with the new Nim release.
I recommend to the opengl header generator called glad. The generated header isn't perfect though, I think in some cases it is possible the generated header needs to be manually fixed. But overall you can just generate exactly the opengl binding that you need and profit. This removes the dependency on the "official" opengl binding.
glad
Well, for a serious project it might be beneficial. But for a basic binding example I wouldn't want to confuse anyone with something more than a necessary minimum.
Opengl v1.1.0, which is installed with
nimble install opengl
command, don't yet has separateopengl
directory.Do you have some special reason to use
opengl@#head
in this example? Otherwise I'd rather stay with the stable version for now.