adia-dev/sdl2-zig-demo
Showcase of Zig and SDL2
This repository contains an updated version of the SDL2 Zig Demo created by @andrewrk. The original repository can be found here.
Check out the demo of the SDL2 Zig Demo in action:
The demo showcases a simple application window created using SDL2 in Zig. The window allows user interaction and displays a red square that can be moved using arrow keys. Additionally, it renders text on the window to display information such as the position and speed of the square.
To build and run the SDL2 Zig Demo, follow these steps:
git clone https://github.com/adia-dev/sdl2-zig-demo.git
cd sdl2-zig-demo
zig build run
This will compile the code and execute the resulting binary, launching the SDL2 Zig Demo window.
Before running the SDL2 Zig Demo, make sure you have the following dependencies installed:
0.11.0-dev.3384+00ff65357
))Ensure that you have the necessary dependencies installed before attempting to build and run the demo.
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.