diff options
| -rw-r--r-- | src/sketch/root.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sketch/root.zig b/src/sketch/root.zig index 81ebad5..b2f9136 100644 --- a/src/sketch/root.zig +++ b/src/sketch/root.zig @@ -73,6 +73,9 @@ pub const Frame = struct { session: std.mem.Allocator, /// For Store: on disk, across restarts. store: std.mem.Allocator, + /// A library's own state for this frame (canim's table of places), in + /// `scratch`: null at each frame's start. + user: ?*anyopaque = null, pub fn init(ctx: *const abi.Context) Frame { return .{ .ctx = ctx, .in = ctx.input, .host = ctx.host, .scratch = ctx.scratch, .session = ctx.session, .store = ctx.store }; |
