In the global approach, you register C functions (like luaopen_raylib and luaopen_enet) directly into Lua’s global namespace using lua_setglobal. Namespace Pollution: Adds rl and enet to the global ...
raylib-lua-sol bindings are self-contained in a header-only file: raylib-lua-sol.hpp. Just include that file in your project to allow loading and execution of raylib code written in Lua and Sol.