core: clarify allocator is internal state
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
f548918e13
commit
9a940f2879
1 changed files with 9 additions and 6 deletions
15
src/Core.zig
15
src/Core.zig
|
|
@ -120,19 +120,20 @@ on_tick: ?mach.AnySystem = null,
|
|||
/// Callback system invoked when application is exiting
|
||||
on_exit: ?mach.AnySystem = null,
|
||||
|
||||
allocator: std.mem.Allocator,
|
||||
/// Main window of the application
|
||||
main_window: mach.EntityID,
|
||||
platform: Platform,
|
||||
title: [256:0]u8 = undefined,
|
||||
|
||||
/// Current state of the application
|
||||
state: enum {
|
||||
running,
|
||||
exiting,
|
||||
deinitializing,
|
||||
exited,
|
||||
} = .running,
|
||||
frame: mach.time.Frequency,
|
||||
|
||||
// Might be accessed by Platform backend
|
||||
// TODO: handle window titles better
|
||||
title: [256:0]u8 = undefined,
|
||||
frame: mach.time.Frequency,
|
||||
input: mach.time.Frequency,
|
||||
swap_chain_update: std.Thread.ResetEvent = .{},
|
||||
|
||||
|
|
@ -145,7 +146,9 @@ surface: *gpu.Surface,
|
|||
swap_chain: *gpu.SwapChain,
|
||||
descriptor: gpu.SwapChain.Descriptor,
|
||||
|
||||
// Internal state
|
||||
// Internal module state
|
||||
allocator: std.mem.Allocator,
|
||||
platform: Platform,
|
||||
events: EventQueue,
|
||||
input_state: InputState,
|
||||
oom: std.Thread.ResetEvent = .{},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue