mt-lang 0.2.0 → 0.2.1

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 (189) hide show
  1. checksums.yaml +4 -4
  2. data/docs/index.html +4 -3
  3. data/lib/milk_tea/base.rb +1 -1
  4. data/std/asset_pack.mt +267 -0
  5. data/std/async/libuv_runtime.mt +539 -0
  6. data/std/async/mailbox.mt +191 -0
  7. data/std/async/runtime.mt +87 -0
  8. data/std/async.mt +87 -0
  9. data/std/base64.mt +185 -0
  10. data/std/behavior_tree.mt +396 -0
  11. data/std/binary.mt +314 -0
  12. data/std/binary_heap.mt +157 -0
  13. data/std/bitset.mt +239 -0
  14. data/std/box2d.mt +535 -0
  15. data/std/bytes.mt +46 -0
  16. data/std/c/box2d.mt +1254 -0
  17. data/std/c/cgltf.mt +647 -0
  18. data/std/c/cjson.mt +106 -0
  19. data/std/c/crypto.mt +11 -0
  20. data/std/c/crypto_support.h +51 -0
  21. data/std/c/ctype.mt +19 -0
  22. data/std/c/ctype_bindgen.h +29 -0
  23. data/std/c/curl.mt +1223 -0
  24. data/std/c/enet.mt +473 -0
  25. data/std/c/errno.mt +41 -0
  26. data/std/c/errno_bindgen.h +53 -0
  27. data/std/c/flecs.mt +2945 -0
  28. data/std/c/fs.linux.mt +43 -0
  29. data/std/c/fs.windows.mt +43 -0
  30. data/std/c/fs_support.h +954 -0
  31. data/std/c/gl.mt +2065 -0
  32. data/std/c/gl_registry_helpers.h +10748 -0
  33. data/std/c/glfw.mt +499 -0
  34. data/std/c/libc.mt +167 -0
  35. data/std/c/libuv.mt +1491 -0
  36. data/std/c/math.mt +22 -0
  37. data/std/c/math_bindgen.h +31 -0
  38. data/std/c/miniaudio.mt +3420 -0
  39. data/std/c/pcre2.mt +735 -0
  40. data/std/c/process.mt +58 -0
  41. data/std/c/process_support.h +1147 -0
  42. data/std/c/raygui.mt +1602 -0
  43. data/std/c/raylib.mt +1245 -0
  44. data/std/c/raymath.mt +163 -0
  45. data/std/c/rlgl.mt +434 -0
  46. data/std/c/rpng.mt +60 -0
  47. data/std/c/rres.mt +187 -0
  48. data/std/c/sdl3.mt +4132 -0
  49. data/std/c/sqlite3.mt +951 -0
  50. data/std/c/stb_image.mt +52 -0
  51. data/std/c/stb_image_resize2.mt +128 -0
  52. data/std/c/stb_image_write.mt +19 -0
  53. data/std/c/stb_rect_pack.mt +38 -0
  54. data/std/c/stb_truetype.mt +175 -0
  55. data/std/c/stb_vorbis.mt +31 -0
  56. data/std/c/stdio.mt +90 -0
  57. data/std/c/steamworks.h +5769 -0
  58. data/std/c/steamworks.mt +4771 -0
  59. data/std/c/string.mt +16 -0
  60. data/std/c/string_bindgen.h +36 -0
  61. data/std/c/sync.mt +33 -0
  62. data/std/c/sync_support.h +219 -0
  63. data/std/c/terminal.mt +24 -0
  64. data/std/c/terminal_support.h +408 -0
  65. data/std/c/time.mt +26 -0
  66. data/std/c/tls.mt +24 -0
  67. data/std/c/tls_support.h +626 -0
  68. data/std/c/tracy.mt +53 -0
  69. data/std/c/zlib.mt +20 -0
  70. data/std/c/zlib_support.h +239 -0
  71. data/std/c/zstd.mt +231 -0
  72. data/std/cell.mt +60 -0
  73. data/std/cgltf.mt +115 -0
  74. data/std/cjson.mt +90 -0
  75. data/std/cli.mt +768 -0
  76. data/std/cookie.mt +198 -0
  77. data/std/counter.mt +160 -0
  78. data/std/crypto.mt +74 -0
  79. data/std/cstring.mt +13 -0
  80. data/std/ctype.mt +52 -0
  81. data/std/curl/runtime.mt +261 -0
  82. data/std/curl.mt +38 -0
  83. data/std/deque.mt +348 -0
  84. data/std/encoding.mt +93 -0
  85. data/std/enet.mt +133 -0
  86. data/std/env.mt +41 -0
  87. data/std/errno.mt +47 -0
  88. data/std/flecs.mt +978 -0
  89. data/std/fmt.mt +271 -0
  90. data/std/fs.linux.mt +696 -0
  91. data/std/fs.windows.mt +711 -0
  92. data/std/fsm.mt +267 -0
  93. data/std/gl.mt +2062 -0
  94. data/std/glfw.mt +471 -0
  95. data/std/goap.mt +342 -0
  96. data/std/graph.mt +521 -0
  97. data/std/gzip.mt +77 -0
  98. data/std/hash.mt +429 -0
  99. data/std/http/server.mt +810 -0
  100. data/std/http.mt +1227 -0
  101. data/std/intern.mt +53 -0
  102. data/std/jobs.mt +288 -0
  103. data/std/json.mt +627 -0
  104. data/std/libc.mt +34 -0
  105. data/std/libuv.mt +554 -0
  106. data/std/linear_algebra.mt +243 -0
  107. data/std/linked_map.mt +372 -0
  108. data/std/linked_map_view.mt +49 -0
  109. data/std/linked_set.mt +117 -0
  110. data/std/log.mt +69 -0
  111. data/std/map.mt +418 -0
  112. data/std/math.mt +24 -0
  113. data/std/mem/arena.mt +137 -0
  114. data/std/mem/endian.mt +51 -0
  115. data/std/mem/heap.mt +298 -0
  116. data/std/mem/pool.mt +164 -0
  117. data/std/mem/stack.mt +47 -0
  118. data/std/mem/tracking.mt +119 -0
  119. data/std/miniaudio.mt +1299 -0
  120. data/std/multiset.mt +191 -0
  121. data/std/net/channel.mt +727 -0
  122. data/std/net/clock.mt +237 -0
  123. data/std/net/discovery.mt +277 -0
  124. data/std/net/lobby.mt +813 -0
  125. data/std/net/manager.mt +539 -0
  126. data/std/net/mux.mt +839 -0
  127. data/std/net/nat.mt +122 -0
  128. data/std/net/packet.mt +219 -0
  129. data/std/net/punch.mt +162 -0
  130. data/std/net/rpc.mt +119 -0
  131. data/std/net/session.mt +1157 -0
  132. data/std/net/stun.mt +252 -0
  133. data/std/net/sync.mt +183 -0
  134. data/std/net/turn.mt +459 -0
  135. data/std/net.mt +2944 -0
  136. data/std/oauth2.mt +408 -0
  137. data/std/option.mt +51 -0
  138. data/std/ordered_map.mt +497 -0
  139. data/std/ordered_set.mt +348 -0
  140. data/std/path.mt +368 -0
  141. data/std/pcre2/runtime.mt +35 -0
  142. data/std/pcre2.mt +78 -0
  143. data/std/priority_queue.mt +55 -0
  144. data/std/process.mt +837 -0
  145. data/std/queue.mt +55 -0
  146. data/std/random.mt +146 -0
  147. data/std/raygui.mt +99 -0
  148. data/std/raylib/debug_console.mt +71 -0
  149. data/std/raylib/easing.mt +388 -0
  150. data/std/raylib/packed_assets.mt +255 -0
  151. data/std/raylib/runtime.mt +30 -0
  152. data/std/raylib/tracy_gpu.mt +37 -0
  153. data/std/raylib.mt +1510 -0
  154. data/std/raymath.mt +153 -0
  155. data/std/result.mt +89 -0
  156. data/std/rlgl.mt +268 -0
  157. data/std/rpng.mt +46 -0
  158. data/std/rres.mt +36 -0
  159. data/std/sdl3/runtime.mt +54 -0
  160. data/std/sdl3.mt +1731 -0
  161. data/std/serialize.mt +68 -0
  162. data/std/set.mt +124 -0
  163. data/std/spatial.mt +176 -0
  164. data/std/sqlite3.mt +151 -0
  165. data/std/stack.mt +55 -0
  166. data/std/stb_image.mt +47 -0
  167. data/std/stb_image_resize2.mt +41 -0
  168. data/std/stb_image_write.mt +17 -0
  169. data/std/stb_rect_pack.mt +15 -0
  170. data/std/stb_truetype.mt +77 -0
  171. data/std/stb_vorbis.mt +16 -0
  172. data/std/stdio.mt +88 -0
  173. data/std/steamworks.mt +1542 -0
  174. data/std/str.mt +293 -0
  175. data/std/string.mt +234 -0
  176. data/std/sync.mt +194 -0
  177. data/std/tar.mt +704 -0
  178. data/std/terminal.mt +1002 -0
  179. data/std/testing.mt +266 -0
  180. data/std/thread.mt +120 -0
  181. data/std/time.mt +105 -0
  182. data/std/tls.mt +616 -0
  183. data/std/toml.mt +1310 -0
  184. data/std/tracy.mt +42 -0
  185. data/std/uri.mt +118 -0
  186. data/std/url.mt +372 -0
  187. data/std/vec.mt +433 -0
  188. data/std/zstd.mt +94 -0
  189. metadata +187 -2
