#ifndef ENGINE_UI_H # define ENGINE_UI_H /* input */ typedef struct { bool is_mouse; bool repeat; int bind; } keybind_t; /* gui */ typedef struct { Texture2D tex; Rectangle rec; char* str; } button; bool mouse_inbound(const Rectangle bound, const Vector2 mouse_pos); button create_button(Vector2 pos, char* tex_path, char* str); void destroy_button(button b); bool gui_button(button b); #endif