This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// compile in ubuntu: | |
// $ zig build-exe paint.zig --library SDL2 --library SDL2main --library c -isystem "/usr/include" --library-path "/usr/lib/x86_64-linux-gnu" | |
const std = @import("std"); | |
const warn = std.debug.warn; | |
const fmt = std.fmt; | |
const c = @cImport({ | |
@cInclude("SDL2/SDL.h"); | |
}); |