mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-05-04 22:10:44 +09:00
File chooser navigation
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
#include <mglpp/graphics/Rectangle.hpp>
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user