glfw3.c 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/GLFW/CMakeLists.txt +368 -0
  2. package/GLFW/cocoa_init.m +694 -0
  3. package/GLFW/cocoa_joystick.h +49 -0
  4. package/GLFW/cocoa_joystick.m +485 -0
  5. package/GLFW/cocoa_monitor.m +643 -0
  6. package/GLFW/cocoa_platform.h +302 -0
  7. package/GLFW/cocoa_time.c +57 -0
  8. package/GLFW/cocoa_time.h +35 -0
  9. package/GLFW/cocoa_window.m +2072 -0
  10. package/GLFW/context.c +765 -0
  11. package/GLFW/egl_context.c +911 -0
  12. package/GLFW/glfw.rc.in +30 -0
  13. package/GLFW/glfw3.c +109 -0
  14. package/GLFW/glfw3.h +6564 -0
  15. package/GLFW/glfw3native.h +663 -0
  16. package/GLFW/glx_context.c +719 -0
  17. package/GLFW/init.c +528 -0
  18. package/GLFW/input.c +1505 -0
  19. package/GLFW/internal.h +1022 -0
  20. package/GLFW/linux_joystick.c +436 -0
  21. package/GLFW/linux_joystick.h +64 -0
  22. package/GLFW/mappings.h +1001 -0
  23. package/GLFW/mappings.h.in +82 -0
  24. package/GLFW/monitor.c +548 -0
  25. package/GLFW/nsgl_context.m +384 -0
  26. package/GLFW/null_init.c +264 -0
  27. package/GLFW/null_joystick.c +56 -0
  28. package/GLFW/null_joystick.h +32 -0
  29. package/GLFW/null_monitor.c +160 -0
  30. package/GLFW/null_platform.h +271 -0
  31. package/GLFW/null_window.c +719 -0
  32. package/GLFW/osmesa_context.c +383 -0
  33. package/GLFW/platform.c +214 -0
  34. package/GLFW/platform.h +212 -0
  35. package/GLFW/posix_module.c +53 -0
  36. package/GLFW/posix_poll.c +83 -0
  37. package/GLFW/posix_poll.h +30 -0
  38. package/GLFW/posix_thread.c +107 -0
  39. package/GLFW/posix_thread.h +49 -0
  40. package/GLFW/posix_time.c +65 -0
  41. package/GLFW/posix_time.h +41 -0
  42. package/GLFW/vulkan.c +328 -0
  43. package/GLFW/wgl_context.c +798 -0
  44. package/GLFW/win32_init.c +731 -0
  45. package/GLFW/win32_joystick.c +767 -0
  46. package/GLFW/win32_joystick.h +51 -0
  47. package/GLFW/win32_module.c +51 -0
  48. package/GLFW/win32_monitor.c +569 -0
  49. package/GLFW/win32_platform.h +631 -0
  50. package/GLFW/win32_thread.c +100 -0
  51. package/GLFW/win32_thread.h +53 -0
  52. package/GLFW/win32_time.c +54 -0
  53. package/GLFW/win32_time.h +43 -0
  54. package/GLFW/win32_window.c +2592 -0
  55. package/GLFW/window.c +1172 -0
  56. package/GLFW/wl_init.c +1003 -0
  57. package/GLFW/wl_monitor.c +274 -0
  58. package/GLFW/wl_platform.h +691 -0
  59. package/GLFW/wl_window.c +3308 -0
  60. package/GLFW/x11_init.c +1656 -0
  61. package/GLFW/x11_monitor.c +641 -0
  62. package/GLFW/x11_platform.h +1004 -0
  63. package/GLFW/x11_window.c +3357 -0
  64. package/GLFW/xkb_unicode.c +943 -0
  65. package/GLFW/xkb_unicode.h +30 -0
  66. package/LICENSE +22 -0
  67. package/README.md +236 -0
  68. package/package.json +32 -0
