ebiten backend possible?
Hey,
I'd love to add ebiten support to giu.
(My motivation here is, that I have a bug where my application stops the force feedback of a racing game when opening a master window for <1% of my users. I build a very small poc that if I use cimgui-go with the ebiten backend from @gucio321 the bug is not there. My hope is now, that I could use that backend within giu.)
Don't get me wrong, I want to implement that myself and am happy to push it to a PR here as well, I just want to make sure that it would be possible at all. Mainly because I do not understand everything happening in Backend.go of giu -yet.
Input would be very much apprechiated.
Best, Kalle
I'd love to add ebiten support to giu.
Sounds really cool! Go ahead!
Mainly because I do not understand everything happening in Backend.go of giu -yet.
Me too... Well, seriously - its all about flags stuff. This is a design of backend.Backend from cimgui-go. Because each backend has different understanding of flags (e.g. GLFWWindowFlagsResizable and SDLWindowFlagsResizable refer to different numbers) and giu has its own MasterWindowFlags that should be linked to respective backend flags. Also note that some ebitenbackend features (mainly I mean extra flags stuff) are not yet implemented.
That is the answer I was looking for. Thanks. I'll check how far I get :)
Also note that some ebitenbackend features (mainly I mean extra flags stuff) are not yet implemented.
As I need at least one of these, I'll also add the flag somehow.
If I get it working we can see how we could get it integrated here in a useful way.
Ok so my main problem at the moment is, that within cimgui-go some methods of the ebiten backend are not implement, and I think I slowly understand a bit why. I'll open an issue in the cimgui-go repo and link it here so we do not mix stuff.
awesome! thank you! I can help with implementing that in cimgui-go (I was just a bit lazy and didn't do that earlier)
That would be awesome, even if I am unsure if it's possible. I think completing the ebiten backend is the main work compared to adding the support of another backend here. See: https://github.com/AllenDang/cimgui-go/issues/434
As @gucio321 completed the backend already I want to go forward with the implementation here.
I have one question regarding the Window Flags:
Within giu we have the flag MasterWindowFlagsTransparent this maps to ebiten flag: SetScreenTransparent but it is deprecated (and not included in the current cimgui-go ebiten backend). I therefore think we will not include it.
How should I handle the case, that I can not map this flag? Should I just not include it in the "parseFlag" function and let it throw "UnknownFlag" if somebody tries to use it?