raylib-zig
raylib-zig copied to clipboard
How to use dependency as dynamic library?
Hey all! Sorry if this is a newbie question, but I am trying to figure out if there's an out of the box way to compile this as dynamic library?
Wondering because I wanted to set up hot reloading with this.
When I tried having a game dynamic library and an executable I build that reloads the game dynamic library it seemed the raylib instances were separate with the dependency artifact and module.
So I tried hacking around building this dependency dynamically and using it in both, without having to do a cImport, but not sure that's possible or if I'm doing something wrong as I keep running into different errors of all kinds.
I didn't see any examples or older issues on this as well.