Zig interop makes it easy to use raylib

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/Zig

Our great sponsors
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • Zigi - Close all those tabs. Zigi will handle your updates.
  • Scout APM - Truly a developer’s best friend
  • SonarLint - Clean code begins in your IDE with SonarLint
  • zig

    General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

    What I mentioned works specifically for zig build-exe (see output of zig build-exe -h). So perhaps zig build-exe -lc -lraylib -O ReleaseSmall --strip src/main.zig? Anyway it'd probably be easier to add to your build.zig, so something like exe.strip = true;. There's also https://github.com/ziglang/zig/issues/6676.

  • mach

    Mach is a game engine & graphics toolkit for the future.

    Yeah, I'm always on the look for new graphics libraries, but there are far less good libraries out there than one may think. I tried sokol recently but it has a lot of problems that I don't find in raylib. raylib has a lot of disagreeable parts for me too, but at least it's extremely simple and very well maintained and you can get things done really quickly. The ultimate goal of course would be to go with something like https://github.com/hexops/mach that is actually written in Zig, but until that stuff evolves we will pretty much have to rely on external stuff (unless you specifically want to do very low-level graphics development in which case you could just interact with the APIs directly, of course).

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts