Hi! I want to make a program that allows you to render and explore fractals, which I'd do using bindings for AMD HIP/ROCM. However, I want to display these fractals within a UI in which you can alter the equation being displayed and make certain changes to the display, your typical toolbar / sidebar style approach (maybe in the gtk style?). What would be the best toolkit to use? I'm very new to all of this but ideally I want to be able to render the fractals on the HIP end and forward that info to the graphics lib.
#Which Zig GUI library should I use?
1 messages · Page 1 of 1 (latest)
There are plenty of graphics libs/options around. What's harder to find is GUI.
yeah, i suppose that's more my question
what gui lib should i use
Which Zig GUI library should I use?
have you considered DVUI (#dvui)? it supports multiple backends, and you are free to render your own stuff with those backends
afaik, you just need to tell dvui where you will be rendering within a GUI element, and then you can do it
I checked it out, and it looks nice
I am saving this one
hm, my only thing is that i'd like to make the fractal drawing gpu accelerated, i'd not sure how familiar you are with dvui, but would it be feasible to generate the fractals using hip/cuda and then forward them to the gui?
i suppose there is glfw
hm, could i somehow use glfw to pull the image from the gpu
Yes, AFAIK DVUI provides low-level access for integrating graphics.
there are examples for drawing textures in content regions
in what way?
is this a backend relative thing or does dvui just offer this
Hmm, I think it would depend on which backend you’re using. So like if you use the SDL-GPU backend you can use the SDL gpu api to do cross platform graphics programming
and this would work with a hip kernel?