Giter Site home page Giter Site logo

Collaboration - Input about onlygo HOT 4 OPEN

jensfredgaard avatar jensfredgaard commented on July 19, 2024
Collaboration - Input

from onlygo.

Comments (4)

jensfredgaard avatar jensfredgaard commented on July 19, 2024 1

Great!

Kinda funny, about two weeks ago I made support for "disable sticky keys and shortcuts" on Windows, which led me to begin building my own cross platform window manager... basically the same as your GWL :D

I will start looking at the best approach for Vulkan bindings.

from onlygo.

TotallyGamerJet avatar TotallyGamerJet commented on July 19, 2024

Hey! There are already Vulkan bindings for Go here which uses Cgo. Unless you are asking for a Cgo-less version. I don't believe such a thing exists. However, it shouldn't be too hard to make with using purego which is where all my time has been focused.

from onlygo.

jensfredgaard avatar jensfredgaard commented on July 19, 2024

Yep, I want to run without cgo, which is why I think your projects are interesting! Can you provide an example for purego?

By looking at the code I am guessing that you load a library, get the ProcAddress and then create go corresponding function with matching parameters.

from onlygo.

TotallyGamerJet avatar TotallyGamerJet commented on July 19, 2024

Sure thing! purego is an Ebitengine project and used in Ebitengine. It's used in the OpenGL part for macOS. The steps are to purego.Dlopen the framework and then purego.Dlsym each function you want to call. Then use purego.SyscallN to call the function. Note that right now only up to 9 arguments are supported.

This won't help with creating a window though which still requires Cgo through something like GLFW. I'm planning on fixing that in Ebitengine but I first need to finish adding Objective-C support to purego.

from onlygo.

Related Issues (1)

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.