Open TerensTare opened 4 years ago
Hi @TerensTare, yes! Though it seems like it's written in C++ which is incompatible with cgo.
What if I make it work in GoLang? Maybe by rewriting it in pure Go?
That sounds like a good approach. There doesn't seem to be any problem other than the amount of work you have to put into it. If you are driven to do this, I'd say go for it!
I will leave commenting up to you. So you can write it in your own style. But I will just write some notes.
There is a small problem. The library uses SDL_gfx and I am on Windows. Is there any way to use SDL_gfx on WIndows?
Yes, I was able to get it running here. It seems like you just need to copy the header and .dll files to the MinGW's include and lib directories. Let me know if you have any difficulty.
It worked. Thanks a lot. Talk to you later.
No problem. I'm glad it helped :relaxed:
Hey @veeableful . I found this faq hosted by Bjarne Stroustrup (the creator of C++). It says that you can export C++ classes to C code. That means that I can use C bindings to generate GoLang bindings (way simpler than rewriting the whole thing in GoLang).
That's true. You could contribute to that project by writing C binding for them!
Any interests on this? https://github.com/mozeal/SDL_gui