aboutsummaryrefslogtreecommitdiff
path: root/pacc/pacc-win.h
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-09-08 23:25:51 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-09-08 23:25:51 +0900
commit50c75c12597b230cec4d7a29559cde263025eeb2 (patch)
tree9fa8afe8bcf6e1219186e5c567930831a3b5eab5 /pacc/pacc-win.h
parent4cfeddd04dcbbf658195bd837d7daff7f08b37bc (diff)
pacc: initial
Diffstat (limited to 'pacc/pacc-win.h')
-rw-r--r--pacc/pacc-win.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/pacc/pacc-win.h b/pacc/pacc-win.h
new file mode 100644
index 0000000..47c09d1
--- /dev/null
+++ b/pacc/pacc-win.h
@@ -0,0 +1,21 @@
+#ifndef MYON_PACC_WIN_H_INCLUDED
+#define MYON_PACC_WIN_H_INCLUDED
+
+#include "pacc.h"
+
+#ifndef WIN32_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN
+#endif
+#include <windows.h>
+#include <stdbool.h>
+
+typedef void pacc_rendercb(void *ptr);
+
+struct pacc_win_vtable {
+ void (*renderctrl)(struct pacc_ctx *ctx, bool enable);
+};
+
+struct pacc_ctx *pacc_init_d3d9(HWND hwnd, pacc_rendercb *rendercb, void *renderptr, struct pacc_vtable *vt, struct pacc_win_vtable *winvt);
+
+#endif // MYON_PACC_WIN_H_INCLUDED
+