libmach: update API, exposes init, update, and deinit functions
This commit is contained in:
parent
d194dafb79
commit
77aecbe806
6 changed files with 166 additions and 138 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue