Nuklear icon indicating copy to clipboard operation
Nuklear copied to clipboard

Backend: SDL2+Vulkan

Open cesss opened this issue 3 years ago • 9 comments

I was wondering if anybody wrote such a backend.

cesss avatar Aug 10 '20 17:08 cesss

This is a pretty good starting point. It doesn't seem to handle textures beyond the font texture, but it should get you up and running: https://github.com/m0ppers/nuklear-glfw-vulkan

Badgerthwart avatar Sep 29 '20 11:09 Badgerthwart

@Badgerthwart thanks for the pointer!

@m0ppers willing to make a PR? We'll happily merge your backend and give you commit permissions to this repository if you'd like to participate on development in general (especially review PRs dealing with nuklear.h itself).

dumblob avatar Sep 30 '20 09:09 dumblob

@dumblob thanks for reaching out. unfortunately I have too many side projects already :(

m0ppers avatar Oct 05 '20 15:10 m0ppers

Understood. Yeah, reviewing is time consuming. Still, if you'd find few minutes for the PR (as you understand the code the best), that'd be great :wink:.

dumblob avatar Oct 05 '20 16:10 dumblob

Hey, since I've used this, nuklear-glfw-vulkan, and had to make some modifications to make it usable in a ('real') application, I could upstream my work. I do have very little experience with nuklear. How would you like it the most as a demo like with opengl or part of the main src? Because it is far more code than the little opengl wrappers(nuklear_sdl_glX.h).

aheirman avatar Aug 15 '21 16:08 aheirman

We'd prefer it to be a "demo" (i.e. a new backend). Feel free to structure the backend in a way it's readable. Preferably though as a single file (.h) or two files (.c .h) to ease adoption by end users. And don't worry, reviews for backends are not as strict as for nuklear.h itself :wink:.

dumblob avatar Aug 17 '21 09:08 dumblob

I'm very interested on this, @aheirman !!

cesss avatar Aug 29 '21 00:08 cesss

Hey, since I've used this, nuklear-glfw-vulkan, and had to make some modifications to make it usable in a ('real') application, I could upstream my work. I do have very little experience with nuklear. How would you like it the most as a demo like with opengl or part of the main src? Because it is far more code than the little opengl wrappers(nuklear_sdl_glX.h).

yes please, pass it on!

WatIsDeze avatar Oct 30 '21 01:10 WatIsDeze

Now Glfw+vulkan backend is integrated in demos with #583, doing an SDL2+vulkan should be easier :)

riri avatar Nov 13 '23 17:11 riri