aboutsummaryrefslogtreecommitdiff
path: root/include/gui/Utils.hpp
blob: 35b2bb72269ee384d48a5c0d6f2b7adb30068de8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <mglpp/system/vec.hpp>
#include <mglpp/graphics/Color.hpp>

#include <functional>
#include <string_view>

namespace mgl {
    class Window;
}

namespace gsr {
    // Inner border
    void draw_rectangle_outline(mgl::Window &window, mgl::vec2f pos, mgl::vec2f size, mgl::Color color, float border_size);
    double get_frame_delta_seconds();
    void set_frame_delta_seconds(double frame_delta);
    mgl::vec2f scale_keep_aspect_ratio(mgl::vec2f from, mgl::vec2f to);
}