data/std/glfw.mt ADDED
@@ -0,0 +1,471 @@
1
+ # generated by mtc imported-bindings from std.c.glfw using bindings/imported/glfw.binding.json
2
+
3
+ import std.c.glfw as c
4
+
5
+ public type GLProc = c.GLFWglproc
6
+ public type VKProc = c.GLFWvkproc
7
+ public opaque Monitor = c"GLFWmonitor"
8
+ public opaque Window = c"GLFWwindow"
9
+ public opaque Cursor = c"GLFWcursor"
10
+ public type AllocateCallback = c.GLFWallocatefun
11
+ public type ReallocateCallback = c.GLFWreallocatefun
12
+ public type DeallocateCallback = c.GLFWdeallocatefun
13
+ public type ErrorCallback = c.GLFWerrorfun
14
+ public type WindowPosCallback = c.GLFWwindowposfun
15
+ public type WindowSizeCallback = c.GLFWwindowsizefun
16
+ public type WindowCloseCallback = c.GLFWwindowclosefun
17
+ public type WindowRefreshCallback = c.GLFWwindowrefreshfun
18
+ public type WindowFocusCallback = c.GLFWwindowfocusfun
19
+ public type WindowIconifyCallback = c.GLFWwindowiconifyfun
20
+ public type WindowMaximizeCallback = c.GLFWwindowmaximizefun
21
+ public type FramebufferSizeCallback = c.GLFWframebuffersizefun
22
+ public type WindowContentScaleCallback = c.GLFWwindowcontentscalefun
23
+ public type MouseButtonCallback = c.GLFWmousebuttonfun
24
+ public type CursorPosCallback = c.GLFWcursorposfun
25
+ public type CursorEnterCallback = c.GLFWcursorenterfun
26
+ public type ScrollCallback = c.GLFWscrollfun
27
+ public type KeyCallback = c.GLFWkeyfun
28
+ public type CharCallback = c.GLFWcharfun
29
+ public type CharModsCallback = c.GLFWcharmodsfun
30
+ public type DropCallback = c.GLFWdropfun
31
+ public type MonitorCallback = c.GLFWmonitorfun
32
+ public type JoystickCallback = c.GLFWjoystickfun
33
+ public type VideoMode = c.GLFWvidmode
34
+ public type GammaRamp = c.GLFWgammaramp
35
+ public type Image = c.GLFWimage
36
+ public type GamepadState = c.GLFWgamepadstate
37
+ public type Allocator = c.GLFWallocator
38
+
39
+ public const VERSION_MAJOR: int = c.GLFW_VERSION_MAJOR
40
+ public const VERSION_MINOR: int = c.GLFW_VERSION_MINOR
41
+ public const VERSION_REVISION: int = c.GLFW_VERSION_REVISION
42
+ public const TRUE: int = c.GLFW_TRUE
43
+ public const FALSE: int = c.GLFW_FALSE
44
+ public const RELEASE: int = c.GLFW_RELEASE
45
+ public const PRESS: int = c.GLFW_PRESS
46
+ public const REPEAT: int = c.GLFW_REPEAT
47
+ public const HAT_CENTERED: int = c.GLFW_HAT_CENTERED
48
+ public const HAT_UP: int = c.GLFW_HAT_UP
49
+ public const HAT_RIGHT: int = c.GLFW_HAT_RIGHT
50
+ public const HAT_DOWN: int = c.GLFW_HAT_DOWN
51
+ public const HAT_LEFT: int = c.GLFW_HAT_LEFT
52
+ public const KEY_UNKNOWN: int = c.GLFW_KEY_UNKNOWN
53
+ public const KEY_SPACE: int = c.GLFW_KEY_SPACE
54
+ public const KEY_APOSTROPHE: int = c.GLFW_KEY_APOSTROPHE
55
+ public const KEY_COMMA: int = c.GLFW_KEY_COMMA
56
+ public const KEY_MINUS: int = c.GLFW_KEY_MINUS
57
+ public const KEY_PERIOD: int = c.GLFW_KEY_PERIOD
58
+ public const KEY_SLASH: int = c.GLFW_KEY_SLASH
59
+ public const KEY_0: int = c.GLFW_KEY_0
60
+ public const KEY_1: int = c.GLFW_KEY_1
61
+ public const KEY_2: int = c.GLFW_KEY_2
62
+ public const KEY_3: int = c.GLFW_KEY_3
63
+ public const KEY_4: int = c.GLFW_KEY_4
64
+ public const KEY_5: int = c.GLFW_KEY_5
65
+ public const KEY_6: int = c.GLFW_KEY_6
66
+ public const KEY_7: int = c.GLFW_KEY_7
67
+ public const KEY_8: int = c.GLFW_KEY_8
68
+ public const KEY_9: int = c.GLFW_KEY_9
69
+ public const KEY_SEMICOLON: int = c.GLFW_KEY_SEMICOLON
70
+ public const KEY_EQUAL: int = c.GLFW_KEY_EQUAL
71
+ public const KEY_A: int = c.GLFW_KEY_A
72
+ public const KEY_B: int = c.GLFW_KEY_B
73
+ public const KEY_C: int = c.GLFW_KEY_C
74
+ public const KEY_D: int = c.GLFW_KEY_D
75
+ public const KEY_E: int = c.GLFW_KEY_E
76
+ public const KEY_F: int = c.GLFW_KEY_F
77
+ public const KEY_G: int = c.GLFW_KEY_G
78
+ public const KEY_H: int = c.GLFW_KEY_H
79
+ public const KEY_I: int = c.GLFW_KEY_I
80
+ public const KEY_J: int = c.GLFW_KEY_J
81
+ public const KEY_K: int = c.GLFW_KEY_K
82
+ public const KEY_L: int = c.GLFW_KEY_L
83
+ public const KEY_M: int = c.GLFW_KEY_M
84
+ public const KEY_N: int = c.GLFW_KEY_N
85
+ public const KEY_O: int = c.GLFW_KEY_O
86
+ public const KEY_P: int = c.GLFW_KEY_P
87
+ public const KEY_Q: int = c.GLFW_KEY_Q
88
+ public const KEY_R: int = c.GLFW_KEY_R
89
+ public const KEY_S: int = c.GLFW_KEY_S
90
+ public const KEY_T: int = c.GLFW_KEY_T
91
+ public const KEY_U: int = c.GLFW_KEY_U
92
+ public const KEY_V: int = c.GLFW_KEY_V
93
+ public const KEY_W: int = c.GLFW_KEY_W
94
+ public const KEY_X: int = c.GLFW_KEY_X
95
+ public const KEY_Y: int = c.GLFW_KEY_Y
96
+ public const KEY_Z: int = c.GLFW_KEY_Z
97
+ public const KEY_LEFT_BRACKET: int = c.GLFW_KEY_LEFT_BRACKET
98
+ public const KEY_BACKSLASH: int = c.GLFW_KEY_BACKSLASH
99
+ public const KEY_RIGHT_BRACKET: int = c.GLFW_KEY_RIGHT_BRACKET
100
+ public const KEY_GRAVE_ACCENT: int = c.GLFW_KEY_GRAVE_ACCENT
101
+ public const KEY_WORLD_1: int = c.GLFW_KEY_WORLD_1
102
+ public const KEY_WORLD_2: int = c.GLFW_KEY_WORLD_2
103
+ public const KEY_ESCAPE: int = c.GLFW_KEY_ESCAPE
104
+ public const KEY_ENTER: int = c.GLFW_KEY_ENTER
105
+ public const KEY_TAB: int = c.GLFW_KEY_TAB
106
+ public const KEY_BACKSPACE: int = c.GLFW_KEY_BACKSPACE
107
+ public const KEY_INSERT: int = c.GLFW_KEY_INSERT
108
+ public const KEY_DELETE: int = c.GLFW_KEY_DELETE
109
+ public const KEY_RIGHT: int = c.GLFW_KEY_RIGHT
110
+ public const KEY_LEFT: int = c.GLFW_KEY_LEFT
111
+ public const KEY_DOWN: int = c.GLFW_KEY_DOWN
112
+ public const KEY_UP: int = c.GLFW_KEY_UP
113
+ public const KEY_PAGE_UP: int = c.GLFW_KEY_PAGE_UP
114
+ public const KEY_PAGE_DOWN: int = c.GLFW_KEY_PAGE_DOWN
115
+ public const KEY_HOME: int = c.GLFW_KEY_HOME
116
+ public const KEY_END: int = c.GLFW_KEY_END
117
+ public const KEY_CAPS_LOCK: int = c.GLFW_KEY_CAPS_LOCK
118
+ public const KEY_SCROLL_LOCK: int = c.GLFW_KEY_SCROLL_LOCK
119
+ public const KEY_NUM_LOCK: int = c.GLFW_KEY_NUM_LOCK
120
+ public const KEY_PRINT_SCREEN: int = c.GLFW_KEY_PRINT_SCREEN
121
+ public const KEY_PAUSE: int = c.GLFW_KEY_PAUSE
122
+ public const KEY_F1: int = c.GLFW_KEY_F1
123
+ public const KEY_F2: int = c.GLFW_KEY_F2
124
+ public const KEY_F3: int = c.GLFW_KEY_F3
125
+ public const KEY_F4: int = c.GLFW_KEY_F4
126
+ public const KEY_F5: int = c.GLFW_KEY_F5
127
+ public const KEY_F6: int = c.GLFW_KEY_F6
128
+ public const KEY_F7: int = c.GLFW_KEY_F7
129
+ public const KEY_F8: int = c.GLFW_KEY_F8
130
+ public const KEY_F9: int = c.GLFW_KEY_F9
131
+ public const KEY_F10: int = c.GLFW_KEY_F10
132
+ public const KEY_F11: int = c.GLFW_KEY_F11
133
+ public const KEY_F12: int = c.GLFW_KEY_F12
134
+ public const KEY_F13: int = c.GLFW_KEY_F13
135
+ public const KEY_F14: int = c.GLFW_KEY_F14
136
+ public const KEY_F15: int = c.GLFW_KEY_F15
137
+ public const KEY_F16: int = c.GLFW_KEY_F16
138
+ public const KEY_F17: int = c.GLFW_KEY_F17
139
+ public const KEY_F18: int = c.GLFW_KEY_F18
140
+ public const KEY_F19: int = c.GLFW_KEY_F19
141
+ public const KEY_F20: int = c.GLFW_KEY_F20
142
+ public const KEY_F21: int = c.GLFW_KEY_F21
143
+ public const KEY_F22: int = c.GLFW_KEY_F22
144
+ public const KEY_F23: int = c.GLFW_KEY_F23
145
+ public const KEY_F24: int = c.GLFW_KEY_F24
146
+ public const KEY_F25: int = c.GLFW_KEY_F25
147
+ public const KEY_KP_0: int = c.GLFW_KEY_KP_0
148
+ public const KEY_KP_1: int = c.GLFW_KEY_KP_1
149
+ public const KEY_KP_2: int = c.GLFW_KEY_KP_2
150
+ public const KEY_KP_3: int = c.GLFW_KEY_KP_3
151
+ public const KEY_KP_4: int = c.GLFW_KEY_KP_4
152
+ public const KEY_KP_5: int = c.GLFW_KEY_KP_5
153
+ public const KEY_KP_6: int = c.GLFW_KEY_KP_6
154
+ public const KEY_KP_7: int = c.GLFW_KEY_KP_7
155
+ public const KEY_KP_8: int = c.GLFW_KEY_KP_8
156
+ public const KEY_KP_9: int = c.GLFW_KEY_KP_9
157
+ public const KEY_KP_DECIMAL: int = c.GLFW_KEY_KP_DECIMAL
158
+ public const KEY_KP_DIVIDE: int = c.GLFW_KEY_KP_DIVIDE
159
+ public const KEY_KP_MULTIPLY: int = c.GLFW_KEY_KP_MULTIPLY
160
+ public const KEY_KP_SUBTRACT: int = c.GLFW_KEY_KP_SUBTRACT
161
+ public const KEY_KP_ADD: int = c.GLFW_KEY_KP_ADD
162
+ public const KEY_KP_ENTER: int = c.GLFW_KEY_KP_ENTER
163
+ public const KEY_KP_EQUAL: int = c.GLFW_KEY_KP_EQUAL
164
+ public const KEY_LEFT_SHIFT: int = c.GLFW_KEY_LEFT_SHIFT
165
+ public const KEY_LEFT_CONTROL: int = c.GLFW_KEY_LEFT_CONTROL
166
+ public const KEY_LEFT_ALT: int = c.GLFW_KEY_LEFT_ALT
167
+ public const KEY_LEFT_SUPER: int = c.GLFW_KEY_LEFT_SUPER
168
+ public const KEY_RIGHT_SHIFT: int = c.GLFW_KEY_RIGHT_SHIFT
169
+ public const KEY_RIGHT_CONTROL: int = c.GLFW_KEY_RIGHT_CONTROL
170
+ public const KEY_RIGHT_ALT: int = c.GLFW_KEY_RIGHT_ALT
171
+ public const KEY_RIGHT_SUPER: int = c.GLFW_KEY_RIGHT_SUPER
172
+ public const KEY_MENU: int = c.GLFW_KEY_MENU
173
+ public const MOD_SHIFT: int = c.GLFW_MOD_SHIFT
174
+ public const MOD_CONTROL: int = c.GLFW_MOD_CONTROL
175
+ public const MOD_ALT: int = c.GLFW_MOD_ALT
176
+ public const MOD_SUPER: int = c.GLFW_MOD_SUPER
177
+ public const MOD_CAPS_LOCK: int = c.GLFW_MOD_CAPS_LOCK
178
+ public const MOD_NUM_LOCK: int = c.GLFW_MOD_NUM_LOCK
179
+ public const MOUSE_BUTTON_1: int = c.GLFW_MOUSE_BUTTON_1
180
+ public const MOUSE_BUTTON_2: int = c.GLFW_MOUSE_BUTTON_2
181
+ public const MOUSE_BUTTON_3: int = c.GLFW_MOUSE_BUTTON_3
182
+ public const MOUSE_BUTTON_4: int = c.GLFW_MOUSE_BUTTON_4
183
+ public const MOUSE_BUTTON_5: int = c.GLFW_MOUSE_BUTTON_5
184
+ public const MOUSE_BUTTON_6: int = c.GLFW_MOUSE_BUTTON_6
185
+ public const MOUSE_BUTTON_7: int = c.GLFW_MOUSE_BUTTON_7
186
+ public const MOUSE_BUTTON_8: int = c.GLFW_MOUSE_BUTTON_8
187
+ public const JOYSTICK_1: int = c.GLFW_JOYSTICK_1
188
+ public const JOYSTICK_2: int = c.GLFW_JOYSTICK_2
189
+ public const JOYSTICK_3: int = c.GLFW_JOYSTICK_3
190
+ public const JOYSTICK_4: int = c.GLFW_JOYSTICK_4
191
+ public const JOYSTICK_5: int = c.GLFW_JOYSTICK_5
192
+ public const JOYSTICK_6: int = c.GLFW_JOYSTICK_6
193
+ public const JOYSTICK_7: int = c.GLFW_JOYSTICK_7
194
+ public const JOYSTICK_8: int = c.GLFW_JOYSTICK_8
195
+ public const JOYSTICK_9: int = c.GLFW_JOYSTICK_9
196
+ public const JOYSTICK_10: int = c.GLFW_JOYSTICK_10
197
+ public const JOYSTICK_11: int = c.GLFW_JOYSTICK_11
198
+ public const JOYSTICK_12: int = c.GLFW_JOYSTICK_12
199
+ public const JOYSTICK_13: int = c.GLFW_JOYSTICK_13
200
+ public const JOYSTICK_14: int = c.GLFW_JOYSTICK_14
201
+ public const JOYSTICK_15: int = c.GLFW_JOYSTICK_15
202
+ public const JOYSTICK_16: int = c.GLFW_JOYSTICK_16
203
+ public const GAMEPAD_BUTTON_A: int = c.GLFW_GAMEPAD_BUTTON_A
204
+ public const GAMEPAD_BUTTON_B: int = c.GLFW_GAMEPAD_BUTTON_B
205
+ public const GAMEPAD_BUTTON_X: int = c.GLFW_GAMEPAD_BUTTON_X
206
+ public const GAMEPAD_BUTTON_Y: int = c.GLFW_GAMEPAD_BUTTON_Y
207
+ public const GAMEPAD_BUTTON_LEFT_BUMPER: int = c.GLFW_GAMEPAD_BUTTON_LEFT_BUMPER
208
+ public const GAMEPAD_BUTTON_RIGHT_BUMPER: int = c.GLFW_GAMEPAD_BUTTON_RIGHT_BUMPER
209
+ public const GAMEPAD_BUTTON_BACK: int = c.GLFW_GAMEPAD_BUTTON_BACK
210
+ public const GAMEPAD_BUTTON_START: int = c.GLFW_GAMEPAD_BUTTON_START
211
+ public const GAMEPAD_BUTTON_GUIDE: int = c.GLFW_GAMEPAD_BUTTON_GUIDE
212
+ public const GAMEPAD_BUTTON_LEFT_THUMB: int = c.GLFW_GAMEPAD_BUTTON_LEFT_THUMB
213
+ public const GAMEPAD_BUTTON_RIGHT_THUMB: int = c.GLFW_GAMEPAD_BUTTON_RIGHT_THUMB
214
+ public const GAMEPAD_BUTTON_DPAD_UP: int = c.GLFW_GAMEPAD_BUTTON_DPAD_UP
215
+ public const GAMEPAD_BUTTON_DPAD_RIGHT: int = c.GLFW_GAMEPAD_BUTTON_DPAD_RIGHT
216
+ public const GAMEPAD_BUTTON_DPAD_DOWN: int = c.GLFW_GAMEPAD_BUTTON_DPAD_DOWN
217
+ public const GAMEPAD_BUTTON_DPAD_LEFT: int = c.GLFW_GAMEPAD_BUTTON_DPAD_LEFT
218
+ public const GAMEPAD_AXIS_LEFT_X: int = c.GLFW_GAMEPAD_AXIS_LEFT_X
219
+ public const GAMEPAD_AXIS_LEFT_Y: int = c.GLFW_GAMEPAD_AXIS_LEFT_Y
220
+ public const GAMEPAD_AXIS_RIGHT_X: int = c.GLFW_GAMEPAD_AXIS_RIGHT_X
221
+ public const GAMEPAD_AXIS_RIGHT_Y: int = c.GLFW_GAMEPAD_AXIS_RIGHT_Y
222
+ public const GAMEPAD_AXIS_LEFT_TRIGGER: int = c.GLFW_GAMEPAD_AXIS_LEFT_TRIGGER
223
+ public const GAMEPAD_AXIS_RIGHT_TRIGGER: int = c.GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER
224
+ public const NO_ERROR: int = c.GLFW_NO_ERROR
225
+ public const NOT_INITIALIZED: int = c.GLFW_NOT_INITIALIZED
226
+ public const NO_CURRENT_CONTEXT: int = c.GLFW_NO_CURRENT_CONTEXT
227
+ public const INVALID_ENUM: int = c.GLFW_INVALID_ENUM
228
+ public const INVALID_VALUE: int = c.GLFW_INVALID_VALUE
229
+ public const OUT_OF_MEMORY: int = c.GLFW_OUT_OF_MEMORY
230
+ public const API_UNAVAILABLE: int = c.GLFW_API_UNAVAILABLE
231
+ public const VERSION_UNAVAILABLE: int = c.GLFW_VERSION_UNAVAILABLE
232
+ public const PLATFORM_ERROR: int = c.GLFW_PLATFORM_ERROR
233
+ public const FORMAT_UNAVAILABLE: int = c.GLFW_FORMAT_UNAVAILABLE
234
+ public const NO_WINDOW_CONTEXT: int = c.GLFW_NO_WINDOW_CONTEXT
235
+ public const CURSOR_UNAVAILABLE: int = c.GLFW_CURSOR_UNAVAILABLE
236
+ public const FEATURE_UNAVAILABLE: int = c.GLFW_FEATURE_UNAVAILABLE
237
+ public const FEATURE_UNIMPLEMENTED: int = c.GLFW_FEATURE_UNIMPLEMENTED
238
+ public const PLATFORM_UNAVAILABLE: int = c.GLFW_PLATFORM_UNAVAILABLE
239
+ public const FOCUSED: int = c.GLFW_FOCUSED
240
+ public const ICONIFIED: int = c.GLFW_ICONIFIED
241
+ public const RESIZABLE: int = c.GLFW_RESIZABLE
242
+ public const VISIBLE: int = c.GLFW_VISIBLE
243
+ public const DECORATED: int = c.GLFW_DECORATED
244
+ public const AUTO_ICONIFY: int = c.GLFW_AUTO_ICONIFY
245
+ public const FLOATING: int = c.GLFW_FLOATING
246
+ public const MAXIMIZED: int = c.GLFW_MAXIMIZED
247
+ public const CENTER_CURSOR: int = c.GLFW_CENTER_CURSOR
248
+ public const TRANSPARENT_FRAMEBUFFER: int = c.GLFW_TRANSPARENT_FRAMEBUFFER
249
+ public const HOVERED: int = c.GLFW_HOVERED
250
+ public const FOCUS_ON_SHOW: int = c.GLFW_FOCUS_ON_SHOW
251
+ public const MOUSE_PASSTHROUGH: int = c.GLFW_MOUSE_PASSTHROUGH
252
+ public const POSITION_X: int = c.GLFW_POSITION_X
253
+ public const POSITION_Y: int = c.GLFW_POSITION_Y
254
+ public const RED_BITS: int = c.GLFW_RED_BITS
255
+ public const GREEN_BITS: int = c.GLFW_GREEN_BITS
256
+ public const BLUE_BITS: int = c.GLFW_BLUE_BITS
257
+ public const ALPHA_BITS: int = c.GLFW_ALPHA_BITS
258
+ public const DEPTH_BITS: int = c.GLFW_DEPTH_BITS
259
+ public const STENCIL_BITS: int = c.GLFW_STENCIL_BITS
260
+ public const ACCUM_RED_BITS: int = c.GLFW_ACCUM_RED_BITS
261
+ public const ACCUM_GREEN_BITS: int = c.GLFW_ACCUM_GREEN_BITS
262
+ public const ACCUM_BLUE_BITS: int = c.GLFW_ACCUM_BLUE_BITS
263
+ public const ACCUM_ALPHA_BITS: int = c.GLFW_ACCUM_ALPHA_BITS
264
+ public const AUX_BUFFERS: int = c.GLFW_AUX_BUFFERS
265
+ public const STEREO: int = c.GLFW_STEREO
266
+ public const SAMPLES: int = c.GLFW_SAMPLES
267
+ public const SRGB_CAPABLE: int = c.GLFW_SRGB_CAPABLE
268
+ public const REFRESH_RATE: int = c.GLFW_REFRESH_RATE
269
+ public const DOUBLEBUFFER: int = c.GLFW_DOUBLEBUFFER
270
+ public const CLIENT_API: int = c.GLFW_CLIENT_API
271
+ public const CONTEXT_VERSION_MAJOR: int = c.GLFW_CONTEXT_VERSION_MAJOR
272
+ public const CONTEXT_VERSION_MINOR: int = c.GLFW_CONTEXT_VERSION_MINOR
273
+ public const CONTEXT_REVISION: int = c.GLFW_CONTEXT_REVISION
274
+ public const CONTEXT_ROBUSTNESS: int = c.GLFW_CONTEXT_ROBUSTNESS
275
+ public const OPENGL_FORWARD_COMPAT: int = c.GLFW_OPENGL_FORWARD_COMPAT
276
+ public const CONTEXT_DEBUG: int = c.GLFW_CONTEXT_DEBUG
277
+ public const OPENGL_PROFILE: int = c.GLFW_OPENGL_PROFILE
278
+ public const CONTEXT_RELEASE_BEHAVIOR: int = c.GLFW_CONTEXT_RELEASE_BEHAVIOR
279
+ public const CONTEXT_NO_ERROR: int = c.GLFW_CONTEXT_NO_ERROR
280
+ public const CONTEXT_CREATION_API: int = c.GLFW_CONTEXT_CREATION_API
281
+ public const SCALE_TO_MONITOR: int = c.GLFW_SCALE_TO_MONITOR
282
+ public const SCALE_FRAMEBUFFER: int = c.GLFW_SCALE_FRAMEBUFFER
283
+ public const COCOA_RETINA_FRAMEBUFFER: int = c.GLFW_COCOA_RETINA_FRAMEBUFFER
284
+ public const COCOA_FRAME_NAME: int = c.GLFW_COCOA_FRAME_NAME
285
+ public const COCOA_GRAPHICS_SWITCHING: int = c.GLFW_COCOA_GRAPHICS_SWITCHING
286
+ public const X11_CLASS_NAME: int = c.GLFW_X11_CLASS_NAME
287
+ public const X11_INSTANCE_NAME: int = c.GLFW_X11_INSTANCE_NAME
288
+ public const WIN32_KEYBOARD_MENU: int = c.GLFW_WIN32_KEYBOARD_MENU
289
+ public const WIN32_SHOWDEFAULT: int = c.GLFW_WIN32_SHOWDEFAULT
290
+ public const WAYLAND_APP_ID: int = c.GLFW_WAYLAND_APP_ID
291
+ public const NO_API: int = c.GLFW_NO_API
292
+ public const OPENGL_API: int = c.GLFW_OPENGL_API
293
+ public const OPENGL_ES_API: int = c.GLFW_OPENGL_ES_API
294
+ public const NO_ROBUSTNESS: int = c.GLFW_NO_ROBUSTNESS
295
+ public const NO_RESET_NOTIFICATION: int = c.GLFW_NO_RESET_NOTIFICATION
296
+ public const LOSE_CONTEXT_ON_RESET: int = c.GLFW_LOSE_CONTEXT_ON_RESET
297
+ public const OPENGL_ANY_PROFILE: int = c.GLFW_OPENGL_ANY_PROFILE
298
+ public const OPENGL_CORE_PROFILE: int = c.GLFW_OPENGL_CORE_PROFILE
299
+ public const OPENGL_COMPAT_PROFILE: int = c.GLFW_OPENGL_COMPAT_PROFILE
300
+ public const CURSOR: int = c.GLFW_CURSOR
301
+ public const STICKY_KEYS: int = c.GLFW_STICKY_KEYS
302
+ public const STICKY_MOUSE_BUTTONS: int = c.GLFW_STICKY_MOUSE_BUTTONS
303
+ public const LOCK_KEY_MODS: int = c.GLFW_LOCK_KEY_MODS
304
+ public const RAW_MOUSE_MOTION: int = c.GLFW_RAW_MOUSE_MOTION
305
+ public const CURSOR_NORMAL: int = c.GLFW_CURSOR_NORMAL
306
+ public const CURSOR_HIDDEN: int = c.GLFW_CURSOR_HIDDEN
307
+ public const CURSOR_DISABLED: int = c.GLFW_CURSOR_DISABLED
308
+ public const CURSOR_CAPTURED: int = c.GLFW_CURSOR_CAPTURED
309
+ public const ANY_RELEASE_BEHAVIOR: int = c.GLFW_ANY_RELEASE_BEHAVIOR
310
+ public const RELEASE_BEHAVIOR_FLUSH: int = c.GLFW_RELEASE_BEHAVIOR_FLUSH
311
+ public const RELEASE_BEHAVIOR_NONE: int = c.GLFW_RELEASE_BEHAVIOR_NONE
312
+ public const NATIVE_CONTEXT_API: int = c.GLFW_NATIVE_CONTEXT_API
313
+ public const EGL_CONTEXT_API: int = c.GLFW_EGL_CONTEXT_API
314
+ public const OSMESA_CONTEXT_API: int = c.GLFW_OSMESA_CONTEXT_API
315
+ public const ANGLE_PLATFORM_TYPE_NONE: int = c.GLFW_ANGLE_PLATFORM_TYPE_NONE
316
+ public const ANGLE_PLATFORM_TYPE_OPENGL: int = c.GLFW_ANGLE_PLATFORM_TYPE_OPENGL
317
+ public const ANGLE_PLATFORM_TYPE_OPENGLES: int = c.GLFW_ANGLE_PLATFORM_TYPE_OPENGLES
318
+ public const ANGLE_PLATFORM_TYPE_D3D9: int = c.GLFW_ANGLE_PLATFORM_TYPE_D3D9
319
+ public const ANGLE_PLATFORM_TYPE_D3D11: int = c.GLFW_ANGLE_PLATFORM_TYPE_D3D11
320
+ public const ANGLE_PLATFORM_TYPE_VULKAN: int = c.GLFW_ANGLE_PLATFORM_TYPE_VULKAN
321
+ public const ANGLE_PLATFORM_TYPE_METAL: int = c.GLFW_ANGLE_PLATFORM_TYPE_METAL
322
+ public const WAYLAND_PREFER_LIBDECOR: int = c.GLFW_WAYLAND_PREFER_LIBDECOR
323
+ public const WAYLAND_DISABLE_LIBDECOR: int = c.GLFW_WAYLAND_DISABLE_LIBDECOR
324
+ public const ANY_POSITION: uint = c.GLFW_ANY_POSITION
325
+ public const ARROW_CURSOR: int = c.GLFW_ARROW_CURSOR
326
+ public const IBEAM_CURSOR: int = c.GLFW_IBEAM_CURSOR
327
+ public const CROSSHAIR_CURSOR: int = c.GLFW_CROSSHAIR_CURSOR
328
+ public const POINTING_HAND_CURSOR: int = c.GLFW_POINTING_HAND_CURSOR
329
+ public const RESIZE_EW_CURSOR: int = c.GLFW_RESIZE_EW_CURSOR
330
+ public const RESIZE_NS_CURSOR: int = c.GLFW_RESIZE_NS_CURSOR
331
+ public const RESIZE_NWSE_CURSOR: int = c.GLFW_RESIZE_NWSE_CURSOR
332
+ public const RESIZE_NESW_CURSOR: int = c.GLFW_RESIZE_NESW_CURSOR
333
+ public const RESIZE_ALL_CURSOR: int = c.GLFW_RESIZE_ALL_CURSOR
334
+ public const NOT_ALLOWED_CURSOR: int = c.GLFW_NOT_ALLOWED_CURSOR
335
+ public const CONNECTED: int = c.GLFW_CONNECTED
336
+ public const DISCONNECTED: int = c.GLFW_DISCONNECTED
337
+ public const JOYSTICK_HAT_BUTTONS: int = c.GLFW_JOYSTICK_HAT_BUTTONS
338
+ public const ANGLE_PLATFORM_TYPE: int = c.GLFW_ANGLE_PLATFORM_TYPE
339
+ public const PLATFORM: int = c.GLFW_PLATFORM
340
+ public const COCOA_CHDIR_RESOURCES: int = c.GLFW_COCOA_CHDIR_RESOURCES
341
+ public const COCOA_MENUBAR: int = c.GLFW_COCOA_MENUBAR
342
+ public const X11_XCB_VULKAN_SURFACE: int = c.GLFW_X11_XCB_VULKAN_SURFACE
343
+ public const WAYLAND_LIBDECOR: int = c.GLFW_WAYLAND_LIBDECOR
344
+ public const ANY_PLATFORM: int = c.GLFW_ANY_PLATFORM
345
+ public const PLATFORM_WIN32: int = c.GLFW_PLATFORM_WIN32
346
+ public const PLATFORM_COCOA: int = c.GLFW_PLATFORM_COCOA
347
+ public const PLATFORM_WAYLAND: int = c.GLFW_PLATFORM_WAYLAND
348
+ public const PLATFORM_X11: int = c.GLFW_PLATFORM_X11
349
+ public const PLATFORM_NULL: int = c.GLFW_PLATFORM_NULL
350
+ public const DONT_CARE: int = c.GLFW_DONT_CARE
351
+
352
+ public foreign function init() -> bool = c.glfwInit() != 0
353
+ public foreign function terminate() -> void = c.glfwTerminate
354
+ public foreign function init_hint(hint: int, value: int) -> void = c.glfwInitHint
355
+ public foreign function init_allocator(allocator: const_ptr[Allocator]) -> void = c.glfwInitAllocator
356
+ public foreign function get_version(major: ptr[int], minor: ptr[int], rev: ptr[int]) -> void = c.glfwGetVersion
357
+ public foreign function get_version_string() -> cstr = c.glfwGetVersionString
358
+ public foreign function get_error(description: ptr[cstr]?) -> int = c.glfwGetError
359
+ public foreign function set_error_callback(callback: ErrorCallback?) -> ErrorCallback? = c.glfwSetErrorCallback
360
+ public foreign function get_platform() -> int = c.glfwGetPlatform
361
+ public foreign function platform_supported(platform: int) -> int = c.glfwPlatformSupported
362
+ public foreign function get_monitors(count: ptr[int]) -> ptr[ptr[Monitor]]? = c.glfwGetMonitors
363
+ public foreign function get_primary_monitor() -> Monitor? = c.glfwGetPrimaryMonitor
364
+ public foreign function get_monitor_pos(monitor: Monitor, xpos: ptr[int], ypos: ptr[int]) -> void = c.glfwGetMonitorPos
365
+ public foreign function get_monitor_workarea(monitor: Monitor, xpos: ptr[int], ypos: ptr[int], width: ptr[int], height: ptr[int]) -> void = c.glfwGetMonitorWorkarea
366
+ public foreign function get_monitor_physical_size(monitor: Monitor, width_mm: ptr[int], height_mm: ptr[int]) -> void = c.glfwGetMonitorPhysicalSize
367
+ public foreign function get_monitor_content_scale(monitor: Monitor, xscale: ptr[float], yscale: ptr[float]) -> void = c.glfwGetMonitorContentScale
368
+ public foreign function get_monitor_name(monitor: Monitor) -> cstr? = c.glfwGetMonitorName
369
+ public foreign function set_monitor_user_pointer(monitor: Monitor, pointer: ptr[void]) -> void = c.glfwSetMonitorUserPointer
370
+ public foreign function get_monitor_user_pointer(monitor: Monitor) -> ptr[void]? = c.glfwGetMonitorUserPointer
371
+ public foreign function set_monitor_callback(callback: MonitorCallback?) -> MonitorCallback? = c.glfwSetMonitorCallback
372
+ public foreign function get_video_modes(monitor: Monitor, count: ptr[int]) -> const_ptr[VideoMode]? = c.glfwGetVideoModes
373
+ public foreign function get_video_mode(monitor: Monitor) -> const_ptr[VideoMode]? = c.glfwGetVideoMode
374
+ public foreign function set_gamma(monitor: Monitor, gamma: float) -> void = c.glfwSetGamma
375
+ public foreign function get_gamma_ramp(monitor: Monitor) -> const_ptr[GammaRamp]? = c.glfwGetGammaRamp
376
+ public foreign function set_gamma_ramp(monitor: Monitor, ramp: const_ptr[GammaRamp]) -> void = c.glfwSetGammaRamp
377
+ public foreign function default_window_hints() -> void = c.glfwDefaultWindowHints
378
+ public foreign function window_hint(hint: int, value: int) -> void = c.glfwWindowHint
379
+ public foreign function window_hint_string(hint: int, value: str as cstr) -> void = c.glfwWindowHintString
380
+ public foreign function create_window(width: int, height: int, title: str as cstr, monitor: Monitor?, share: Window?) -> Window? = c.glfwCreateWindow
381
+ public foreign function destroy_window(window: Window) -> void = c.glfwDestroyWindow
382
+ public foreign function window_should_close(window: Window) -> bool = c.glfwWindowShouldClose(window) != 0
383
+ public foreign function set_window_should_close(window: Window, value: int) -> void = c.glfwSetWindowShouldClose
384
+ public foreign function get_window_title(window: Window) -> cstr? = c.glfwGetWindowTitle
385
+ public foreign function set_window_title(window: Window, title: str as cstr) -> void = c.glfwSetWindowTitle
386
+ public foreign function set_window_icon(window: Window, count: int, images: const_ptr[Image]) -> void = c.glfwSetWindowIcon
387
+ public foreign function get_window_pos(window: Window, xpos: ptr[int], ypos: ptr[int]) -> void = c.glfwGetWindowPos
388
+ public foreign function set_window_pos(window: Window, xpos: int, ypos: int) -> void = c.glfwSetWindowPos
389
+ public foreign function get_window_size(window: Window, width: ptr[int], height: ptr[int]) -> void = c.glfwGetWindowSize
390
+ public foreign function set_window_size_limits(window: Window, minwidth: int, minheight: int, maxwidth: int, maxheight: int) -> void = c.glfwSetWindowSizeLimits
391
+ public foreign function set_window_aspect_ratio(window: Window, numer: int, denom: int) -> void = c.glfwSetWindowAspectRatio
392
+ public foreign function set_window_size(window: Window, width: int, height: int) -> void = c.glfwSetWindowSize
393
+ public foreign function get_framebuffer_size(window: Window, width: ptr[int], height: ptr[int]) -> void = c.glfwGetFramebufferSize
394
+ public foreign function get_window_frame_size(window: Window, left: ptr[int], top: ptr[int], right: ptr[int], bottom: ptr[int]) -> void = c.glfwGetWindowFrameSize
395
+ public foreign function get_window_content_scale(window: Window, xscale: ptr[float], yscale: ptr[float]) -> void = c.glfwGetWindowContentScale
396
+ public foreign function get_window_opacity(window: Window) -> float = c.glfwGetWindowOpacity
397
+ public foreign function set_window_opacity(window: Window, opacity: float) -> void = c.glfwSetWindowOpacity
398
+ public foreign function iconify_window(window: Window) -> void = c.glfwIconifyWindow
399
+ public foreign function restore_window(window: Window) -> void = c.glfwRestoreWindow
400
+ public foreign function maximize_window(window: Window) -> void = c.glfwMaximizeWindow
401
+ public foreign function show_window(window: Window) -> void = c.glfwShowWindow
402
+ public foreign function hide_window(window: Window) -> void = c.glfwHideWindow
403
+ public foreign function focus_window(window: Window) -> void = c.glfwFocusWindow
404
+ public foreign function request_window_attention(window: Window) -> void = c.glfwRequestWindowAttention
405
+ public foreign function get_window_monitor(window: Window) -> Monitor? = c.glfwGetWindowMonitor
406
+ public foreign function set_window_monitor(window: Window, monitor: Monitor, xpos: int, ypos: int, width: int, height: int, refresh_rate: int) -> void = c.glfwSetWindowMonitor
407
+ public foreign function get_window_attrib(window: Window, attrib: int) -> int = c.glfwGetWindowAttrib
408
+ public foreign function set_window_attrib(window: Window, attrib: int, value: int) -> void = c.glfwSetWindowAttrib
409
+ public foreign function set_window_user_pointer(window: Window, pointer: ptr[void]) -> void = c.glfwSetWindowUserPointer
410
+ public foreign function get_window_user_pointer(window: Window) -> ptr[void]? = c.glfwGetWindowUserPointer
411
+ public foreign function set_window_pos_callback(window: Window, callback: WindowPosCallback?) -> WindowPosCallback? = c.glfwSetWindowPosCallback
412
+ public foreign function set_window_size_callback(window: Window, callback: WindowSizeCallback?) -> WindowSizeCallback? = c.glfwSetWindowSizeCallback
413
+ public foreign function set_window_close_callback(window: Window, callback: WindowCloseCallback?) -> WindowCloseCallback? = c.glfwSetWindowCloseCallback
414
+ public foreign function set_window_refresh_callback(window: Window, callback: WindowRefreshCallback?) -> WindowRefreshCallback? = c.glfwSetWindowRefreshCallback
415
+ public foreign function set_window_focus_callback(window: Window, callback: WindowFocusCallback?) -> WindowFocusCallback? = c.glfwSetWindowFocusCallback
416
+ public foreign function set_window_iconify_callback(window: Window, callback: WindowIconifyCallback?) -> WindowIconifyCallback? = c.glfwSetWindowIconifyCallback
417
+ public foreign function set_window_maximize_callback(window: Window, callback: WindowMaximizeCallback?) -> WindowMaximizeCallback? = c.glfwSetWindowMaximizeCallback
418
+ public foreign function set_framebuffer_size_callback(window: Window, callback: FramebufferSizeCallback?) -> FramebufferSizeCallback? = c.glfwSetFramebufferSizeCallback
419
+ public foreign function set_window_content_scale_callback(window: Window, callback: WindowContentScaleCallback?) -> WindowContentScaleCallback? = c.glfwSetWindowContentScaleCallback
420
+ public foreign function poll_events() -> void = c.glfwPollEvents
421
+ public foreign function wait_events() -> void = c.glfwWaitEvents
422
+ public foreign function wait_events_timeout(timeout: double) -> void = c.glfwWaitEventsTimeout
423
+ public foreign function post_empty_event() -> void = c.glfwPostEmptyEvent
424
+ public foreign function get_input_mode(window: Window, mode: int) -> int = c.glfwGetInputMode
425
+ public foreign function set_input_mode(window: Window, mode: int, value: int) -> void = c.glfwSetInputMode
426
+ public foreign function raw_mouse_motion_supported() -> bool = c.glfwRawMouseMotionSupported() != 0
427
+ public foreign function get_key_name(key: int, scancode: int) -> cstr? = c.glfwGetKeyName
428
+ public foreign function get_key_scancode(key: int) -> int = c.glfwGetKeyScancode
429
+ public foreign function get_key(window: Window, key: int) -> int = c.glfwGetKey
430
+ public foreign function get_mouse_button(window: Window, button: int) -> int = c.glfwGetMouseButton
431
+ public foreign function get_cursor_pos(window: Window, xpos: ptr[double]?, ypos: ptr[double]?) -> void = c.glfwGetCursorPos
432
+ public foreign function set_cursor_pos(window: Window, xpos: double, ypos: double) -> void = c.glfwSetCursorPos
433
+ public foreign function create_cursor(image: const_ptr[Image], xhot: int, yhot: int) -> Cursor? = c.glfwCreateCursor
434
+ public foreign function create_standard_cursor(shape: int) -> Cursor? = c.glfwCreateStandardCursor
435
+ public foreign function destroy_cursor(cursor: Cursor) -> void = c.glfwDestroyCursor
436
+ public foreign function set_cursor(window: Window, cursor: Cursor?) -> void = c.glfwSetCursor
437
+ public foreign function set_key_callback(window: Window, callback: KeyCallback?) -> KeyCallback? = c.glfwSetKeyCallback
438
+ public foreign function set_char_callback(window: Window, callback: CharCallback?) -> CharCallback? = c.glfwSetCharCallback
439
+ public foreign function set_char_mods_callback(window: Window, callback: CharModsCallback?) -> CharModsCallback? = c.glfwSetCharModsCallback
440
+ public foreign function set_mouse_button_callback(window: Window, callback: MouseButtonCallback?) -> MouseButtonCallback? = c.glfwSetMouseButtonCallback
441
+ public foreign function set_cursor_pos_callback(window: Window, callback: CursorPosCallback?) -> CursorPosCallback? = c.glfwSetCursorPosCallback
442
+ public foreign function set_cursor_enter_callback(window: Window, callback: CursorEnterCallback?) -> CursorEnterCallback? = c.glfwSetCursorEnterCallback
443
+ public foreign function set_scroll_callback(window: Window, callback: ScrollCallback?) -> ScrollCallback? = c.glfwSetScrollCallback
444
+ public foreign function set_drop_callback(window: Window, callback: DropCallback?) -> DropCallback? = c.glfwSetDropCallback
445
+ public foreign function joystick_present(jid: int) -> bool = c.glfwJoystickPresent(jid) != 0
446
+ public foreign function get_joystick_axes(jid: int, count: ptr[int]) -> const_ptr[float]? = c.glfwGetJoystickAxes
447
+ public foreign function get_joystick_buttons(jid: int, count: ptr[int]) -> const_ptr[ubyte]? = c.glfwGetJoystickButtons
448
+ public foreign function get_joystick_hats(jid: int, count: ptr[int]) -> const_ptr[ubyte]? = c.glfwGetJoystickHats
449
+ public foreign function get_joystick_name(jid: int) -> cstr? = c.glfwGetJoystickName
450
+ public foreign function get_joystick_guid(jid: int) -> cstr? = c.glfwGetJoystickGUID
451
+ public foreign function set_joystick_user_pointer(jid: int, pointer: ptr[void]) -> void = c.glfwSetJoystickUserPointer
452
+ public foreign function get_joystick_user_pointer(jid: int) -> ptr[void]? = c.glfwGetJoystickUserPointer
453
+ public foreign function joystick_is_gamepad(jid: int) -> bool = c.glfwJoystickIsGamepad(jid) != 0
454
+ public foreign function set_joystick_callback(callback: JoystickCallback?) -> JoystickCallback? = c.glfwSetJoystickCallback
455
+ public foreign function update_gamepad_mappings(string: str as cstr) -> int = c.glfwUpdateGamepadMappings
456
+ public foreign function get_gamepad_name(jid: int) -> cstr? = c.glfwGetGamepadName
457
+ public foreign function get_gamepad_state(jid: int, state: ptr[GamepadState]) -> bool = c.glfwGetGamepadState(jid, state) != 0
458
+ public foreign function set_clipboard_string(window: Window, string: str as cstr) -> void = c.glfwSetClipboardString
459
+ public foreign function get_clipboard_string(window: Window) -> cstr? = c.glfwGetClipboardString
460
+ public foreign function get_time() -> double = c.glfwGetTime
461
+ public foreign function set_time(time: double) -> void = c.glfwSetTime
462
+ public foreign function get_timer_value() -> ulong = c.glfwGetTimerValue
463
+ public foreign function get_timer_frequency() -> ulong = c.glfwGetTimerFrequency
464
+ public foreign function make_context_current(window: Window?) -> void = c.glfwMakeContextCurrent
465
+ public foreign function get_current_context() -> Window? = c.glfwGetCurrentContext
466
+ public foreign function swap_buffers(window: Window) -> void = c.glfwSwapBuffers
467
+ public foreign function swap_interval(interval: int) -> void = c.glfwSwapInterval
468
+ public foreign function extension_supported(extension: cstr) -> bool = c.glfwExtensionSupported(extension) != 0
469
+ public foreign function get_proc_address(procname: str as cstr) -> GLProc? = c.glfwGetProcAddress
470
+ public foreign function vulkan_supported() -> bool = c.glfwVulkanSupported() != 0
471
+ public foreign function get_required_instance_extensions(count: ptr[uint]) -> ptr[cstr]? = c.glfwGetRequiredInstanceExtensions