Skip to content

Collection of small Zig example projects

Notifications You must be signed in to change notification settings

castholm/zig-examples

Repository files navigation

Zig example projects

This is my collection of small example projects showcasing the Zig language, build system and ecosystem.

Simple Breakout clone using SDL3 for video, audio, input, etc. How quickly can you break all the bricks?

Preview

SDL's example Snake game, written in C, built using the Zig build system.

Preview

Creates a window using SDL3, then draws to it using OpenGL bindings generated by zigglgen.

Preview

Look ma, no shaders! Creates a window using GLFW, then draws to it using OpenGL bindings generated by zigglgen.

Preview

Demonstrates how to compile a program consisting of a mix of C, C++ and Zig code.

Entered main.c
Hello from C!
Hello from C++!
Hello from Zig!
Leaving main.c

About

Collection of small Zig example projects

Resources

Stars

Watchers

Forks