I have been going through the tutorials on 
[LearnOpengl.com](http://www.learnopengl.com) and building up type safe 
wrappers as I go along such that I can use opengl as if it were more like a 
native Nim library, removing the need for casting and making it a compile time 
error should you mix up your opengl id types. Also the compatible GLenum's for 
functions are put into enums for easy discovery of what your options are. You 
can see the [library code 
here](https://github.com/jackmott/easygl/blob/master/src/easygl/easygl.nim) and 
some example usage 
[here](https://github.com/jackmott/easygl/blob/master/examples/shaders.nim)

It has been a fun way to learn Nim and OpenGL so far. I would love to have some 
feedback on whether I am going about this well, if anyone sees any obvious ways 
to do it better, project structure, anything. Also I am curious if something 
like this exists already, and if not how many people would be interested in it?

Reply via email to