From 3d5e8baa5f66547f1250950b10bd4108e30af423 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 25 Aug 2024 13:39:33 +0200 Subject: File chooser navigation --- src/gui/Utils.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gui/Utils.cpp') diff --git a/src/gui/Utils.cpp b/src/gui/Utils.cpp index 20c7b73..e000b7a 100644 --- a/src/gui/Utils.cpp +++ b/src/gui/Utils.cpp @@ -3,6 +3,8 @@ #include namespace gsr { + static double frame_delta_seconds = 1.0; + // TODO: Use vertices to make it one draw call void draw_rectangle_outline(mgl::Window &window, mgl::vec2f pos, mgl::vec2f size, mgl::Color color, float border_size) { pos = pos.floor(); @@ -40,4 +42,12 @@ namespace gsr { window.draw(rect); } } + + double get_frame_delta_seconds() { + return frame_delta_seconds; + } + + void set_frame_delta_seconds(double frame_delta) { + frame_delta_seconds = frame_delta; + } } \ No newline at end of file -- cgit v1.2.3