aboutsummaryrefslogtreecommitdiff
path: root/include/common.h
blob: b60476c5367411b5bdbf07352115a4989bb2b9aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef MGUI_COMMON_H
#define MGUI_COMMON_H

#include <mgl/system/vec.h>
#include <stdbool.h>

typedef struct mgl_window mgl_window;

bool mgui_rectangle_contains(mgl_vec2f rectangle_pos, mgl_vec2f rectangle_size, mgl_vec2f point);
bool mgui_rectangle_intersects_with_scissor(mgl_vec2i rectangle_pos, mgl_vec2i rectangle_size, mgl_window *window);

#endif /* MGUI_COMMON_H */