1
0
Fork 0

feat: add delta time field to Draw treevent

close #7
This commit is contained in:
LordMZTE 2024-01-09 20:16:41 +01:00
parent 4fbfdb11f3
commit c39d2dc27d
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

View file

@ -8,6 +8,9 @@ const Widget = @import("../widget.zig").Widget;
painter: *Painter,
/// The delta time (time elapsed since the last frame) in nanoseconds.
dt: u64,
const Draw = @This();
pub fn dispatch(self: Draw, widget: *Widget) !void {