Vladar4 / sdl2_nim

Wrapper of the SDL 2 library for the Nim language.
Other
145 stars 24 forks source link

fixed opengl example #19

Closed CodeDoes closed 6 years ago

Vladar4 commented 6 years ago

Opengl v1.1.0, which is installed with nimble install opengl command, don't yet has separate opengl 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.

CodeDoes commented 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.

Vladar4 commented 6 years ago

The latter option looks preferable, considering there might be some other adjustments with the new Nim release.

krux02 commented 6 years ago

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.

Vladar4 commented 6 years ago

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.