Closed lucabol closed 5 months ago
The sokol repo is linked from https://github.com/bflattened/bflat/tree/master/samples/Sokol - https://github.com/MichalStrehovsky/sokol-csharp. I haven't made a linux build of the native library. I'm not sure if I really want to keep it as built-in part of bflat, it's a hassle to maintain the binaries.
Yeah, I was surprised you would do that. I would consider using sokol as an example of how you can use an header only C/C++ library from bflat as there are many header only ones these days ...
Sorry, looking at the sample source, my suggestion doesn't make sense as you are using a C# wrapper already. So it's not an example of using an header only lib anyhow.
Yeah, bflat is not a C compiler, so this needs to be compiled separately and some kind of p/invoke wrapper generated. I've used a python-based generator that the sokol repo uses. Would be nice to be able to just #include
it like CGO. Maybe some day, but CGO is also where building Go starts to be hard.
Yep. Closing the issue. BTW: what's the best way to ask you questions about this project? I am curious about the zero
(is it different than none
stdlib? Also which kinds of pinvoke can be done in 'zero'/'none'?
Either open an issue or a discussion in this repo.
Zero at least defines things like system.object. None is really only useful you vendor in zero's source code. The compiler crashes spectacularly if things are missing.
Pinvoke support is limited to things that work without marshalling, so most primitive types, structs of those, or pointers
It is looking for sokol.so, not sure where to get it. I thought sokol was an header only library ... tried web searching for it, but nothing. Perhaps I am missing something obvious?