Add webcam support

This commit is contained in:
dec05eba
2025-12-25 08:19:07 +01:00
parent 1971d4a288
commit 13562d2aa1
19 changed files with 531 additions and 26 deletions

View File

@@ -9,6 +9,10 @@ namespace mgl {
}
namespace gsr {
mgl::vec2i min_vec2i(mgl::vec2i a, mgl::vec2i b);
mgl::vec2i max_vec2i(mgl::vec2i a, mgl::vec2i b);
mgl::vec2i clamp_vec2i(mgl::vec2i value, mgl::vec2i min, mgl::vec2i max);
// 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();