-
-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] support integration with go-sdl2 binding? #923
Comments
you can deffinitly integrate cimgui-go with go-sdl if you want (however idk why would you need this as ther is an sdl backend already - I'm not a big fan of it but iirc @AllenDang had some reasons to do this with CGO for glfw and I did similar thing for sdl). In case of giu - Technically its 100% possible to make giu use sdl instead of glfw, but it wan't tested yet 😄. You can be the first one who tries. (I think laud here): // before
type GIUContext struct {
backend backend.Backend[glfwbackend.GLFWWindowFlags]
// after
type GIUContext[FLAGST ~int] struct {
backend backend.Backend[FLAGST] Now it will be difficutl to define This might require some cimgui-go refactor as well |
Here's my scenario: I've been working on a go-sdl2 project for a couple of days, it goes well, then I want to add a gui toolset for it, so I found giu. the demo was pretty cute, exactly what I'm looking for. I think there should be more gl-sdl2 users thinking about the same thing. unfortunately, once I introduce giu into the project, my go-sdl2 program keeps throwing unknown errors. I mean, some of the go-sdl2 api stop working and give me an empty error. those errors are all gone if I eliminate giu code. After some debugging, I realized that the two projects were not working the way I expected. Thanks for you suggestion. giu is quite a new thing to me, I'll dig for a while see if I can make it~ |
@shellohunter as far as I see, the thing you're looking for is rather cimgui-go, not giu. Generally first of all you need to implement your use-case with cimgui-go |
yes, you would be right. |
Related problem
No response
Your request
I know that giu can work with sdl2 backend, but it goes with sdl2 cgo, right?
Is it possible to integrate giu with go-sdl2 ((https://github.com/veandco/go-sdl2) ? I mean, seamlessly.
yesterday I gave it a try and it seems they two have their owen deps, and work independently.
Alternative solution
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: