allocator: std.mem.Allocator = undefined, pub var NeonObjectTable: core.EngineObjectVTable = core.EngineObjectVTable.from(@This(), "Headless"); pub fn create(allocator: std.mem.Allocator) !*@This() { const self = try allocator.create(@This()); self.* = .{ .allocator = allocator, }; return self; } pub fn prepare(self: *@This()) !void { _ = self; } pub fn tick(self: *@This(), dt: f64) void { _ = self; _ = dt; core.exitNow(); } pub fn deinit(self: *@This()) void { self.allocator.destroy(self); } pub fn main() anyerror!void { var spec = try backlog.getSpec("headless"); // try spec.put("useGPA", .{ .boolean = false }); _ = backlog.startEngine(&NeonObjectTable, &spec); } const std = @import("std"); const backlog = @import("backlog"); const core = backlog.core;