Nuklear icon indicating copy to clipboard operation
Nuklear copied to clipboard

[Suggestion] Sokol renderer/event handler

Open wmerrifield opened this issue 4 years ago • 8 comments

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:

wmerrifield avatar Jan 31 '21 19:01 wmerrifield

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

riri avatar May 04 '21 13:05 riri

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

RobLoach avatar Jun 11 '21 01:06 RobLoach

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

dumblob avatar Dec 14 '21 08:12 dumblob

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

quadroli avatar Jul 24 '23 06:07 quadroli

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.

RobLoach avatar Jul 24 '23 06:07 RobLoach

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?)

wmerrifield avatar Jul 24 '23 12:07 wmerrifield

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

What do you all think?

dumblob avatar Jul 24 '23 15:07 dumblob

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

RobLoach avatar Jul 24 '23 16:07 RobLoach