@@ -0,0 +1,56 @@
1
+ //========================================================================
2
+ // GLFW 3.4 - www.glfw.org
3
+ //------------------------------------------------------------------------
4
+ // Copyright (c) 2016-2017 Camilla Löwy <elmindreda@glfw.org>
5
+ //
6
+ // This software is provided 'as-is', without any express or implied
7
+ // warranty. In no event will the authors be held liable for any damages
8
+ // arising from the use of this software.
9
+ //
10
+ // Permission is granted to anyone to use this software for any purpose,
11
+ // including commercial applications, and to alter it and redistribute it
12
+ // freely, subject to the following restrictions:
13
+ //
14
+ // 1. The origin of this software must not be misrepresented; you must not
15
+ // claim that you wrote the original software. If you use this software
16
+ // in a product, an acknowledgment in the product documentation would
17
+ // be appreciated but is not required.
18
+ //
19
+ // 2. Altered source versions must be plainly marked as such, and must not
20
+ // be misrepresented as being the original software.
21
+ //
22
+ // 3. This notice may not be removed or altered from any source
23
+ // distribution.
24
+ //
25
+ //========================================================================
26
+
27
+ #include "internal.h"
28
+
29
+
30
+ //////////////////////////////////////////////////////////////////////////
31
+ ////// GLFW platform API //////
32
+ //////////////////////////////////////////////////////////////////////////
33
+
34
+ GLFWbool _glfwInitJoysticksNull(void)
35
+ {
36
+ return GLFW_TRUE;
37
+ }
38
+
39
+ void _glfwTerminateJoysticksNull(void)
40
+ {
41
+ }
42
+
43
+ GLFWbool _glfwPollJoystickNull(_GLFWjoystick* js, int mode)
44
+ {
45
+ return GLFW_FALSE;
46
+ }
47
+
48
+ const char* _glfwGetMappingNameNull(void)
49
+ {
50
+ return "";
51
+ }
52
+
53
+ void _glfwUpdateGamepadGUIDNull(char* guid)
54
+ {
55
+ }
56
+
@@ -0,0 +1,32 @@
1
+ //========================================================================
2
+ // GLFW 3.4 - www.glfw.org
3
+ //------------------------------------------------------------------------
4
+ // Copyright (c) 2006-2017 Camilla Löwy <elmindreda@glfw.org>
5
+ //
6
+ // This software is provided 'as-is', without any express or implied
7
+ // warranty. In no event will the authors be held liable for any damages
8
+ // arising from the use of this software.
9
+ //
10
+ // Permission is granted to anyone to use this software for any purpose,
11
+ // including commercial applications, and to alter it and redistribute it
12
+ // freely, subject to the following restrictions:
13
+ //
14
+ // 1. The origin of this software must not be misrepresented; you must not
15
+ // claim that you wrote the original software. If you use this software
16
+ // in a product, an acknowledgment in the product documentation would
17
+ // be appreciated but is not required.
18
+ //
19
+ // 2. Altered source versions must be plainly marked as such, and must not
20
+ // be misrepresented as being the original software.
21
+ //
22
+ // 3. This notice may not be removed or altered from any source
23
+ // distribution.
24
+ //
25
+ //========================================================================
26
+
27
+ GLFWbool _glfwInitJoysticksNull(void);
28
+ void _glfwTerminateJoysticksNull(void);
29
+ GLFWbool _glfwPollJoystickNull(_GLFWjoystick* js, int mode);
30
+ const char* _glfwGetMappingNameNull(void);
31
+ void _glfwUpdateGamepadGUIDNull(char* guid);
32
+
@@ -0,0 +1,160 @@
1
+ //========================================================================
2
+ // GLFW 3.4 - www.glfw.org
3
+ //------------------------------------------------------------------------
4
+ // Copyright (c) 2016 Google Inc.
5
+ // Copyright (c) 2016-2019 Camilla Löwy <elmindreda@glfw.org>
6
+ //
7
+ // This software is provided 'as-is', without any express or implied
8
+ // warranty. In no event will the authors be held liable for any damages
9
+ // arising from the use of this software.
10
+ //
11
+ // Permission is granted to anyone to use this software for any purpose,
12
+ // including commercial applications, and to alter it and redistribute it
13
+ // freely, subject to the following restrictions:
14
+ //
15
+ // 1. The origin of this software must not be misrepresented; you must not
16
+ // claim that you wrote the original software. If you use this software
17
+ // in a product, an acknowledgment in the product documentation would
18
+ // be appreciated but is not required.
19
+ //
20
+ // 2. Altered source versions must be plainly marked as such, and must not
21
+ // be misrepresented as being the original software.
22
+ //
23
+ // 3. This notice may not be removed or altered from any source
24
+ // distribution.
25
+ //
26
+ //========================================================================
27
+
28
+ #include "internal.h"
29
+
30
+ #include <stdlib.h>
31
+ #include <string.h>
32
+ #include <math.h>
33
+
34
+ // The the sole (fake) video mode of our (sole) fake monitor
35
+ //
36
+ static GLFWvidmode getVideoMode(void)
37
+ {
38
+ GLFWvidmode mode;
39
+ mode.width = 1920;
40
+ mode.height = 1080;
41
+ mode.redBits = 8;
42
+ mode.greenBits = 8;
43
+ mode.blueBits = 8;
44
+ mode.refreshRate = 60;
45
+ return mode;
46
+ }
47
+
48
+ //////////////////////////////////////////////////////////////////////////
49
+ ////// GLFW internal API //////
50
+ //////////////////////////////////////////////////////////////////////////
51
+
52
+ void _glfwPollMonitorsNull(void)
53
+ {
54
+ const float dpi = 141.f;
55
+ const GLFWvidmode mode = getVideoMode();
56
+ _GLFWmonitor* monitor = _glfwAllocMonitor("Null SuperNoop 0",
57
+ (int) (mode.width * 25.4f / dpi),
58
+ (int) (mode.height * 25.4f / dpi));
59
+ _glfwInputMonitor(monitor, GLFW_CONNECTED, _GLFW_INSERT_FIRST);
60
+ }
61
+
62
+ //////////////////////////////////////////////////////////////////////////
63
+ ////// GLFW platform API //////
64
+ //////////////////////////////////////////////////////////////////////////
65
+
66
+ void _glfwFreeMonitorNull(_GLFWmonitor* monitor)
67
+ {
68
+ _glfwFreeGammaArrays(&monitor->null.ramp);
69
+ }
70
+
71
+ void _glfwGetMonitorPosNull(_GLFWmonitor* monitor, int* xpos, int* ypos)
72
+ {
73
+ if (xpos)
74
+ *xpos = 0;
75
+ if (ypos)
76
+ *ypos = 0;
77
+ }
78
+
79
+ void _glfwGetMonitorContentScaleNull(_GLFWmonitor* monitor,
80
+ float* xscale, float* yscale)
81
+ {
82
+ if (xscale)
83
+ *xscale = 1.f;
84
+ if (yscale)
85
+ *yscale = 1.f;
86
+ }
87
+
88
+ void _glfwGetMonitorWorkareaNull(_GLFWmonitor* monitor,
89
+ int* xpos, int* ypos,
90
+ int* width, int* height)
91
+ {
92
+ const GLFWvidmode mode = getVideoMode();
93
+
94
+ if (xpos)
95
+ *xpos = 0;
96
+ if (ypos)
97
+ *ypos = 10;
98
+ if (width)
99
+ *width = mode.width;
100
+ if (height)
101
+ *height = mode.height - 10;
102
+ }
103
+
104
+ GLFWvidmode* _glfwGetVideoModesNull(_GLFWmonitor* monitor, int* found)
105
+ {
106
+ GLFWvidmode* mode = _glfw_calloc(1, sizeof(GLFWvidmode));
107
+ *mode = getVideoMode();
108
+ *found = 1;
109
+ return mode;
110
+ }
111
+
112
+ GLFWbool _glfwGetVideoModeNull(_GLFWmonitor* monitor, GLFWvidmode* mode)
113
+ {
114
+ *mode = getVideoMode();
115
+ return GLFW_TRUE;
116
+ }
117
+
118
+ GLFWbool _glfwGetGammaRampNull(_GLFWmonitor* monitor, GLFWgammaramp* ramp)
119
+ {
120
+ if (!monitor->null.ramp.size)
121
+ {
122
+ unsigned int i;
123
+
124
+ _glfwAllocGammaArrays(&monitor->null.ramp, 256);
125
+
126
+ for (i = 0; i < monitor->null.ramp.size; i++)
127
+ {
128
+ const float gamma = 2.2f;
129
+ float value;
130
+ value = i / (float) (monitor->null.ramp.size - 1);
131
+ value = powf(value, 1.f / gamma) * 65535.f + 0.5f;
132
+ value = fminf(value, 65535.f);
133
+
134
+ monitor->null.ramp.red[i] = (unsigned short) value;
135
+ monitor->null.ramp.green[i] = (unsigned short) value;
136
+ monitor->null.ramp.blue[i] = (unsigned short) value;
137
+ }
138
+ }
139
+
140
+ _glfwAllocGammaArrays(ramp, monitor->null.ramp.size);
141
+ memcpy(ramp->red, monitor->null.ramp.red, sizeof(short) * ramp->size);
142
+ memcpy(ramp->green, monitor->null.ramp.green, sizeof(short) * ramp->size);
143
+ memcpy(ramp->blue, monitor->null.ramp.blue, sizeof(short) * ramp->size);
144
+ return GLFW_TRUE;
145
+ }
146
+
147
+ void _glfwSetGammaRampNull(_GLFWmonitor* monitor, const GLFWgammaramp* ramp)
148
+ {
149
+ if (monitor->null.ramp.size != ramp->size)
150
+ {
151
+ _glfwInputError(GLFW_PLATFORM_ERROR,
152
+ "Null: Gamma ramp size must match current ramp size");
153
+ return;
154
+ }
155
+
156
+ memcpy(monitor->null.ramp.red, ramp->red, sizeof(short) * ramp->size);
157
+ memcpy(monitor->null.ramp.green, ramp->green, sizeof(short) * ramp->size);
158
+ memcpy(monitor->null.ramp.blue, ramp->blue, sizeof(short) * ramp->size);
159
+ }
160
+
@@ -0,0 +1,271 @@
1
+ //========================================================================
2
+ // GLFW 3.4 - www.glfw.org
3
+ //------------------------------------------------------------------------
4
+ // Copyright (c) 2016 Google Inc.
5
+ // Copyright (c) 2016-2017 Camilla Löwy <elmindreda@glfw.org>
6
+ //
7
+ // This software is provided 'as-is', without any express or implied
8
+ // warranty. In no event will the authors be held liable for any damages
9
+ // arising from the use of this software.
10
+ //
11
+ // Permission is granted to anyone to use this software for any purpose,
12
+ // including commercial applications, and to alter it and redistribute it
13
+ // freely, subject to the following restrictions:
14
+ //
15
+ // 1. The origin of this software must not be misrepresented; you must not
16
+ // claim that you wrote the original software. If you use this software
17
+ // in a product, an acknowledgment in the product documentation would
18
+ // be appreciated but is not required.
19
+ //
20
+ // 2. Altered source versions must be plainly marked as such, and must not
21
+ // be misrepresented as being the original software.
22
+ //
23
+ // 3. This notice may not be removed or altered from any source
24
+ // distribution.
25
+ //
26
+ //========================================================================
27
+
28
+ #define GLFW_NULL_WINDOW_STATE _GLFWwindowNull null;
29
+ #define GLFW_NULL_LIBRARY_WINDOW_STATE _GLFWlibraryNull null;
30
+ #define GLFW_NULL_MONITOR_STATE _GLFWmonitorNull null;
31
+
32
+ #define GLFW_NULL_CONTEXT_STATE
33
+ #define GLFW_NULL_CURSOR_STATE
34
+ #define GLFW_NULL_LIBRARY_CONTEXT_STATE
35
+
36
+ #define GLFW_NULL_SC_FIRST GLFW_NULL_SC_SPACE
37
+ #define GLFW_NULL_SC_SPACE 1
38
+ #define GLFW_NULL_SC_APOSTROPHE 2
39
+ #define GLFW_NULL_SC_COMMA 3
40
+ #define GLFW_NULL_SC_MINUS 4
41
+ #define GLFW_NULL_SC_PERIOD 5
42
+ #define GLFW_NULL_SC_SLASH 6
43
+ #define GLFW_NULL_SC_0 7
44
+ #define GLFW_NULL_SC_1 8
45
+ #define GLFW_NULL_SC_2 9
46
+ #define GLFW_NULL_SC_3 10
47
+ #define GLFW_NULL_SC_4 11
48
+ #define GLFW_NULL_SC_5 12
49
+ #define GLFW_NULL_SC_6 13
50
+ #define GLFW_NULL_SC_7 14
51
+ #define GLFW_NULL_SC_8 15
52
+ #define GLFW_NULL_SC_9 16
53
+ #define GLFW_NULL_SC_SEMICOLON 17
54
+ #define GLFW_NULL_SC_EQUAL 18
55
+ #define GLFW_NULL_SC_LEFT_BRACKET 19
56
+ #define GLFW_NULL_SC_BACKSLASH 20
57
+ #define GLFW_NULL_SC_RIGHT_BRACKET 21
58
+ #define GLFW_NULL_SC_GRAVE_ACCENT 22
59
+ #define GLFW_NULL_SC_WORLD_1 23
60
+ #define GLFW_NULL_SC_WORLD_2 24
61
+ #define GLFW_NULL_SC_ESCAPE 25
62
+ #define GLFW_NULL_SC_ENTER 26
63
+ #define GLFW_NULL_SC_TAB 27
64
+ #define GLFW_NULL_SC_BACKSPACE 28
65
+ #define GLFW_NULL_SC_INSERT 29
66
+ #define GLFW_NULL_SC_DELETE 30
67
+ #define GLFW_NULL_SC_RIGHT 31
68
+ #define GLFW_NULL_SC_LEFT 32
69
+ #define GLFW_NULL_SC_DOWN 33
70
+ #define GLFW_NULL_SC_UP 34
71
+ #define GLFW_NULL_SC_PAGE_UP 35
72
+ #define GLFW_NULL_SC_PAGE_DOWN 36
73
+ #define GLFW_NULL_SC_HOME 37
74
+ #define GLFW_NULL_SC_END 38
75
+ #define GLFW_NULL_SC_CAPS_LOCK 39
76
+ #define GLFW_NULL_SC_SCROLL_LOCK 40
77
+ #define GLFW_NULL_SC_NUM_LOCK 41
78
+ #define GLFW_NULL_SC_PRINT_SCREEN 42
79
+ #define GLFW_NULL_SC_PAUSE 43
80
+ #define GLFW_NULL_SC_A 44
81
+ #define GLFW_NULL_SC_B 45
82
+ #define GLFW_NULL_SC_C 46
83
+ #define GLFW_NULL_SC_D 47
84
+ #define GLFW_NULL_SC_E 48
85
+ #define GLFW_NULL_SC_F 49
86
+ #define GLFW_NULL_SC_G 50
87
+ #define GLFW_NULL_SC_H 51
88
+ #define GLFW_NULL_SC_I 52
89
+ #define GLFW_NULL_SC_J 53
90
+ #define GLFW_NULL_SC_K 54
91
+ #define GLFW_NULL_SC_L 55
92
+ #define GLFW_NULL_SC_M 56
93
+ #define GLFW_NULL_SC_N 57
94
+ #define GLFW_NULL_SC_O 58
95
+ #define GLFW_NULL_SC_P 59
96
+ #define GLFW_NULL_SC_Q 60
97
+ #define GLFW_NULL_SC_R 61
98
+ #define GLFW_NULL_SC_S 62
99
+ #define GLFW_NULL_SC_T 63
100
+ #define GLFW_NULL_SC_U 64
101
+ #define GLFW_NULL_SC_V 65
102
+ #define GLFW_NULL_SC_W 66
103
+ #define GLFW_NULL_SC_X 67
104
+ #define GLFW_NULL_SC_Y 68
105
+ #define GLFW_NULL_SC_Z 69
106
+ #define GLFW_NULL_SC_F1 70
107
+ #define GLFW_NULL_SC_F2 71
108
+ #define GLFW_NULL_SC_F3 72
109
+ #define GLFW_NULL_SC_F4 73
110
+ #define GLFW_NULL_SC_F5 74
111
+ #define GLFW_NULL_SC_F6 75
112
+ #define GLFW_NULL_SC_F7 76
113
+ #define GLFW_NULL_SC_F8 77
114
+ #define GLFW_NULL_SC_F9 78
115
+ #define GLFW_NULL_SC_F10 79
116
+ #define GLFW_NULL_SC_F11 80
117
+ #define GLFW_NULL_SC_F12 81
118
+ #define GLFW_NULL_SC_F13 82
119
+ #define GLFW_NULL_SC_F14 83
120
+ #define GLFW_NULL_SC_F15 84
121
+ #define GLFW_NULL_SC_F16 85
122
+ #define GLFW_NULL_SC_F17 86
123
+ #define GLFW_NULL_SC_F18 87
124
+ #define GLFW_NULL_SC_F19 88
125
+ #define GLFW_NULL_SC_F20 89
126
+ #define GLFW_NULL_SC_F21 90
127
+ #define GLFW_NULL_SC_F22 91
128
+ #define GLFW_NULL_SC_F23 92
129
+ #define GLFW_NULL_SC_F24 93
130
+ #define GLFW_NULL_SC_F25 94
131
+ #define GLFW_NULL_SC_KP_0 95
132
+ #define GLFW_NULL_SC_KP_1 96
133
+ #define GLFW_NULL_SC_KP_2 97
134
+ #define GLFW_NULL_SC_KP_3 98
135
+ #define GLFW_NULL_SC_KP_4 99
136
+ #define GLFW_NULL_SC_KP_5 100
137
+ #define GLFW_NULL_SC_KP_6 101
138
+ #define GLFW_NULL_SC_KP_7 102
139
+ #define GLFW_NULL_SC_KP_8 103
140
+ #define GLFW_NULL_SC_KP_9 104
141
+ #define GLFW_NULL_SC_KP_DECIMAL 105
142
+ #define GLFW_NULL_SC_KP_DIVIDE 106
143
+ #define GLFW_NULL_SC_KP_MULTIPLY 107
144
+ #define GLFW_NULL_SC_KP_SUBTRACT 108
145
+ #define GLFW_NULL_SC_KP_ADD 109
146
+ #define GLFW_NULL_SC_KP_ENTER 110
147
+ #define GLFW_NULL_SC_KP_EQUAL 111
148
+ #define GLFW_NULL_SC_LEFT_SHIFT 112
149
+ #define GLFW_NULL_SC_LEFT_CONTROL 113
150
+ #define GLFW_NULL_SC_LEFT_ALT 114
151
+ #define GLFW_NULL_SC_LEFT_SUPER 115
152
+ #define GLFW_NULL_SC_RIGHT_SHIFT 116
153
+ #define GLFW_NULL_SC_RIGHT_CONTROL 117
154
+ #define GLFW_NULL_SC_RIGHT_ALT 118
155
+ #define GLFW_NULL_SC_RIGHT_SUPER 119
156
+ #define GLFW_NULL_SC_MENU 120
157
+ #define GLFW_NULL_SC_LAST GLFW_NULL_SC_MENU
158
+
159
+ // Null-specific per-window data
160
+ //
161
+ typedef struct _GLFWwindowNull
162
+ {
163
+ int xpos;
164
+ int ypos;
165
+ int width;
166
+ int height;
167
+ GLFWbool visible;
168
+ GLFWbool iconified;
169
+ GLFWbool maximized;
170
+ GLFWbool resizable;
171
+ GLFWbool decorated;
172
+ GLFWbool floating;
173
+ GLFWbool transparent;
174
+ float opacity;
175
+ } _GLFWwindowNull;
176
+
177
+ // Null-specific per-monitor data
178
+ //
179
+ typedef struct _GLFWmonitorNull
180
+ {
181
+ GLFWgammaramp ramp;
182
+ } _GLFWmonitorNull;
183
+
184
+ // Null-specific global data
185
+ //
186
+ typedef struct _GLFWlibraryNull
187
+ {
188
+ int xcursor;
189
+ int ycursor;
190
+ char* clipboardString;
191
+ _GLFWwindow* focusedWindow;
192
+ uint16_t keycodes[GLFW_NULL_SC_LAST + 1];
193
+ uint8_t scancodes[GLFW_KEY_LAST + 1];
194
+ } _GLFWlibraryNull;
195
+
196
+ void _glfwPollMonitorsNull(void);
197
+
198
+ GLFWbool _glfwConnectNull(int platformID, _GLFWplatform* platform);
199
+ int _glfwInitNull(void);
200
+ void _glfwTerminateNull(void);
201
+
202
+ void _glfwFreeMonitorNull(_GLFWmonitor* monitor);
203
+ void _glfwGetMonitorPosNull(_GLFWmonitor* monitor, int* xpos, int* ypos);
204
+ void _glfwGetMonitorContentScaleNull(_GLFWmonitor* monitor, float* xscale, float* yscale);
205
+ void _glfwGetMonitorWorkareaNull(_GLFWmonitor* monitor, int* xpos, int* ypos, int* width, int* height);
206
+ GLFWvidmode* _glfwGetVideoModesNull(_GLFWmonitor* monitor, int* found);
207
+ GLFWbool _glfwGetVideoModeNull(_GLFWmonitor* monitor, GLFWvidmode* mode);
208
+ GLFWbool _glfwGetGammaRampNull(_GLFWmonitor* monitor, GLFWgammaramp* ramp);
209
+ void _glfwSetGammaRampNull(_GLFWmonitor* monitor, const GLFWgammaramp* ramp);
210
+
211
+ GLFWbool _glfwCreateWindowNull(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig);
212
+ void _glfwDestroyWindowNull(_GLFWwindow* window);
213
+ void _glfwSetWindowTitleNull(_GLFWwindow* window, const char* title);
214
+ void _glfwSetWindowIconNull(_GLFWwindow* window, int count, const GLFWimage* images);
215
+ void _glfwSetWindowMonitorNull(_GLFWwindow* window, _GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate);
216
+ void _glfwGetWindowPosNull(_GLFWwindow* window, int* xpos, int* ypos);
217
+ void _glfwSetWindowPosNull(_GLFWwindow* window, int xpos, int ypos);
218
+ void _glfwGetWindowSizeNull(_GLFWwindow* window, int* width, int* height);
219
+ void _glfwSetWindowSizeNull(_GLFWwindow* window, int width, int height);
220
+ void _glfwSetWindowSizeLimitsNull(_GLFWwindow* window, int minwidth, int minheight, int maxwidth, int maxheight);
221
+ void _glfwSetWindowAspectRatioNull(_GLFWwindow* window, int n, int d);
222
+ void _glfwGetFramebufferSizeNull(_GLFWwindow* window, int* width, int* height);
223
+ void _glfwGetWindowFrameSizeNull(_GLFWwindow* window, int* left, int* top, int* right, int* bottom);
224
+ void _glfwGetWindowContentScaleNull(_GLFWwindow* window, float* xscale, float* yscale);
225
+ void _glfwIconifyWindowNull(_GLFWwindow* window);
226
+ void _glfwRestoreWindowNull(_GLFWwindow* window);
227
+ void _glfwMaximizeWindowNull(_GLFWwindow* window);
228
+ GLFWbool _glfwWindowMaximizedNull(_GLFWwindow* window);
229
+ GLFWbool _glfwWindowHoveredNull(_GLFWwindow* window);
230
+ GLFWbool _glfwFramebufferTransparentNull(_GLFWwindow* window);
231
+ void _glfwSetWindowResizableNull(_GLFWwindow* window, GLFWbool enabled);
232
+ void _glfwSetWindowDecoratedNull(_GLFWwindow* window, GLFWbool enabled);
233
+ void _glfwSetWindowFloatingNull(_GLFWwindow* window, GLFWbool enabled);
234
+ void _glfwSetWindowMousePassthroughNull(_GLFWwindow* window, GLFWbool enabled);
235
+ float _glfwGetWindowOpacityNull(_GLFWwindow* window);
236
+ void _glfwSetWindowOpacityNull(_GLFWwindow* window, float opacity);
237
+ void _glfwSetRawMouseMotionNull(_GLFWwindow *window, GLFWbool enabled);
238
+ GLFWbool _glfwRawMouseMotionSupportedNull(void);
239
+ void _glfwShowWindowNull(_GLFWwindow* window);
240
+ void _glfwRequestWindowAttentionNull(_GLFWwindow* window);
241
+ void _glfwHideWindowNull(_GLFWwindow* window);
242
+ void _glfwFocusWindowNull(_GLFWwindow* window);
243
+ GLFWbool _glfwWindowFocusedNull(_GLFWwindow* window);
244
+ GLFWbool _glfwWindowIconifiedNull(_GLFWwindow* window);
245
+ GLFWbool _glfwWindowVisibleNull(_GLFWwindow* window);
246
+ void _glfwPollEventsNull(void);
247
+ void _glfwWaitEventsNull(void);
248
+ void _glfwWaitEventsTimeoutNull(double timeout);
249
+ void _glfwPostEmptyEventNull(void);
250
+ void _glfwGetCursorPosNull(_GLFWwindow* window, double* xpos, double* ypos);
251
+ void _glfwSetCursorPosNull(_GLFWwindow* window, double x, double y);
252
+ void _glfwSetCursorModeNull(_GLFWwindow* window, int mode);
253
+ GLFWbool _glfwCreateCursorNull(_GLFWcursor* cursor, const GLFWimage* image, int xhot, int yhot);
254
+ GLFWbool _glfwCreateStandardCursorNull(_GLFWcursor* cursor, int shape);
255
+ void _glfwDestroyCursorNull(_GLFWcursor* cursor);
256
+ void _glfwSetCursorNull(_GLFWwindow* window, _GLFWcursor* cursor);
257
+ void _glfwSetClipboardStringNull(const char* string);
258
+ const char* _glfwGetClipboardStringNull(void);
259
+ const char* _glfwGetScancodeNameNull(int scancode);
260
+ int _glfwGetKeyScancodeNull(int key);
261
+
262
+ EGLenum _glfwGetEGLPlatformNull(EGLint** attribs);
263
+ EGLNativeDisplayType _glfwGetEGLNativeDisplayNull(void);
264
+ EGLNativeWindowType _glfwGetEGLNativeWindowNull(_GLFWwindow* window);
265
+
266
+ void _glfwGetRequiredInstanceExtensionsNull(char** extensions);
267
+ GLFWbool _glfwGetPhysicalDevicePresentationSupportNull(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily);
268
+ VkResult _glfwCreateWindowSurfaceNull(VkInstance instance, _GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface);
269
+
270
+ void _glfwPollMonitorsNull(void);
271
+