libmach: update API, exposes init, update, and deinit functions

This commit is contained in:
Zachary Huang 2022-07-19 00:31:29 -04:00 committed by Stephen Gutekanst
parent d194dafb79
commit 77aecbe806
6 changed files with 166 additions and 138 deletions

View file

@ -222,7 +222,7 @@ pub const Platform = struct {
platform.events.append(node);
}
fn initCallback(platform: *Platform) void {
pub fn initCallback(platform: *Platform) void {
platform.user_ptr = UserPtr{ .platform = platform };
platform.window.setUserPointer(&platform.user_ptr);