Mercurial > hg > pub > prymula > com
comparison DPF-Prymula-audioplugins/dpf/dgl/src/pugl-extra/wasm.h @ 3:84e66ea83026
DPF-Prymula-audioplugins-0.231015-2
author | prymula <prymula76@outlook.com> |
---|---|
date | Mon, 16 Oct 2023 21:53:34 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:cf2cb71d31dd | 3:84e66ea83026 |
---|---|
1 // Copyright 2012-2022 David Robillard <d@drobilla.net> | |
2 // Copyright 2021-2022 Filipe Coelho <falktx@falktx.com> | |
3 // SPDX-License-Identifier: ISC | |
4 | |
5 #ifndef PUGL_SRC_WASM_H | |
6 #define PUGL_SRC_WASM_H | |
7 | |
8 #include "../pugl-upstream/src/types.h" | |
9 | |
10 #include "pugl/pugl.h" | |
11 | |
12 // #define PUGL_WASM_ASYNC_CLIPBOARD | |
13 | |
14 struct PuglTimer { | |
15 PuglView* view; | |
16 uintptr_t id; | |
17 }; | |
18 | |
19 struct PuglWorldInternalsImpl { | |
20 double scaleFactor; | |
21 }; | |
22 | |
23 struct LastMotionValues { | |
24 double x, y, xRoot, yRoot; | |
25 }; | |
26 | |
27 struct PuglInternalsImpl { | |
28 PuglSurface* surface; | |
29 bool isFullscreen; | |
30 bool needsRepaint; | |
31 bool pointerLocked; | |
32 uint32_t numTimers; | |
33 LastMotionValues lastMotion; | |
34 long buttonPressTimeout; | |
35 PuglEvent nextButtonEvent; | |
36 #ifdef PUGL_WASM_ASYNC_CLIPBOARD | |
37 PuglViewHintValue supportsClipboardRead; | |
38 PuglViewHintValue supportsClipboardWrite; | |
39 #endif | |
40 PuglViewHintValue supportsTouch; | |
41 char* clipboardData; | |
42 struct PuglTimer* timers; | |
43 }; | |
44 | |
45 #endif // PUGL_SRC_WASM_H |