Re:LÖVE: a framework to make 2D games in Lua
by rishav_sharan on Thursday September 14, 2023 @05:18AM
(#37506662)
Thank you. It worked perfectly for me. I was doing most of these but I was messing up the include path. your code samples helped me fix the issues in my build file. Have a great day!
At the top of your build.zig, import the raylib build.zig inside raylib's /src folder (exact path will depend where you've cloned raylib)
Use the imported addRaylib() function to build raylib, then link to the exe and add include path After that, you should be fine to just use @cImport to use raylib within your project