golang-ui / nuklear

This project provides Go bindings for nuklear.h — a small ANSI C GUI library.
https://github.com/vurtun/nuklear
MIT License
1.57k stars 98 forks source link

[WIP] SDL2 backend #13

Closed strangebroadcasts closed 7 years ago

strangebroadcasts commented 7 years ago

I've set up a demo implementation using go-sdl2 for windowing and events (which was straightforward, since the only GLFW dependencies were in the demo and impl...common.go)

Should this be set up with its own build tags, or is this best maintained as its own fork?

xlab commented 7 years ago

@strangebroadcasts Hey, thanks for contributing SDL2 backend! I think we can manage this with tags, let's do the same as I did for Android backend which also works without GLFW.

I will make these steps: 1) merge your commits properly using a separate branch 2) merge the branch into master that will allow to build SDL2 version by simply

go get -tags sdl2 github.com/golang-ui/nuklear
strangebroadcasts commented 7 years ago

Awesome, thanks :)