core: remove verbose comments

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-08-25 18:17:42 -07:00
parent 09d39fb694
commit 1c0434a948
3 changed files with 10 additions and 33 deletions

View file

@ -67,7 +67,6 @@ pub fn run(comptime on_each_update_fn: anytype, args_tuple: std.meta.ArgsTuple(@
// TODO: support UIKit.
}
// Called on the main thread
pub fn init(
darwin: *Darwin,
core: *Core.Mod,
@ -130,77 +129,62 @@ pub fn deinit(darwin: *Darwin) void {
return;
}
// Called on the main thread
pub fn update(_: *Darwin) !void {
return;
}
// May be called from any thread.
pub fn setTitle(_: *Darwin, _: [:0]const u8) void {
return;
}
// May be called from any thread.
pub fn setDisplayMode(_: *Darwin, _: DisplayMode) void {
return;
}
// May be called from any thread.
pub fn setBorder(_: *Darwin, _: bool) void {
return;
}
// May be called from any thread.
pub fn setHeadless(_: *Darwin, _: bool) void {
return;
}
// May be called from any thread.
pub fn setVSync(_: *Darwin, _: VSyncMode) void {
return;
}
// May be called from any thread.
pub fn setSize(_: *Darwin, _: Size) void {
return;
}
// May be called from any thread.
pub fn size(_: *Darwin) Size {
return Size{ .width = 100, .height = 100 };
}
// May be called from any thread.
pub fn setCursorMode(_: *Darwin, _: CursorMode) void {
return;
}
// May be called from any thread.
pub fn setCursorShape(_: *Darwin, _: CursorShape) void {
return;
}
// May be called from any thread.
pub fn keyPressed(_: *Darwin, _: Key) bool {
return false;
}
// May be called from any thread.
pub fn keyReleased(_: *Darwin, _: Key) bool {
return true;
}
// May be called from any thread.
pub fn mousePressed(_: *Darwin, _: MouseButton) bool {
return false;
}
// May be called from any thread.
pub fn mouseReleased(_: *Darwin, _: MouseButton) bool {
return true;
}
// May be called from any thread.
pub fn mousePosition(_: *Darwin) Position {
return Position{ .x = 0, .y = 0 };
}

View file

@ -38,7 +38,6 @@ refresh_rate: u32,
size: Size,
surface_descriptor: gpu.Surface.Descriptor,
// Called on the main thread
pub fn init(
nul: *Null,
core: *Core.Mod,
@ -54,77 +53,62 @@ pub fn deinit(_: *Null) void {
return;
}
// Called on the main thread
pub fn update(_: *Null) !void {
return;
}
// May be called from any thread.
pub fn setTitle(_: *Null, _: [:0]const u8) void {
return;
}
// May be called from any thread.
pub fn setDisplayMode(_: *Null, _: DisplayMode) void {
return;
}
// May be called from any thread.
pub fn setBorder(_: *Null, _: bool) void {
return;
}
// May be called from any thread.
pub fn setHeadless(_: *Null, _: bool) void {
return;
}
// May be called from any thread.
pub fn setVSync(_: *Null, _: VSyncMode) void {
return;
}
// May be called from any thread.
pub fn setSize(_: *Null, _: Size) void {
return;
}
// May be called from any thread.
pub fn size(_: *Null) Size {
return Size{ .width = 100, .height = 100 };
}
// May be called from any thread.
pub fn setCursorMode(_: *Null, _: CursorMode) void {
return;
}
// May be called from any thread.
pub fn setCursorShape(_: *Null, _: CursorShape) void {
return;
}
// May be called from any thread.
pub fn keyPressed(_: *Null, _: Key) bool {
return false;
}
// May be called from any thread.
pub fn keyReleased(_: *Null, _: Key) bool {
return true;
}
// May be called from any thread.
pub fn mousePressed(_: *Null, _: MouseButton) bool {
return false;
}
// May be called from any thread.
pub fn mouseReleased(_: *Null, _: MouseButton) bool {
return true;
}
// May be called from any thread.
pub fn mousePosition(_: *Null) Position {
return Position{ .x = 0, .y = 0 };
}