aboutsummaryrefslogtreecommitdiff
path: root/include/mgui/mgui.h
blob: cb018d58cb0ed500c8b4b9d6e9f0510be2e7553f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef MGUI_H
#define MGUI_H

typedef struct mgui_widget mgui_widget;
typedef struct mgl_event mgl_event;
typedef struct mgl_window mgl_window;

void mgui_init();
void mgui_deinit();
void mgui_on_event(mgui_widget *root_widget, mgl_window *window, mgl_event *event);
/* This should only be called once every frame */
void mgui_draw(mgui_widget *root_widget, mgl_window *window);
/* Clamped to 1.0 second */
double mgui_get_seconds_since_last_update();
/* Clamped to 1.0 second */
double mgui_get_frame_time_seconds();

#endif /* MGUI_H */