Immediate-Mode-UI / Nuklear

A single-header ANSI C immediate mode cross-platform GUI library
https://immediate-mode-ui.github.io/Nuklear/
Other
9.32k stars 567 forks source link

request: SDL opengl4 example #174

Closed aganm closed 4 years ago

aganm commented 4 years ago

I tried the SDL opengl3 example with opengl3 and it works, but I need opengl4 features and when I try to use it, it crashes on the opengl program creation.

Could someone make an opengl4 example? Thanks

dumblob commented 4 years ago

I'll leave this open so that someone can pick it up. Currently we're out of time and we're focusing on a major rework of buffer/string handling to allow better interoperation with other languages than C/C++.

aganm commented 4 years ago

@dumblob oh, it turns out my crash was due to another issue, it actually works with opengl4! Could be nice to have an opengl4 version, but yeah, the issue was on my side.

dumblob commented 4 years ago

If it works with opengl4 without modifications, could you make a PR with sdl_opengl4 directory with just one file (ideally Makefile) with printf "refer to sdl_opengl3, it's 100% compatible\n"?

aganm commented 4 years ago

@dumblob I made a pull request. #184