floooh / sokol-nim

nim bindings for https://github.com/floooh/sokol
MIT License
76 stars 14 forks source link

Windows support #2

Closed RSDuck closed 5 years ago

RSDuck commented 5 years ago

The compilation on Windows failed because the standard Windows OpenGL header only supports ancient GL versions. To fix this I generated OpenGL 3.3 core source and header files using glad(https://github.com/Dav1dde/glad) and integrated them into the project.

gladLoadGL needs to be called after context acquisition, I'm going to make a second pull request for the examples.

floooh commented 5 years ago

Thanks!