renderer mailbox, focus message

This commit is contained in:
Mitchell Hashimoto
2022-11-05 18:51:39 -07:00
parent 9a44e45785
commit e2d8ffc3c1
7 changed files with 77 additions and 12 deletions

11
src/renderer/message.zig Normal file
View File

@@ -0,0 +1,11 @@
const std = @import("std");
const assert = std.debug.assert;
const Allocator = std.mem.Allocator;
/// The messages that can be sent to a renderer thread.
pub const Message = union(enum) {
/// A change in state in the window focus that this renderer is
/// rendering within. This is only sent when a change is detected so
/// the renderer is expected to handle all of these.
focus: bool,
};