Immediate-Mode-UI / Nuklear

A single-header ANSI C immediate mode cross-platform GUI library
https://immediate-mode-ui.github.io/Nuklear/doc/index.html
8.86k stars 535 forks source link

[Suggestion] Sokol renderer/event handler #257

Open wmerrifield opened 3 years ago

wmerrifield commented 3 years ago

Hi, I've been working on this for a couple of days, and I'm putting it here for visibility right now. It's a renderer/event handler for Nuklear powered by the Sokol multiplatform single file libs (sokol-gfx and sokol-app, specifically). It's heavily based on the existing sokol_imgui.h header, and I've only tested it on Mac and iOS (The only platforms I have).

I've just published them as gists for now:

riri commented 3 years ago

You should fork and add your implementation into the demo (I am actually doing it for another window/render set)

RobLoach commented 3 years ago

Happy to see this pushed up to the Sokol repository itself! https://github.com/floooh/sokol/blob/master/util/sokol_nuklear.h

dumblob commented 2 years ago

Just noticed this. I think we should link to the Sokol backend file from readme or better as subrepository under demo/ directly from git.

quadroli commented 11 months ago

Hello, @dumblob & @wmerrifield shall this still be added under demo/? I think that'd be handy

RobLoach commented 11 months ago

Doesn't hurt to have a demo of it here. We will want to make sure it's clear that it's maintained in the sokol repo though.

wmerrifield commented 11 months ago

It’s still part of Sokol and being updated alongside the latest versions of that. So good to include (or at least link to the Sokol demo?)

dumblob commented 11 months ago

Would a git subrepo be OK (linking directly to the .h file if possible)?

What do you all think?

RobLoach commented 11 months ago

Submodule++... Makes updating the headers easy.