aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-10-17 00:33:37 +0200
committerdec05eba <dec05eba@protonmail.com>2021-10-17 00:33:37 +0200
commit8974be43a3c7f672a34291049bb543d01960de28 (patch)
treeb9673193e71b3fec54ecbbae561b7445603567e5 /include
parent4a967356128c49ad615d786c65a8c0cc672aca7b (diff)
Parent window = 0 = root window
Diffstat (limited to 'include')
-rw-r--r--include/mgl/window/window.h (renamed from include/mgl/window.h)3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mgl/window.h b/include/mgl/window/window.h
index 0184577..5232260 100644
--- a/include/mgl/window.h
+++ b/include/mgl/window/window.h
@@ -1,7 +1,7 @@
#ifndef MGL_WINDOW_H
#define MGL_WINDOW_H
-#include "system/vec.h"
+#include "../system/vec.h"
typedef struct mgl_window mgl_window;
@@ -18,6 +18,7 @@ struct mgl_window {
};
int mgl_window_create(mgl_window *self, const char *title, int width, int height, mgl_window_callback *callback);
+/* if |parent_window| is 0 then the root window is used */
int mgl_window_create_with_params(mgl_window *self, const char *title, int width, int height, unsigned long parent_window, mgl_window_callback *callback);
void mgl_window_deinit(mgl_window *self);