floooh / sokol-nim

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

Add emscripten option #11

Open geotre opened 3 years ago

geotre commented 3 years ago

This PR adds Emscripten support for Nim builds. It is not complete yet, I just wanted to start the discussion to see if you are open to it.

I have added the needed flags to the library itself, and added support to the cube demo. You can see the output here. Note that it does not fill the screen until you resize the window, I'm not sure why yet.

If you are happy with this I will add support to the other examples and some info to the README, then this should be ready to merge. Let me know your thoughts.

geotre commented 2 years ago

Ping @floooh 😊 Just in case you missed this

floooh commented 2 years ago

Ah sorry, I didn't miss it, but but I can't quite decide currently whether to work on PRs, or on a blog post, or on sokol fixes, and then end up doing nothing at all ;) I guess I'll try to focus on PRs for now.

geotre commented 2 years ago

No problem! I wasn’t trying to rush you, just thought it might have slipped past.

Let me know if you are open to adding this feature and I will get the other examples working with it too

On 28 Jul 2021, at 09:46, Andre Weissflog @.***> wrote:

 Ah sorry, I didn't miss it, but but I can't quite decide currently whether to work on PRs, or on a blog post, or on sokol fixes, and then end up doing nothing at all ;) I guess I'll try to focus on PRs for now.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.