zig-dos-like-rotozoom
zig-dos-like-rotozoom

peterhellberg/zig-dos-like-rotozoom

NOASSERTION

Zig port of Mattias Gustavssons port of rotozoom code by seancode

0000
build.zig.zon build.zig 
View on GitHub  
Updated: 11:36:49 AM Sat Sep 07 2024Size: 1717KBCreated: 1:03:43 AM Sat Sep 07 2024
Dependencies:
dos

zig-dos-like-rotozoom :floppy_disk:

Getting the rotozoom example from dos-like to build in Zig :zap:

[!Note] zig translate-c -lc rotozoom.c > rotozoom.zig was used as a starting point of the port.

Most of the time was spent figuring out how to setup the build :joy:

Rotozoom effect

rotozoom

This image is used in the rotozoom effect.

Requirements

A fairly recent version of Zig master (which would be 0.14.0-dev.1472 when this was written)

  • SDL2
  • GLEW
  • pthread

Compilation

You should hopefully be able to compile the binary by calling zig build

[!Note] As a convenience you can compile and run the binary via zig build run (or zig build run -- -w if you want to start in windowed mode)

Links