Git Product home page Git Product logo

Comments (6)

MichalStrehovsky avatar MichalStrehovsky commented on July 29, 2024

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.

from bflat.

lucabol avatar lucabol commented on July 29, 2024

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 ...

from bflat.

lucabol avatar lucabol commented on July 29, 2024

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.

from bflat.

MichalStrehovsky avatar MichalStrehovsky commented on July 29, 2024

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.

from bflat.

lucabol avatar lucabol commented on July 29, 2024

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'?

from bflat.

MichalStrehovsky avatar MichalStrehovsky commented on July 29, 2024

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

from bflat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.