Comments (4)
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.
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onlygo.