Simple sample test with AI to handle setup and how it works.
project root
- assets
- JetBrainsMonoNL-Light.ttf
- src
- nuklear_impl.c
| const std = @import("std"); | |
| pub fn build(b: *std.Build) void { | |
| std.debug.print("build script running...\n", .{}); | |
| const target = b.standardTargetOptions(.{}); | |
| const optimize = b.standardOptimizeOption(.{}); | |
| const exe = b.addExecutable(.{ | |
| .name = "ztimestartend", |
| const std = @import("std"); | |
| const zsdl3 = @import("zsdl3"); // https://github.com/felixuxx/zsdl3 | |
| pub const TerminalInput = struct { | |
| buffer: std.ArrayList(u8) = .empty, | |
| history: std.ArrayList([]const u8) = .empty, | |
| cursor_pos: usize = 0, // tracks byte index offset from the START | |
| pub fn init() TerminalInput { | |
| return .{}; |
| // zig 0.16.0 | |
| const std = @import("std"); | |
| pub const User = struct { | |
| id: u32, | |
| name: []const u8, | |
| date: []const u8, | |
| }; |
| // | |
| // do not use gpu in thread | |
| // zig 0.16.0 | |
| // https://github.com/raylib-zig/raylib-zig.git | |
| const std = @import("std"); | |
| const rl = @import("raylib"); | |
| const SharedData = struct { | |
| mutex: std.Io.Mutex = .init, |
| // working | |
| const rl = @import("raylib"); | |
| // https://github.com/raylib-zig/raylib-zig | |
| const rlgl = rl.gl; // raylib rlgl | |
| pub fn main() anyerror!void { | |
| // Initialization | |
| const screen_width = 800; | |
| const screen_height = 450; |
| // zig 0.16.0 | |
| const rl = @import("raylib"); // https://github.com/raylib-zig/raylib-zig | |
| const std = @import("std"); | |
| pub fn main() !void { | |
| // Set configuration flags BEFORE initializing the window | |
| rl.setConfigFlags(.{ | |
| .window_undecorated = true, | |
| .window_transparent = true, |
// reducer: scheduleReminder
// table: person
// view: my_player
// lifecycle: init
export const init = spacetimedb.init(_ctx => {
console.log("====::: INIT SPACETIMEDB :::====");
});