aboutsummaryrefslogtreecommitdiff
path: root/subprojects/d2tk/d2tk/frontend_glfw.h
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/d2tk/d2tk/frontend_glfw.h')
-rw-r--r--subprojects/d2tk/d2tk/frontend_glfw.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/subprojects/d2tk/d2tk/frontend_glfw.h b/subprojects/d2tk/d2tk/frontend_glfw.h
new file mode 100644
index 0000000..b7b934f
--- /dev/null
+++ b/subprojects/d2tk/d2tk/frontend_glfw.h
@@ -0,0 +1,47 @@
+/*
+ * Copyright (c) 2018-2019 Hanspeter Portner (dev@open-music-kontrollers.ch)
+ *
+ * This is free software: you can redistribute it and/or modify
+ * it under the terms of the Artistic License 2.0 as published by
+ * The Perl Foundation.
+ *
+ * This source is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Artistic License 2.0 for more details.
+ *
+ * You should have received a copy of the Artistic License 2.0
+ * along the source as a COPYING file. If not, obtain it from
+ * http://www.perlfoundation.org/artistic_license_2_0.
+ */
+
+#ifndef _D2TK_FRONTEND_GLFW_H
+#define _D2TK_FRONTEND_GLFW_H
+
+#include <signal.h>
+
+#include <d2tk/base.h>
+#include <d2tk/frontend.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct _d2tk_glfw_config_t d2tk_glfw_config_t;
+
+struct _d2tk_glfw_config_t {
+ d2tk_coord_t w;
+ d2tk_coord_t h;
+ const char *bundle_path;
+ d2tk_frontend_expose_t expose;
+ void *data;
+};
+
+D2TK_API d2tk_frontend_t *
+d2tk_glfw_new(const d2tk_glfw_config_t *config);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // _D2TK_FRONTEND_GLFW_H