feat: draw white texture using SDL2

This commit is contained in:
2022-01-07 22:46:17 -04:00
parent 8fb666624f
commit da7f21f47e
4 changed files with 57 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
const std = @import("std");
const Sdk = @import("lib/SDL.zig/Sdk.zig");
pub fn build(b: *std.build.Builder) void {
// Standard target options allows the person running `zig build` to choose
@@ -14,7 +15,13 @@ pub fn build(b: *std.build.Builder) void {
const exe = b.addExecutable("zba", "src/main.zig");
// Bitfield type from FlorenceOS: https://github.com/FlorenceOS/
exe.addPackage(.{ .name = "bitfield", .path = .{ .path = "./lib/util/bitfield.zig" } });
exe.addPackage(.{ .name = "bitfield", .path = .{ .path = "lib/util/bitfield.zig" } });
// Zig SDL Bindings: https://github.com/MasterQ32/SDL.zig
const sdk = Sdk.init(b);
sdk.link(exe, .dynamic);
exe.addPackage(sdk.getNativePackage("sdl2"));
exe.setTarget(target);
exe.setBuildMode(mode);