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/c/raylib.mt ADDED
@@ -0,0 +1,1245 @@
1
+ # generated by mtc bindgen from /home/teefan/Projects/Ruby/mt-lang/third_party/raylib-upstream/src/raylib.h
2
+ external
3
+
4
+ link "raylib"
5
+ include "raylib.h"
6
+
7
+ opaque va_list = c"va_list"
8
+
9
+ struct Vector2:
10
+ x: float
11
+ y: float
12
+
13
+ struct Vector3:
14
+ x: float
15
+ y: float
16
+ z: float
17
+
18
+ struct Vector4:
19
+ x: float
20
+ y: float
21
+ z: float
22
+ w: float
23
+
24
+ type Quaternion = Vector4
25
+
26
+ struct Matrix:
27
+ m0: float
28
+ m4: float
29
+ m8: float
30
+ m12: float
31
+ m1: float
32
+ m5: float
33
+ m9: float
34
+ m13: float
35
+ m2: float
36
+ m6: float
37
+ m10: float
38
+ m14: float
39
+ m3: float
40
+ m7: float
41
+ m11: float
42
+ m15: float
43
+
44
+ struct Color:
45
+ r: ubyte
46
+ g: ubyte
47
+ b: ubyte
48
+ a: ubyte
49
+
50
+ struct Rectangle:
51
+ x: float
52
+ y: float
53
+ width: float
54
+ height: float
55
+
56
+ struct Image:
57
+ data: ptr[void]
58
+ width: int
59
+ height: int
60
+ mipmaps: int
61
+ format: int
62
+
63
+ struct Texture:
64
+ id: uint
65
+ width: int
66
+ height: int
67
+ mipmaps: int
68
+ format: int
69
+
70
+ type Texture2D = Texture
71
+ type TextureCubemap = Texture
72
+
73
+ struct RenderTexture:
74
+ id: uint
75
+ texture: Texture
76
+ depth: Texture
77
+
78
+ type RenderTexture2D = RenderTexture
79
+
80
+ struct NPatchInfo:
81
+ source: Rectangle
82
+ left: int
83
+ top: int
84
+ right: int
85
+ bottom: int
86
+ layout: int
87
+
88
+ struct GlyphInfo:
89
+ value: int
90
+ offsetX: int
91
+ offsetY: int
92
+ advanceX: int
93
+ image: Image
94
+
95
+ struct Font:
96
+ baseSize: int
97
+ glyphCount: int
98
+ glyphPadding: int
99
+ texture: Texture
100
+ recs: ptr[Rectangle]
101
+ glyphs: ptr[GlyphInfo]
102
+
103
+ struct Camera3D:
104
+ position: Vector3
105
+ target: Vector3
106
+ up: Vector3
107
+ fovy: float
108
+ projection: int
109
+
110
+ type Camera = Camera3D
111
+
112
+ struct Camera2D:
113
+ offset: Vector2
114
+ target: Vector2
115
+ rotation: float
116
+ zoom: float
117
+
118
+ struct Mesh:
119
+ vertexCount: int
120
+ triangleCount: int
121
+ vertices: ptr[float]
122
+ texcoords: ptr[float]
123
+ texcoords2: ptr[float]
124
+ normals: ptr[float]
125
+ tangents: ptr[float]
126
+ colors: ptr[ubyte]
127
+ indices: ptr[ushort]?
128
+ boneCount: int
129
+ boneIndices: ptr[ubyte]
130
+ boneWeights: ptr[float]
131
+ animVertices: ptr[float]
132
+ animNormals: ptr[float]
133
+ vaoId: uint
134
+ vboId: ptr[uint]
135
+
136
+ struct Shader:
137
+ id: uint
138
+ locs: ptr[int]
139
+
140
+ struct MaterialMap:
141
+ texture: Texture
142
+ color: Color
143
+ value: float
144
+
145
+ struct Material:
146
+ shader: Shader
147
+ maps: ptr[MaterialMap]
148
+ params: array[float, 4]
149
+
150
+ struct Transform:
151
+ translation: Vector3
152
+ rotation: Vector4
153
+ scale: Vector3
154
+
155
+ type ModelAnimPose = ptr[Transform]
156
+
157
+ struct BoneInfo:
158
+ name: array[char, 32]
159
+ parent: int
160
+
161
+ struct ModelSkeleton:
162
+ boneCount: int
163
+ bones: ptr[BoneInfo]
164
+ bindPose: ptr[Transform]
165
+
166
+ struct Model:
167
+ transform: Matrix
168
+ meshCount: int
169
+ materialCount: int
170
+ meshes: ptr[Mesh]
171
+ materials: ptr[Material]
172
+ meshMaterial: ptr[int]
173
+ skeleton: ModelSkeleton
174
+ currentPose: ptr[Transform]
175
+ boneMatrices: ptr[Matrix]
176
+
177
+ struct ModelAnimation:
178
+ name: array[char, 32]
179
+ boneCount: int
180
+ keyframeCount: int
181
+ keyframePoses: ptr[ModelAnimPose]
182
+
183
+ struct Ray:
184
+ position: Vector3
185
+ direction: Vector3
186
+
187
+ struct RayCollision:
188
+ hit: bool
189
+ distance: float
190
+ point: Vector3
191
+ normal: Vector3
192
+
193
+ struct BoundingBox:
194
+ min: Vector3
195
+ max: Vector3
196
+
197
+ struct Wave:
198
+ frameCount: uint
199
+ sampleRate: uint
200
+ sampleSize: uint
201
+ channels: uint
202
+ data: ptr[void]
203
+
204
+ opaque rAudioBuffer = c"rAudioBuffer"
205
+ opaque rAudioProcessor = c"rAudioProcessor"
206
+
207
+ struct AudioStream:
208
+ buffer: ptr[rAudioBuffer]
209
+ processor: ptr[rAudioProcessor]
210
+ sampleRate: uint
211
+ sampleSize: uint
212
+ channels: uint
213
+
214
+ struct Sound:
215
+ stream: AudioStream
216
+ frameCount: uint
217
+
218
+ struct Music:
219
+ stream: AudioStream
220
+ frameCount: uint
221
+ looping: bool
222
+ ctxType: int
223
+ ctxData: ptr[void]
224
+
225
+ struct VrDeviceInfo:
226
+ hResolution: int
227
+ vResolution: int
228
+ hScreenSize: float
229
+ vScreenSize: float
230
+ eyeToScreenDistance: float
231
+ lensSeparationDistance: float
232
+ interpupillaryDistance: float
233
+ lensDistortionValues: array[float, 4]
234
+ chromaAbCorrection: array[float, 4]
235
+
236
+ struct VrStereoConfig:
237
+ projection: array[Matrix, 2]
238
+ viewOffset: array[Matrix, 2]
239
+ leftLensCenter: array[float, 2]
240
+ rightLensCenter: array[float, 2]
241
+ leftScreenCenter: array[float, 2]
242
+ rightScreenCenter: array[float, 2]
243
+ scale: array[float, 2]
244
+ scaleIn: array[float, 2]
245
+
246
+ struct FilePathList:
247
+ count: uint
248
+ paths: ptr[ptr[char]]
249
+
250
+ struct AutomationEvent:
251
+ frame: uint
252
+ type_: uint
253
+ params: array[int, 4]
254
+
255
+ struct AutomationEventList:
256
+ capacity: uint
257
+ count: uint
258
+ events: ptr[AutomationEvent]
259
+
260
+ flags ConfigFlags: int
261
+ FLAG_VSYNC_HINT = 64
262
+ FLAG_FULLSCREEN_MODE = 2
263
+ FLAG_WINDOW_RESIZABLE = 4
264
+ FLAG_WINDOW_UNDECORATED = 8
265
+ FLAG_WINDOW_HIDDEN = 128
266
+ FLAG_WINDOW_MINIMIZED = 512
267
+ FLAG_WINDOW_MAXIMIZED = 1024
268
+ FLAG_WINDOW_UNFOCUSED = 2048
269
+ FLAG_WINDOW_TOPMOST = 4096
270
+ FLAG_WINDOW_ALWAYS_RUN = 256
271
+ FLAG_WINDOW_TRANSPARENT = 16
272
+ FLAG_WINDOW_HIGHDPI = 8192
273
+ FLAG_WINDOW_MOUSE_PASSTHROUGH = 16384
274
+ FLAG_BORDERLESS_WINDOWED_MODE = 32768
275
+ FLAG_MSAA_4X_HINT = 32
276
+ FLAG_INTERLACED_HINT = 65536
277
+
278
+ enum TraceLogLevel: int
279
+ LOG_ALL = 0
280
+ LOG_TRACE = 1
281
+ LOG_DEBUG = 2
282
+ LOG_INFO = 3
283
+ LOG_WARNING = 4
284
+ LOG_ERROR = 5
285
+ LOG_FATAL = 6
286
+ LOG_NONE = 7
287
+
288
+ enum KeyboardKey: int
289
+ KEY_NULL = 0
290
+ KEY_APOSTROPHE = 39
291
+ KEY_COMMA = 44
292
+ KEY_MINUS = 45
293
+ KEY_PERIOD = 46
294
+ KEY_SLASH = 47
295
+ KEY_ZERO = 48
296
+ KEY_ONE = 49
297
+ KEY_TWO = 50
298
+ KEY_THREE = 51
299
+ KEY_FOUR = 52
300
+ KEY_FIVE = 53
301
+ KEY_SIX = 54
302
+ KEY_SEVEN = 55
303
+ KEY_EIGHT = 56
304
+ KEY_NINE = 57
305
+ KEY_SEMICOLON = 59
306
+ KEY_EQUAL = 61
307
+ KEY_A = 65
308
+ KEY_B = 66
309
+ KEY_C = 67
310
+ KEY_D = 68
311
+ KEY_E = 69
312
+ KEY_F = 70
313
+ KEY_G = 71
314
+ KEY_H = 72
315
+ KEY_I = 73
316
+ KEY_J = 74
317
+ KEY_K = 75
318
+ KEY_L = 76
319
+ KEY_M = 77
320
+ KEY_N = 78
321
+ KEY_O = 79
322
+ KEY_P = 80
323
+ KEY_Q = 81
324
+ KEY_R = 82
325
+ KEY_S = 83
326
+ KEY_T = 84
327
+ KEY_U = 85
328
+ KEY_V = 86
329
+ KEY_W = 87
330
+ KEY_X = 88
331
+ KEY_Y = 89
332
+ KEY_Z = 90
333
+ KEY_LEFT_BRACKET = 91
334
+ KEY_BACKSLASH = 92
335
+ KEY_RIGHT_BRACKET = 93
336
+ KEY_GRAVE = 96
337
+ KEY_SPACE = 32
338
+ KEY_ESCAPE = 256
339
+ KEY_ENTER = 257
340
+ KEY_TAB = 258
341
+ KEY_BACKSPACE = 259
342
+ KEY_INSERT = 260
343
+ KEY_DELETE = 261
344
+ KEY_RIGHT = 262
345
+ KEY_LEFT = 263
346
+ KEY_DOWN = 264
347
+ KEY_UP = 265
348
+ KEY_PAGE_UP = 266
349
+ KEY_PAGE_DOWN = 267
350
+ KEY_HOME = 268
351
+ KEY_END = 269
352
+ KEY_CAPS_LOCK = 280
353
+ KEY_SCROLL_LOCK = 281
354
+ KEY_NUM_LOCK = 282
355
+ KEY_PRINT_SCREEN = 283
356
+ KEY_PAUSE = 284
357
+ KEY_F1 = 290
358
+ KEY_F2 = 291
359
+ KEY_F3 = 292
360
+ KEY_F4 = 293
361
+ KEY_F5 = 294
362
+ KEY_F6 = 295
363
+ KEY_F7 = 296
364
+ KEY_F8 = 297
365
+ KEY_F9 = 298
366
+ KEY_F10 = 299
367
+ KEY_F11 = 300
368
+ KEY_F12 = 301
369
+ KEY_LEFT_SHIFT = 340
370
+ KEY_LEFT_CONTROL = 341
371
+ KEY_LEFT_ALT = 342
372
+ KEY_LEFT_SUPER = 343
373
+ KEY_RIGHT_SHIFT = 344
374
+ KEY_RIGHT_CONTROL = 345
375
+ KEY_RIGHT_ALT = 346
376
+ KEY_RIGHT_SUPER = 347
377
+ KEY_KB_MENU = 348
378
+ KEY_KP_0 = 320
379
+ KEY_KP_1 = 321
380
+ KEY_KP_2 = 322
381
+ KEY_KP_3 = 323
382
+ KEY_KP_4 = 324
383
+ KEY_KP_5 = 325
384
+ KEY_KP_6 = 326
385
+ KEY_KP_7 = 327
386
+ KEY_KP_8 = 328
387
+ KEY_KP_9 = 329
388
+ KEY_KP_DECIMAL = 330
389
+ KEY_KP_DIVIDE = 331
390
+ KEY_KP_MULTIPLY = 332
391
+ KEY_KP_SUBTRACT = 333
392
+ KEY_KP_ADD = 334
393
+ KEY_KP_ENTER = 335
394
+ KEY_KP_EQUAL = 336
395
+ KEY_BACK = 4
396
+ KEY_MENU = 5
397
+ KEY_VOLUME_UP = 24
398
+ KEY_VOLUME_DOWN = 25
399
+
400
+ enum MouseButton: int
401
+ MOUSE_BUTTON_LEFT = 0
402
+ MOUSE_BUTTON_RIGHT = 1
403
+ MOUSE_BUTTON_MIDDLE = 2
404
+ MOUSE_BUTTON_SIDE = 3
405
+ MOUSE_BUTTON_EXTRA = 4
406
+ MOUSE_BUTTON_FORWARD = 5
407
+ MOUSE_BUTTON_BACK = 6
408
+
409
+ enum MouseCursor: int
410
+ MOUSE_CURSOR_DEFAULT = 0
411
+ MOUSE_CURSOR_ARROW = 1
412
+ MOUSE_CURSOR_IBEAM = 2
413
+ MOUSE_CURSOR_CROSSHAIR = 3
414
+ MOUSE_CURSOR_POINTING_HAND = 4
415
+ MOUSE_CURSOR_RESIZE_EW = 5
416
+ MOUSE_CURSOR_RESIZE_NS = 6
417
+ MOUSE_CURSOR_RESIZE_NWSE = 7
418
+ MOUSE_CURSOR_RESIZE_NESW = 8
419
+ MOUSE_CURSOR_RESIZE_ALL = 9
420
+ MOUSE_CURSOR_NOT_ALLOWED = 10
421
+
422
+ enum GamepadButton: int
423
+ GAMEPAD_BUTTON_UNKNOWN = 0
424
+ GAMEPAD_BUTTON_LEFT_FACE_UP = 1
425
+ GAMEPAD_BUTTON_LEFT_FACE_RIGHT = 2
426
+ GAMEPAD_BUTTON_LEFT_FACE_DOWN = 3
427
+ GAMEPAD_BUTTON_LEFT_FACE_LEFT = 4
428
+ GAMEPAD_BUTTON_RIGHT_FACE_UP = 5
429
+ GAMEPAD_BUTTON_RIGHT_FACE_RIGHT = 6
430
+ GAMEPAD_BUTTON_RIGHT_FACE_DOWN = 7
431
+ GAMEPAD_BUTTON_RIGHT_FACE_LEFT = 8
432
+ GAMEPAD_BUTTON_LEFT_TRIGGER_1 = 9
433
+ GAMEPAD_BUTTON_LEFT_TRIGGER_2 = 10
434
+ GAMEPAD_BUTTON_RIGHT_TRIGGER_1 = 11
435
+ GAMEPAD_BUTTON_RIGHT_TRIGGER_2 = 12
436
+ GAMEPAD_BUTTON_MIDDLE_LEFT = 13
437
+ GAMEPAD_BUTTON_MIDDLE = 14
438
+ GAMEPAD_BUTTON_MIDDLE_RIGHT = 15
439
+ GAMEPAD_BUTTON_LEFT_THUMB = 16
440
+ GAMEPAD_BUTTON_RIGHT_THUMB = 17
441
+
442
+ enum GamepadAxis: int
443
+ GAMEPAD_AXIS_LEFT_X = 0
444
+ GAMEPAD_AXIS_LEFT_Y = 1
445
+ GAMEPAD_AXIS_RIGHT_X = 2
446
+ GAMEPAD_AXIS_RIGHT_Y = 3
447
+ GAMEPAD_AXIS_LEFT_TRIGGER = 4
448
+ GAMEPAD_AXIS_RIGHT_TRIGGER = 5
449
+
450
+ enum MaterialMapIndex: int
451
+ MATERIAL_MAP_ALBEDO = 0
452
+ MATERIAL_MAP_METALNESS = 1
453
+ MATERIAL_MAP_NORMAL = 2
454
+ MATERIAL_MAP_ROUGHNESS = 3
455
+ MATERIAL_MAP_OCCLUSION = 4
456
+ MATERIAL_MAP_EMISSION = 5
457
+ MATERIAL_MAP_HEIGHT = 6
458
+ MATERIAL_MAP_CUBEMAP = 7
459
+ MATERIAL_MAP_IRRADIANCE = 8
460
+ MATERIAL_MAP_PREFILTER = 9
461
+ MATERIAL_MAP_BRDF = 10
462
+
463
+ enum ShaderLocationIndex: int
464
+ SHADER_LOC_VERTEX_POSITION = 0
465
+ SHADER_LOC_VERTEX_TEXCOORD01 = 1
466
+ SHADER_LOC_VERTEX_TEXCOORD02 = 2
467
+ SHADER_LOC_VERTEX_NORMAL = 3
468
+ SHADER_LOC_VERTEX_TANGENT = 4
469
+ SHADER_LOC_VERTEX_COLOR = 5
470
+ SHADER_LOC_MATRIX_MVP = 6
471
+ SHADER_LOC_MATRIX_VIEW = 7
472
+ SHADER_LOC_MATRIX_PROJECTION = 8
473
+ SHADER_LOC_MATRIX_MODEL = 9
474
+ SHADER_LOC_MATRIX_NORMAL = 10
475
+ SHADER_LOC_VECTOR_VIEW = 11
476
+ SHADER_LOC_COLOR_DIFFUSE = 12
477
+ SHADER_LOC_COLOR_SPECULAR = 13
478
+ SHADER_LOC_COLOR_AMBIENT = 14
479
+ SHADER_LOC_MAP_ALBEDO = 15
480
+ SHADER_LOC_MAP_METALNESS = 16
481
+ SHADER_LOC_MAP_NORMAL = 17
482
+ SHADER_LOC_MAP_ROUGHNESS = 18
483
+ SHADER_LOC_MAP_OCCLUSION = 19
484
+ SHADER_LOC_MAP_EMISSION = 20
485
+ SHADER_LOC_MAP_HEIGHT = 21
486
+ SHADER_LOC_MAP_CUBEMAP = 22
487
+ SHADER_LOC_MAP_IRRADIANCE = 23
488
+ SHADER_LOC_MAP_PREFILTER = 24
489
+ SHADER_LOC_MAP_BRDF = 25
490
+ SHADER_LOC_VERTEX_BONEIDS = 26
491
+ SHADER_LOC_VERTEX_BONEWEIGHTS = 27
492
+ SHADER_LOC_MATRIX_BONETRANSFORMS = 28
493
+ SHADER_LOC_VERTEX_INSTANCETRANSFORM = 29
494
+
495
+ enum ShaderUniformDataType: int
496
+ SHADER_UNIFORM_FLOAT = 0
497
+ SHADER_UNIFORM_VEC2 = 1
498
+ SHADER_UNIFORM_VEC3 = 2
499
+ SHADER_UNIFORM_VEC4 = 3
500
+ SHADER_UNIFORM_INT = 4
501
+ SHADER_UNIFORM_IVEC2 = 5
502
+ SHADER_UNIFORM_IVEC3 = 6
503
+ SHADER_UNIFORM_IVEC4 = 7
504
+ SHADER_UNIFORM_UINT = 8
505
+ SHADER_UNIFORM_UIVEC2 = 9
506
+ SHADER_UNIFORM_UIVEC3 = 10
507
+ SHADER_UNIFORM_UIVEC4 = 11
508
+ SHADER_UNIFORM_SAMPLER2D = 12
509
+
510
+ enum ShaderAttributeDataType: int
511
+ SHADER_ATTRIB_FLOAT = 0
512
+ SHADER_ATTRIB_VEC2 = 1
513
+ SHADER_ATTRIB_VEC3 = 2
514
+ SHADER_ATTRIB_VEC4 = 3
515
+
516
+ enum PixelFormat: int
517
+ PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = 1
518
+ PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA = 2
519
+ PIXELFORMAT_UNCOMPRESSED_R5G6B5 = 3
520
+ PIXELFORMAT_UNCOMPRESSED_R8G8B8 = 4
521
+ PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 = 5
522
+ PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 = 6
523
+ PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 = 7
524
+ PIXELFORMAT_UNCOMPRESSED_R32 = 8
525
+ PIXELFORMAT_UNCOMPRESSED_R32G32B32 = 9
526
+ PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 = 10
527
+ PIXELFORMAT_UNCOMPRESSED_R16 = 11
528
+ PIXELFORMAT_UNCOMPRESSED_R16G16B16 = 12
529
+ PIXELFORMAT_UNCOMPRESSED_R16G16B16A16 = 13
530
+ PIXELFORMAT_COMPRESSED_DXT1_RGB = 14
531
+ PIXELFORMAT_COMPRESSED_DXT1_RGBA = 15
532
+ PIXELFORMAT_COMPRESSED_DXT3_RGBA = 16
533
+ PIXELFORMAT_COMPRESSED_DXT5_RGBA = 17
534
+ PIXELFORMAT_COMPRESSED_ETC1_RGB = 18
535
+ PIXELFORMAT_COMPRESSED_ETC2_RGB = 19
536
+ PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA = 20
537
+ PIXELFORMAT_COMPRESSED_PVRT_RGB = 21
538
+ PIXELFORMAT_COMPRESSED_PVRT_RGBA = 22
539
+ PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA = 23
540
+ PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA = 24
541
+
542
+ enum TextureFilter: int
543
+ TEXTURE_FILTER_POINT = 0
544
+ TEXTURE_FILTER_BILINEAR = 1
545
+ TEXTURE_FILTER_TRILINEAR = 2
546
+ TEXTURE_FILTER_ANISOTROPIC_4X = 3
547
+ TEXTURE_FILTER_ANISOTROPIC_8X = 4
548
+ TEXTURE_FILTER_ANISOTROPIC_16X = 5
549
+
550
+ enum TextureWrap: int
551
+ TEXTURE_WRAP_REPEAT = 0
552
+ TEXTURE_WRAP_CLAMP = 1
553
+ TEXTURE_WRAP_MIRROR_REPEAT = 2
554
+ TEXTURE_WRAP_MIRROR_CLAMP = 3
555
+
556
+ enum CubemapLayout: int
557
+ CUBEMAP_LAYOUT_AUTO_DETECT = 0
558
+ CUBEMAP_LAYOUT_LINE_VERTICAL = 1
559
+ CUBEMAP_LAYOUT_LINE_HORIZONTAL = 2
560
+ CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR = 3
561
+ CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE = 4
562
+
563
+ flags FontType: int
564
+ FONT_DEFAULT = 0
565
+ FONT_BITMAP = 1
566
+ FONT_SDF = 2
567
+
568
+ enum BlendMode: int
569
+ BLEND_ALPHA = 0
570
+ BLEND_ADDITIVE = 1
571
+ BLEND_MULTIPLIED = 2
572
+ BLEND_ADD_COLORS = 3
573
+ BLEND_SUBTRACT_COLORS = 4
574
+ BLEND_ALPHA_PREMULTIPLY = 5
575
+ BLEND_CUSTOM = 6
576
+ BLEND_CUSTOM_SEPARATE = 7
577
+
578
+ flags Gesture: int
579
+ GESTURE_NONE = 0
580
+ GESTURE_TAP = 1
581
+ GESTURE_DOUBLETAP = 2
582
+ GESTURE_HOLD = 4
583
+ GESTURE_DRAG = 8
584
+ GESTURE_SWIPE_RIGHT = 16
585
+ GESTURE_SWIPE_LEFT = 32
586
+ GESTURE_SWIPE_UP = 64
587
+ GESTURE_SWIPE_DOWN = 128
588
+ GESTURE_PINCH_IN = 256
589
+ GESTURE_PINCH_OUT = 512
590
+
591
+ enum CameraMode: int
592
+ CAMERA_CUSTOM = 0
593
+ CAMERA_FREE = 1
594
+ CAMERA_ORBITAL = 2
595
+ CAMERA_FIRST_PERSON = 3
596
+ CAMERA_THIRD_PERSON = 4
597
+
598
+ flags CameraProjection: int
599
+ CAMERA_PERSPECTIVE = 0
600
+ CAMERA_ORTHOGRAPHIC = 1
601
+ flags NPatchLayout: int
602
+ NPATCH_NINE_PATCH = 0
603
+ NPATCH_THREE_PATCH_VERTICAL = 1
604
+ NPATCH_THREE_PATCH_HORIZONTAL = 2
605
+
606
+ type TraceLogCallback = fn(arg0: int, arg1: cstr, arg2: va_list) -> void
607
+ type LoadFileDataCallback = fn(arg0: cstr, arg1: ptr[int]) -> ptr[ubyte]
608
+ type SaveFileDataCallback = fn(arg0: cstr, arg1: ptr[void], arg2: int) -> bool
609
+ type LoadFileTextCallback = fn(arg0: cstr) -> ptr[char]
610
+ type SaveFileTextCallback = fn(arg0: cstr, arg1: cstr) -> bool
611
+
612
+ external function InitWindow(width: int, height: int, title: cstr) -> void
613
+ external function CloseWindow() -> void
614
+ external function WindowShouldClose() -> bool
615
+ external function IsWindowReady() -> bool
616
+ external function IsWindowFullscreen() -> bool
617
+ external function IsWindowHidden() -> bool
618
+ external function IsWindowMinimized() -> bool
619
+ external function IsWindowMaximized() -> bool
620
+ external function IsWindowFocused() -> bool
621
+ external function IsWindowResized() -> bool
622
+ external function IsWindowState(flag: uint) -> bool
623
+ external function SetWindowState(flags_: uint) -> void
624
+ external function ClearWindowState(flags_: uint) -> void
625
+ external function ToggleFullscreen() -> void
626
+ external function ToggleBorderlessWindowed() -> void
627
+ external function MaximizeWindow() -> void
628
+ external function MinimizeWindow() -> void
629
+ external function RestoreWindow() -> void
630
+ external function SetWindowIcon(image: Image) -> void
631
+ external function SetWindowIcons(images: ptr[Image], count: int) -> void
632
+ external function SetWindowTitle(title: cstr) -> void
633
+ external function SetWindowPosition(x: int, y: int) -> void
634
+ external function SetWindowMonitor(monitor: int) -> void
635
+ external function SetWindowMinSize(width: int, height: int) -> void
636
+ external function SetWindowMaxSize(width: int, height: int) -> void
637
+ external function SetWindowSize(width: int, height: int) -> void
638
+ external function SetWindowOpacity(opacity: float) -> void
639
+ external function SetWindowFocused() -> void
640
+ external function GetWindowHandle() -> ptr[void]
641
+ external function GetScreenWidth() -> int
642
+ external function GetScreenHeight() -> int
643
+ external function GetRenderWidth() -> int
644
+ external function GetRenderHeight() -> int
645
+ external function GetMonitorCount() -> int
646
+ external function GetCurrentMonitor() -> int
647
+ external function GetMonitorPosition(monitor: int) -> Vector2
648
+ external function GetMonitorWidth(monitor: int) -> int
649
+ external function GetMonitorHeight(monitor: int) -> int
650
+ external function GetMonitorPhysicalWidth(monitor: int) -> int
651
+ external function GetMonitorPhysicalHeight(monitor: int) -> int
652
+ external function GetMonitorRefreshRate(monitor: int) -> int
653
+ external function GetWindowPosition() -> Vector2
654
+ external function GetWindowScaleDPI() -> Vector2
655
+ external function GetMonitorName(monitor: int) -> cstr
656
+ external function SetClipboardText(text: cstr) -> void
657
+ external function GetClipboardText() -> cstr
658
+ external function GetClipboardImage() -> Image
659
+ external function EnableEventWaiting() -> void
660
+ external function DisableEventWaiting() -> void
661
+ external function ShowCursor() -> void
662
+ external function HideCursor() -> void
663
+ external function IsCursorHidden() -> bool
664
+ external function EnableCursor() -> void
665
+ external function DisableCursor() -> void
666
+ external function IsCursorOnScreen() -> bool
667
+ external function ClearBackground(color: Color) -> void
668
+ external function BeginDrawing() -> void
669
+ external function EndDrawing() -> void
670
+ external function BeginMode2D(camera: Camera2D) -> void
671
+ external function EndMode2D() -> void
672
+ external function BeginMode3D(camera: Camera3D) -> void
673
+ external function EndMode3D() -> void
674
+ external function BeginTextureMode(target: RenderTexture) -> void
675
+ external function EndTextureMode() -> void
676
+ external function BeginShaderMode(shader: Shader) -> void
677
+ external function EndShaderMode() -> void
678
+ external function BeginBlendMode(mode: int) -> void
679
+ external function EndBlendMode() -> void
680
+ external function BeginScissorMode(x: int, y: int, width: int, height: int) -> void
681
+ external function EndScissorMode() -> void
682
+ external function BeginVrStereoMode(config: VrStereoConfig) -> void
683
+ external function EndVrStereoMode() -> void
684
+ external function LoadVrStereoConfig(device: VrDeviceInfo) -> VrStereoConfig
685
+ external function UnloadVrStereoConfig(config: VrStereoConfig) -> void
686
+ external function LoadShader(vsFileName: cstr?, fsFileName: cstr?) -> Shader
687
+ external function LoadShaderFromMemory(vsCode: cstr?, fsCode: cstr?) -> Shader
688
+ external function IsShaderValid(shader: Shader) -> bool
689
+ external function GetShaderLocation(shader: Shader, uniformName: cstr) -> int
690
+ external function GetShaderLocationAttrib(shader: Shader, attribName: cstr) -> int
691
+ external function SetShaderValue(shader: Shader, locIndex: int, value: const_ptr[void], uniformType: int) -> void
692
+ external function SetShaderValueV(shader: Shader, locIndex: int, value: const_ptr[void], uniformType: int, count: int) -> void
693
+ external function SetShaderValueMatrix(shader: Shader, locIndex: int, mat: Matrix) -> void
694
+ external function SetShaderValueTexture(shader: Shader, locIndex: int, texture: Texture) -> void
695
+ external function UnloadShader(shader: Shader) -> void
696
+ external function GetScreenToWorldRay(position: Vector2, camera: Camera3D) -> Ray
697
+ external function GetScreenToWorldRayEx(position: Vector2, camera: Camera3D, width: int, height: int) -> Ray
698
+ external function GetWorldToScreen(position: Vector3, camera: Camera3D) -> Vector2
699
+ external function GetWorldToScreenEx(position: Vector3, camera: Camera3D, width: int, height: int) -> Vector2
700
+ external function GetWorldToScreen2D(position: Vector2, camera: Camera2D) -> Vector2
701
+ external function GetScreenToWorld2D(position: Vector2, camera: Camera2D) -> Vector2
702
+ external function GetCameraMatrix(camera: Camera3D) -> Matrix
703
+ external function GetCameraMatrix2D(camera: Camera2D) -> Matrix
704
+ external function SetTargetFPS(fps: int) -> void
705
+ external function GetFrameTime() -> float
706
+ external function GetTime() -> double
707
+ external function GetFPS() -> int
708
+ external function SwapScreenBuffer() -> void
709
+ external function PollInputEvents() -> void
710
+ external function WaitTime(seconds: double) -> void
711
+ external function SetRandomSeed(seed: uint) -> void
712
+ external function GetRandomValue(min: int, max: int) -> int
713
+ external function LoadRandomSequence(count: uint, min: int, max: int) -> ptr[int]?
714
+ external function UnloadRandomSequence(sequence: ptr[int]) -> void
715
+ external function TakeScreenshot(fileName: cstr) -> void
716
+ external function SetConfigFlags(flags_: uint) -> void
717
+ external function OpenURL(url: cstr) -> void
718
+ external function SetTraceLogLevel(logLevel: int) -> void
719
+ external function TraceLog(logLevel: int, text: cstr, ...) -> void
720
+ external function SetTraceLogCallback(callback: fn(arg0: int, arg1: cstr, arg2: va_list) -> void) -> void
721
+ external function MemAlloc(size: uint) -> ptr[void]?
722
+ external function MemRealloc(ptr: ptr[void], size: uint) -> ptr[void]?
723
+ external function MemFree(ptr: ptr[void]) -> void
724
+ external function LoadFileData(fileName: cstr, dataSize: ptr[int]) -> ptr[ubyte]?
725
+ external function UnloadFileData(data: ptr[ubyte]) -> void
726
+ external function SaveFileData(fileName: cstr, data: ptr[void], dataSize: int) -> bool
727
+ external function ExportDataAsCode(data: const_ptr[ubyte], dataSize: int, fileName: cstr) -> bool
728
+ external function LoadFileText(fileName: cstr) -> ptr[char]?
729
+ external function UnloadFileText(text: ptr[char]) -> void
730
+ external function SaveFileText(fileName: cstr, text: cstr) -> bool
731
+ external function SetLoadFileDataCallback(callback: fn(arg0: cstr, arg1: ptr[int]) -> ptr[ubyte]) -> void
732
+ external function SetSaveFileDataCallback(callback: fn(arg0: cstr, arg1: ptr[void], arg2: int) -> bool) -> void
733
+ external function SetLoadFileTextCallback(callback: fn(arg0: cstr) -> ptr[char]) -> void
734
+ external function SetSaveFileTextCallback(callback: fn(arg0: cstr, arg1: cstr) -> bool) -> void
735
+ external function FileRename(fileName: cstr, fileRename: cstr) -> int
736
+ external function FileRemove(fileName: cstr) -> int
737
+ external function FileCopy(srcPath: cstr, dstPath: cstr) -> int
738
+ external function FileMove(srcPath: cstr, dstPath: cstr) -> int
739
+ external function FileTextReplace(fileName: cstr, search: cstr, replacement: cstr) -> int
740
+ external function FileTextFindIndex(fileName: cstr, search: cstr) -> int
741
+ external function FileExists(fileName: cstr) -> bool
742
+ external function DirectoryExists(dirPath: cstr) -> bool
743
+ external function IsFileExtension(fileName: cstr, ext: cstr) -> bool
744
+ external function GetFileLength(fileName: cstr) -> int
745
+ external function GetFileModTime(fileName: cstr) -> ptr_int
746
+ external function GetFileExtension(fileName: cstr) -> cstr
747
+ external function GetFileName(filePath: cstr) -> cstr
748
+ external function GetFileNameWithoutExt(filePath: cstr) -> cstr
749
+ external function GetDirectoryPath(filePath: cstr) -> cstr
750
+ external function GetPrevDirectoryPath(dirPath: cstr) -> cstr
751
+ external function GetWorkingDirectory() -> cstr
752
+ external function GetApplicationDirectory() -> cstr
753
+ external function MakeDirectory(dirPath: cstr) -> int
754
+ external function ChangeDirectory(dirPath: cstr) -> bool
755
+ external function IsPathFile(path: cstr) -> bool
756
+ external function IsFileNameValid(fileName: cstr) -> bool
757
+ external function LoadDirectoryFiles(dirPath: cstr) -> FilePathList
758
+ external function LoadDirectoryFilesEx(basePath: cstr, filter: cstr, scanSubdirs: bool) -> FilePathList
759
+ external function UnloadDirectoryFiles(files: FilePathList) -> void
760
+ external function IsFileDropped() -> bool
761
+ external function LoadDroppedFiles() -> FilePathList
762
+ external function UnloadDroppedFiles(files: FilePathList) -> void
763
+ external function GetDirectoryFileCount(dirPath: cstr) -> uint
764
+ external function GetDirectoryFileCountEx(basePath: cstr, filter: cstr, scanSubdirs: bool) -> uint
765
+ external function CompressData(data: const_ptr[ubyte], dataSize: int, compDataSize: ptr[int]) -> ptr[ubyte]?
766
+ external function DecompressData(compData: const_ptr[ubyte], compDataSize: int, dataSize: ptr[int]) -> ptr[ubyte]?
767
+ external function EncodeDataBase64(data: const_ptr[ubyte], dataSize: int, outputSize: ptr[int]) -> ptr[char]?
768
+ external function DecodeDataBase64(text: cstr, outputSize: ptr[int]) -> ptr[ubyte]?
769
+ external function ComputeCRC32(data: ptr[ubyte], dataSize: int) -> uint
770
+ external function ComputeMD5(data: ptr[ubyte], dataSize: int) -> ptr[uint]
771
+ external function ComputeSHA1(data: ptr[ubyte], dataSize: int) -> ptr[uint]
772
+ external function ComputeSHA256(data: ptr[ubyte], dataSize: int) -> ptr[uint]
773
+ external function LoadAutomationEventList(fileName: cstr?) -> AutomationEventList
774
+ external function UnloadAutomationEventList(list: AutomationEventList) -> void
775
+ external function ExportAutomationEventList(list: AutomationEventList, fileName: cstr) -> bool
776
+ external function SetAutomationEventList(list: ptr[AutomationEventList]) -> void
777
+ external function SetAutomationEventBaseFrame(frame: int) -> void
778
+ external function StartAutomationEventRecording() -> void
779
+ external function StopAutomationEventRecording() -> void
780
+ external function PlayAutomationEvent(event_: AutomationEvent) -> void
781
+ external function IsKeyPressed(key: int) -> bool
782
+ external function IsKeyPressedRepeat(key: int) -> bool
783
+ external function IsKeyDown(key: int) -> bool
784
+ external function IsKeyReleased(key: int) -> bool
785
+ external function IsKeyUp(key: int) -> bool
786
+ external function GetKeyPressed() -> int
787
+ external function GetCharPressed() -> int
788
+ external function GetKeyName(key: int) -> cstr
789
+ external function SetExitKey(key: int) -> void
790
+ external function IsGamepadAvailable(gamepad: int) -> bool
791
+ external function GetGamepadName(gamepad: int) -> cstr
792
+ external function IsGamepadButtonPressed(gamepad: int, button: int) -> bool
793
+ external function IsGamepadButtonDown(gamepad: int, button: int) -> bool
794
+ external function IsGamepadButtonReleased(gamepad: int, button: int) -> bool
795
+ external function IsGamepadButtonUp(gamepad: int, button: int) -> bool
796
+ external function GetGamepadButtonPressed() -> int
797
+ external function GetGamepadAxisCount(gamepad: int) -> int
798
+ external function GetGamepadAxisMovement(gamepad: int, axis: int) -> float
799
+ external function SetGamepadMappings(mappings: cstr) -> int
800
+ external function SetGamepadVibration(gamepad: int, leftMotor: float, rightMotor: float, duration: float) -> void
801
+ external function IsMouseButtonPressed(button: int) -> bool
802
+ external function IsMouseButtonDown(button: int) -> bool
803
+ external function IsMouseButtonReleased(button: int) -> bool
804
+ external function IsMouseButtonUp(button: int) -> bool
805
+ external function GetMouseX() -> int
806
+ external function GetMouseY() -> int
807
+ external function GetMousePosition() -> Vector2
808
+ external function GetMouseDelta() -> Vector2
809
+ external function SetMousePosition(x: int, y: int) -> void
810
+ external function SetMouseOffset(offsetX: int, offsetY: int) -> void
811
+ external function SetMouseScale(scaleX: float, scaleY: float) -> void
812
+ external function GetMouseWheelMove() -> float
813
+ external function GetMouseWheelMoveV() -> Vector2
814
+ external function SetMouseCursor(cursor: int) -> void
815
+ external function GetTouchX() -> int
816
+ external function GetTouchY() -> int
817
+ external function GetTouchPosition(index: int) -> Vector2
818
+ external function GetTouchPointId(index: int) -> int
819
+ external function GetTouchPointCount() -> int
820
+ external function SetGesturesEnabled(flags_: uint) -> void
821
+ external function IsGestureDetected(gesture: uint) -> bool
822
+ external function GetGestureDetected() -> int
823
+ external function GetGestureHoldDuration() -> float
824
+ external function GetGestureDragVector() -> Vector2
825
+ external function GetGestureDragAngle() -> float
826
+ external function GetGesturePinchVector() -> Vector2
827
+ external function GetGesturePinchAngle() -> float
828
+ external function UpdateCamera(camera: ptr[Camera], mode: int) -> void
829
+ external function UpdateCameraPro(camera: ptr[Camera], movement: Vector3, rotation: Vector3, zoom: float) -> void
830
+ external function SetShapesTexture(texture: Texture, source: Rectangle) -> void
831
+ external function GetShapesTexture() -> Texture2D
832
+ external function GetShapesTextureRectangle() -> Rectangle
833
+ external function DrawPixel(posX: int, posY: int, color: Color) -> void
834
+ external function DrawPixelV(position: Vector2, color: Color) -> void
835
+ external function DrawLine(startPosX: int, startPosY: int, endPosX: int, endPosY: int, color: Color) -> void
836
+ external function DrawLineV(startPos: Vector2, endPos: Vector2, color: Color) -> void
837
+ external function DrawLineEx(startPos: Vector2, endPos: Vector2, thick: float, color: Color) -> void
838
+ external function DrawLineStrip(points: const_ptr[Vector2], pointCount: int, color: Color) -> void
839
+ external function DrawLineBezier(startPos: Vector2, endPos: Vector2, thick: float, color: Color) -> void
840
+ external function DrawLineDashed(startPos: Vector2, endPos: Vector2, dashSize: int, spaceSize: int, color: Color) -> void
841
+ external function DrawCircle(centerX: int, centerY: int, radius: float, color: Color) -> void
842
+ external function DrawCircleV(center: Vector2, radius: float, color: Color) -> void
843
+ external function DrawCircleGradient(center: Vector2, radius: float, inner: Color, outer: Color) -> void
844
+ external function DrawCircleSector(center: Vector2, radius: float, startAngle: float, endAngle: float, segments: int, color: Color) -> void
845
+ external function DrawCircleSectorLines(center: Vector2, radius: float, startAngle: float, endAngle: float, segments: int, color: Color) -> void
846
+ external function DrawCircleLines(centerX: int, centerY: int, radius: float, color: Color) -> void
847
+ external function DrawCircleLinesV(center: Vector2, radius: float, color: Color) -> void
848
+ external function DrawEllipse(centerX: int, centerY: int, radiusH: float, radiusV: float, color: Color) -> void
849
+ external function DrawEllipseV(center: Vector2, radiusH: float, radiusV: float, color: Color) -> void
850
+ external function DrawEllipseLines(centerX: int, centerY: int, radiusH: float, radiusV: float, color: Color) -> void
851
+ external function DrawEllipseLinesV(center: Vector2, radiusH: float, radiusV: float, color: Color) -> void
852
+ external function DrawRing(center: Vector2, innerRadius: float, outerRadius: float, startAngle: float, endAngle: float, segments: int, color: Color) -> void
853
+ external function DrawRingLines(center: Vector2, innerRadius: float, outerRadius: float, startAngle: float, endAngle: float, segments: int, color: Color) -> void
854
+ external function DrawRectangle(posX: int, posY: int, width: int, height: int, color: Color) -> void
855
+ external function DrawRectangleV(position: Vector2, size: Vector2, color: Color) -> void
856
+ external function DrawRectangleRec(rec: Rectangle, color: Color) -> void
857
+ external function DrawRectanglePro(rec: Rectangle, origin: Vector2, rotation: float, color: Color) -> void
858
+ external function DrawRectangleGradientV(posX: int, posY: int, width: int, height: int, top: Color, bottom: Color) -> void
859
+ external function DrawRectangleGradientH(posX: int, posY: int, width: int, height: int, left: Color, right: Color) -> void
860
+ external function DrawRectangleGradientEx(rec: Rectangle, topLeft: Color, bottomLeft: Color, bottomRight: Color, topRight: Color) -> void
861
+ external function DrawRectangleLines(posX: int, posY: int, width: int, height: int, color: Color) -> void
862
+ external function DrawRectangleLinesEx(rec: Rectangle, lineThick: float, color: Color) -> void
863
+ external function DrawRectangleRounded(rec: Rectangle, roundness: float, segments: int, color: Color) -> void
864
+ external function DrawRectangleRoundedLines(rec: Rectangle, roundness: float, segments: int, color: Color) -> void
865
+ external function DrawRectangleRoundedLinesEx(rec: Rectangle, roundness: float, segments: int, lineThick: float, color: Color) -> void
866
+ external function DrawTriangle(v1: Vector2, v2: Vector2, v3: Vector2, color: Color) -> void
867
+ external function DrawTriangleLines(v1: Vector2, v2: Vector2, v3: Vector2, color: Color) -> void
868
+ external function DrawTriangleFan(points: const_ptr[Vector2], pointCount: int, color: Color) -> void
869
+ external function DrawTriangleStrip(points: const_ptr[Vector2], pointCount: int, color: Color) -> void
870
+ external function DrawPoly(center: Vector2, sides: int, radius: float, rotation: float, color: Color) -> void
871
+ external function DrawPolyLines(center: Vector2, sides: int, radius: float, rotation: float, color: Color) -> void
872
+ external function DrawPolyLinesEx(center: Vector2, sides: int, radius: float, rotation: float, lineThick: float, color: Color) -> void
873
+ external function DrawSplineLinear(points: const_ptr[Vector2], pointCount: int, thick: float, color: Color) -> void
874
+ external function DrawSplineBasis(points: const_ptr[Vector2], pointCount: int, thick: float, color: Color) -> void
875
+ external function DrawSplineCatmullRom(points: const_ptr[Vector2], pointCount: int, thick: float, color: Color) -> void
876
+ external function DrawSplineBezierQuadratic(points: const_ptr[Vector2], pointCount: int, thick: float, color: Color) -> void
877
+ external function DrawSplineBezierCubic(points: const_ptr[Vector2], pointCount: int, thick: float, color: Color) -> void
878
+ external function DrawSplineSegmentLinear(p1: Vector2, p2: Vector2, thick: float, color: Color) -> void
879
+ external function DrawSplineSegmentBasis(p1: Vector2, p2: Vector2, p3: Vector2, p4: Vector2, thick: float, color: Color) -> void
880
+ external function DrawSplineSegmentCatmullRom(p1: Vector2, p2: Vector2, p3: Vector2, p4: Vector2, thick: float, color: Color) -> void
881
+ external function DrawSplineSegmentBezierQuadratic(p1: Vector2, c2: Vector2, p3: Vector2, thick: float, color: Color) -> void
882
+ external function DrawSplineSegmentBezierCubic(p1: Vector2, c2: Vector2, c3: Vector2, p4: Vector2, thick: float, color: Color) -> void
883
+ external function GetSplinePointLinear(startPos: Vector2, endPos: Vector2, t: float) -> Vector2
884
+ external function GetSplinePointBasis(p1: Vector2, p2: Vector2, p3: Vector2, p4: Vector2, t: float) -> Vector2
885
+ external function GetSplinePointCatmullRom(p1: Vector2, p2: Vector2, p3: Vector2, p4: Vector2, t: float) -> Vector2
886
+ external function GetSplinePointBezierQuad(p1: Vector2, c2: Vector2, p3: Vector2, t: float) -> Vector2
887
+ external function GetSplinePointBezierCubic(p1: Vector2, c2: Vector2, c3: Vector2, p4: Vector2, t: float) -> Vector2
888
+ external function CheckCollisionRecs(rec1: Rectangle, rec2: Rectangle) -> bool
889
+ external function CheckCollisionCircles(center1: Vector2, radius1: float, center2: Vector2, radius2: float) -> bool
890
+ external function CheckCollisionCircleRec(center: Vector2, radius: float, rec: Rectangle) -> bool
891
+ external function CheckCollisionCircleLine(center: Vector2, radius: float, p1: Vector2, p2: Vector2) -> bool
892
+ external function CheckCollisionPointRec(point: Vector2, rec: Rectangle) -> bool
893
+ external function CheckCollisionPointCircle(point: Vector2, center: Vector2, radius: float) -> bool
894
+ external function CheckCollisionPointTriangle(point: Vector2, p1: Vector2, p2: Vector2, p3: Vector2) -> bool
895
+ external function CheckCollisionPointLine(point: Vector2, p1: Vector2, p2: Vector2, threshold: int) -> bool
896
+ external function CheckCollisionPointPoly(point: Vector2, points: const_ptr[Vector2], pointCount: int) -> bool
897
+ external function CheckCollisionLines(startPos1: Vector2, endPos1: Vector2, startPos2: Vector2, endPos2: Vector2, collisionPoint: ptr[Vector2]) -> bool
898
+ external function GetCollisionRec(rec1: Rectangle, rec2: Rectangle) -> Rectangle
899
+ external function LoadImage(fileName: cstr) -> Image
900
+ external function LoadImageRaw(fileName: cstr, width: int, height: int, format: int, headerSize: int) -> Image
901
+ external function LoadImageAnim(fileName: cstr, frames: ptr[int]) -> Image
902
+ external function LoadImageAnimFromMemory(fileType: cstr, fileData: const_ptr[ubyte], dataSize: int, frames: ptr[int]) -> Image
903
+ external function LoadImageFromMemory(fileType: cstr, fileData: const_ptr[ubyte], dataSize: int) -> Image
904
+ external function LoadImageFromTexture(texture: Texture) -> Image
905
+ external function LoadImageFromScreen() -> Image
906
+ external function IsImageValid(image: Image) -> bool
907
+ external function UnloadImage(image: Image) -> void
908
+ external function ExportImage(image: Image, fileName: cstr) -> bool
909
+ external function ExportImageToMemory(image: Image, fileType: cstr, fileSize: ptr[int]) -> ptr[ubyte]?
910
+ external function ExportImageAsCode(image: Image, fileName: cstr) -> bool
911
+ external function GenImageColor(width: int, height: int, color: Color) -> Image
912
+ external function GenImageGradientLinear(width: int, height: int, direction: int, start: Color, end: Color) -> Image
913
+ external function GenImageGradientRadial(width: int, height: int, density: float, inner: Color, outer: Color) -> Image
914
+ external function GenImageGradientSquare(width: int, height: int, density: float, inner: Color, outer: Color) -> Image
915
+ external function GenImageChecked(width: int, height: int, checksX: int, checksY: int, col1: Color, col2: Color) -> Image
916
+ external function GenImageWhiteNoise(width: int, height: int, factor: float) -> Image
917
+ external function GenImagePerlinNoise(width: int, height: int, offsetX: int, offsetY: int, scale: float) -> Image
918
+ external function GenImageCellular(width: int, height: int, tileSize: int) -> Image
919
+ external function GenImageText(width: int, height: int, text: cstr) -> Image
920
+ external function ImageCopy(image: Image) -> Image
921
+ external function ImageFromImage(image: Image, rec: Rectangle) -> Image
922
+ external function ImageFromChannel(image: Image, selectedChannel: int) -> Image
923
+ external function ImageText(text: cstr, fontSize: int, color: Color) -> Image
924
+ external function ImageTextEx(font: Font, text: cstr, fontSize: float, spacing: float, tint: Color) -> Image
925
+ external function ImageFormat(image: ptr[Image], newFormat: int) -> void
926
+ external function ImageToPOT(image: ptr[Image], fill: Color) -> void
927
+ external function ImageCrop(image: ptr[Image], crop: Rectangle) -> void
928
+ external function ImageAlphaCrop(image: ptr[Image], threshold: float) -> void
929
+ external function ImageAlphaClear(image: ptr[Image], color: Color, threshold: float) -> void
930
+ external function ImageAlphaMask(image: ptr[Image], alphaMask: Image) -> void
931
+ external function ImageAlphaPremultiply(image: ptr[Image]) -> void
932
+ external function ImageBlurGaussian(image: ptr[Image], blurSize: int) -> void
933
+ external function ImageKernelConvolution(image: ptr[Image], kernel: const_ptr[float], kernelSize: int) -> void
934
+ external function ImageResize(image: ptr[Image], newWidth: int, newHeight: int) -> void
935
+ external function ImageResizeNN(image: ptr[Image], newWidth: int, newHeight: int) -> void
936
+ external function ImageResizeCanvas(image: ptr[Image], newWidth: int, newHeight: int, offsetX: int, offsetY: int, fill: Color) -> void
937
+ external function ImageMipmaps(image: ptr[Image]) -> void
938
+ external function ImageDither(image: ptr[Image], rBpp: int, gBpp: int, bBpp: int, aBpp: int) -> void
939
+ external function ImageFlipVertical(image: ptr[Image]) -> void
940
+ external function ImageFlipHorizontal(image: ptr[Image]) -> void
941
+ external function ImageRotate(image: ptr[Image], degrees: int) -> void
942
+ external function ImageRotateCW(image: ptr[Image]) -> void
943
+ external function ImageRotateCCW(image: ptr[Image]) -> void
944
+ external function ImageColorTint(image: ptr[Image], color: Color) -> void
945
+ external function ImageColorInvert(image: ptr[Image]) -> void
946
+ external function ImageColorGrayscale(image: ptr[Image]) -> void
947
+ external function ImageColorContrast(image: ptr[Image], contrast: float) -> void
948
+ external function ImageColorBrightness(image: ptr[Image], brightness: int) -> void
949
+ external function ImageColorReplace(image: ptr[Image], color: Color, replace: Color) -> void
950
+ external function LoadImageColors(image: Image) -> ptr[Color]?
951
+ external function LoadImagePalette(image: Image, maxPaletteSize: int, colorCount: ptr[int]) -> ptr[Color]?
952
+ external function UnloadImageColors(colors: ptr[Color]) -> void
953
+ external function UnloadImagePalette(colors: ptr[Color]) -> void
954
+ external function GetImageAlphaBorder(image: Image, threshold: float) -> Rectangle
955
+ external function GetImageColor(image: Image, x: int, y: int) -> Color
956
+ external function ImageClearBackground(dst: ptr[Image], color: Color) -> void
957
+ external function ImageDrawPixel(dst: ptr[Image], posX: int, posY: int, color: Color) -> void
958
+ external function ImageDrawPixelV(dst: ptr[Image], position: Vector2, color: Color) -> void
959
+ external function ImageDrawLine(dst: ptr[Image], startPosX: int, startPosY: int, endPosX: int, endPosY: int, color: Color) -> void
960
+ external function ImageDrawLineV(dst: ptr[Image], start: Vector2, end: Vector2, color: Color) -> void
961
+ external function ImageDrawLineEx(dst: ptr[Image], start: Vector2, end: Vector2, thick: int, color: Color) -> void
962
+ external function ImageDrawCircle(dst: ptr[Image], centerX: int, centerY: int, radius: int, color: Color) -> void
963
+ external function ImageDrawCircleV(dst: ptr[Image], center: Vector2, radius: int, color: Color) -> void
964
+ external function ImageDrawCircleLines(dst: ptr[Image], centerX: int, centerY: int, radius: int, color: Color) -> void
965
+ external function ImageDrawCircleLinesV(dst: ptr[Image], center: Vector2, radius: int, color: Color) -> void
966
+ external function ImageDrawRectangle(dst: ptr[Image], posX: int, posY: int, width: int, height: int, color: Color) -> void
967
+ external function ImageDrawRectangleV(dst: ptr[Image], position: Vector2, size: Vector2, color: Color) -> void
968
+ external function ImageDrawRectangleRec(dst: ptr[Image], rec: Rectangle, color: Color) -> void
969
+ external function ImageDrawRectangleLines(dst: ptr[Image], rec: Rectangle, thick: int, color: Color) -> void
970
+ external function ImageDrawTriangle(dst: ptr[Image], v1: Vector2, v2: Vector2, v3: Vector2, color: Color) -> void
971
+ external function ImageDrawTriangleEx(dst: ptr[Image], v1: Vector2, v2: Vector2, v3: Vector2, c1: Color, c2: Color, c3: Color) -> void
972
+ external function ImageDrawTriangleLines(dst: ptr[Image], v1: Vector2, v2: Vector2, v3: Vector2, color: Color) -> void
973
+ external function ImageDrawTriangleFan(dst: ptr[Image], points: const_ptr[Vector2], pointCount: int, color: Color) -> void
974
+ external function ImageDrawTriangleStrip(dst: ptr[Image], points: const_ptr[Vector2], pointCount: int, color: Color) -> void
975
+ external function ImageDraw(dst: ptr[Image], src: Image, srcRec: Rectangle, dstRec: Rectangle, tint: Color) -> void
976
+ external function ImageDrawText(dst: ptr[Image], text: cstr, posX: int, posY: int, fontSize: int, color: Color) -> void
977
+ external function ImageDrawTextEx(dst: ptr[Image], font: Font, text: cstr, position: Vector2, fontSize: float, spacing: float, tint: Color) -> void
978
+ external function LoadTexture(fileName: cstr) -> Texture2D
979
+ external function LoadTextureFromImage(image: Image) -> Texture2D
980
+ external function LoadTextureCubemap(image: Image, layout: int) -> TextureCubemap
981
+ external function LoadRenderTexture(width: int, height: int) -> RenderTexture2D
982
+ external function IsTextureValid(texture: Texture) -> bool
983
+ external function UnloadTexture(texture: Texture) -> void
984
+ external function IsRenderTextureValid(target: RenderTexture) -> bool
985
+ external function UnloadRenderTexture(target: RenderTexture) -> void
986
+ external function UpdateTexture(texture: Texture, pixels: const_ptr[void]) -> void
987
+ external function UpdateTextureRec(texture: Texture, rec: Rectangle, pixels: const_ptr[void]) -> void
988
+ external function GenTextureMipmaps(texture: ptr[Texture2D]) -> void
989
+ external function SetTextureFilter(texture: Texture, filter: int) -> void
990
+ external function SetTextureWrap(texture: Texture, wrap: int) -> void
991
+ external function DrawTexture(texture: Texture, posX: int, posY: int, tint: Color) -> void
992
+ external function DrawTextureV(texture: Texture, position: Vector2, tint: Color) -> void
993
+ external function DrawTextureEx(texture: Texture, position: Vector2, rotation: float, scale: float, tint: Color) -> void
994
+ external function DrawTextureRec(texture: Texture, source: Rectangle, position: Vector2, tint: Color) -> void
995
+ external function DrawTexturePro(texture: Texture, source: Rectangle, dest: Rectangle, origin: Vector2, rotation: float, tint: Color) -> void
996
+ external function DrawTextureNPatch(texture: Texture, nPatchInfo: NPatchInfo, dest: Rectangle, origin: Vector2, rotation: float, tint: Color) -> void
997
+ external function ColorIsEqual(col1: Color, col2: Color) -> bool
998
+ external function Fade(color: Color, alpha: float) -> Color
999
+ external function ColorToInt(color: Color) -> int
1000
+ external function ColorNormalize(color: Color) -> Vector4
1001
+ external function ColorFromNormalized(normalized: Vector4) -> Color
1002
+ external function ColorToHSV(color: Color) -> Vector3
1003
+ external function ColorFromHSV(hue: float, saturation: float, value: float) -> Color
1004
+ external function ColorTint(color: Color, tint: Color) -> Color
1005
+ external function ColorBrightness(color: Color, factor: float) -> Color
1006
+ external function ColorContrast(color: Color, contrast: float) -> Color
1007
+ external function ColorAlpha(color: Color, alpha: float) -> Color
1008
+ external function ColorAlphaBlend(dst: Color, src: Color, tint: Color) -> Color
1009
+ external function ColorLerp(color1: Color, color2: Color, factor: float) -> Color
1010
+ external function GetColor(hexValue: uint) -> Color
1011
+ external function GetPixelColor(srcPtr: ptr[void], format: int) -> Color
1012
+ external function SetPixelColor(dstPtr: ptr[void], color: Color, format: int) -> void
1013
+ external function GetPixelDataSize(width: int, height: int, format: int) -> int
1014
+ external function GetFontDefault() -> Font
1015
+ external function LoadFont(fileName: cstr) -> Font
1016
+ external function LoadFontEx(fileName: cstr, fontSize: int, codepoints: ptr[int]?, codepointCount: int) -> Font
1017
+ external function LoadFontFromImage(image: Image, key: Color, firstChar: int) -> Font
1018
+ external function LoadFontFromMemory(fileType: cstr, fileData: const_ptr[ubyte], dataSize: int, fontSize: int, codepoints: ptr[int]?, codepointCount: int) -> Font
1019
+ external function IsFontValid(font: Font) -> bool
1020
+ external function LoadFontData(fileData: const_ptr[ubyte], dataSize: int, fontSize: int, codepoints: ptr[int]?, codepointCount: int, type_: int, glyphCount: ptr[int]) -> ptr[GlyphInfo]
1021
+ external function GenImageFontAtlas(glyphs: const_ptr[GlyphInfo], glyphRecs: ptr[ptr[Rectangle]], glyphCount: int, fontSize: int, padding: int, packMethod: int) -> Image
1022
+ external function UnloadFontData(glyphs: ptr[GlyphInfo], glyphCount: int) -> void
1023
+ external function UnloadFont(font: Font) -> void
1024
+ external function ExportFontAsCode(font: Font, fileName: cstr) -> bool
1025
+ external function DrawFPS(posX: int, posY: int) -> void
1026
+ external function DrawText(text: cstr, posX: int, posY: int, fontSize: int, color: Color) -> void
1027
+ external function DrawTextEx(font: Font, text: cstr, position: Vector2, fontSize: float, spacing: float, tint: Color) -> void
1028
+ external function DrawTextPro(font: Font, text: cstr, position: Vector2, origin: Vector2, rotation: float, fontSize: float, spacing: float, tint: Color) -> void
1029
+ external function DrawTextCodepoint(font: Font, codepoint: int, position: Vector2, fontSize: float, tint: Color) -> void
1030
+ external function DrawTextCodepoints(font: Font, codepoints: const_ptr[int], codepointCount: int, position: Vector2, fontSize: float, spacing: float, tint: Color) -> void
1031
+ external function SetTextLineSpacing(spacing: int) -> void
1032
+ external function MeasureText(text: cstr, fontSize: int) -> int
1033
+ external function MeasureTextEx(font: Font, text: cstr, fontSize: float, spacing: float) -> Vector2
1034
+ external function MeasureTextCodepoints(font: Font, codepoints: const_ptr[int], length: int, fontSize: float, spacing: float) -> Vector2
1035
+ external function GetGlyphIndex(font: Font, codepoint: int) -> int
1036
+ external function GetGlyphInfo(font: Font, codepoint: int) -> GlyphInfo
1037
+ external function GetGlyphAtlasRec(font: Font, codepoint: int) -> Rectangle
1038
+ external function LoadUTF8(codepoints: const_ptr[int], length: int) -> ptr[char]?
1039
+ external function UnloadUTF8(text: ptr[char]) -> void
1040
+ external function LoadCodepoints(text: cstr, count: ptr[int]) -> ptr[int]?
1041
+ external function UnloadCodepoints(codepoints: ptr[int]) -> void
1042
+ external function GetCodepointCount(text: cstr) -> int
1043
+ external function GetCodepoint(text: cstr, codepointSize: ptr[int]) -> int
1044
+ external function GetCodepointNext(text: cstr, codepointSize: ptr[int]) -> int
1045
+ external function GetCodepointPrevious(text: cstr, codepointSize: ptr[int]) -> int
1046
+ external function CodepointToUTF8(codepoint: int, utf8Size: ptr[int]) -> cstr
1047
+ external function LoadTextLines(text: cstr, count: ptr[int]) -> ptr[ptr[char]]
1048
+ external function UnloadTextLines(text: ptr[ptr[char]], lineCount: int) -> void
1049
+ external function TextCopy(dst: ptr[char], src: cstr) -> int
1050
+ external function TextIsEqual(text1: cstr, text2: cstr) -> bool
1051
+ external function TextLength(text: cstr) -> uint
1052
+ external function TextFormat(text: cstr, ...) -> cstr
1053
+ external function TextSubtext(text: cstr, position: int, length: int) -> cstr
1054
+ external function TextRemoveSpaces(text: cstr) -> cstr
1055
+ external function GetTextBetween(text: cstr, begin: cstr, end: cstr) -> ptr[char]
1056
+ external function TextReplace(text: cstr, search: cstr, replacement: cstr) -> ptr[char]
1057
+ external function TextReplaceAlloc(text: cstr, search: cstr, replacement: cstr) -> ptr[char]
1058
+ external function TextReplaceBetween(text: cstr, begin: cstr, end: cstr, replacement: cstr) -> ptr[char]
1059
+ external function TextReplaceBetweenAlloc(text: cstr, begin: cstr, end: cstr, replacement: cstr) -> ptr[char]
1060
+ external function TextInsert(text: cstr, insert: cstr, position: int) -> ptr[char]
1061
+ external function TextInsertAlloc(text: cstr, insert: cstr, position: int) -> ptr[char]
1062
+ external function TextJoin(textList: ptr[ptr[char]], count: int, delimiter: cstr) -> ptr[char]
1063
+ external function TextSplit(text: cstr, delimiter: char, count: ptr[int]) -> ptr[ptr[char]]
1064
+ external function TextAppend(text: ptr[char], append: cstr, position: ptr[int]) -> void
1065
+ external function TextFindIndex(text: cstr, search: cstr) -> int
1066
+ external function TextToUpper(text: cstr) -> ptr[char]
1067
+ external function TextToLower(text: cstr) -> ptr[char]
1068
+ external function TextToPascal(text: cstr) -> ptr[char]
1069
+ external function TextToSnake(text: cstr) -> ptr[char]
1070
+ external function TextToCamel(text: cstr) -> ptr[char]
1071
+ external function TextToInteger(text: cstr) -> int
1072
+ external function TextToFloat(text: cstr) -> float
1073
+ external function DrawLine3D(startPos: Vector3, endPos: Vector3, color: Color) -> void
1074
+ external function DrawPoint3D(position: Vector3, color: Color) -> void
1075
+ external function DrawCircle3D(center: Vector3, radius: float, rotationAxis: Vector3, rotationAngle: float, color: Color) -> void
1076
+ external function DrawTriangle3D(v1: Vector3, v2: Vector3, v3: Vector3, color: Color) -> void
1077
+ external function DrawTriangleStrip3D(points: const_ptr[Vector3], pointCount: int, color: Color) -> void
1078
+ external function DrawCube(position: Vector3, width: float, height: float, length: float, color: Color) -> void
1079
+ external function DrawCubeV(position: Vector3, size: Vector3, color: Color) -> void
1080
+ external function DrawCubeWires(position: Vector3, width: float, height: float, length: float, color: Color) -> void
1081
+ external function DrawCubeWiresV(position: Vector3, size: Vector3, color: Color) -> void
1082
+ external function DrawSphere(centerPos: Vector3, radius: float, color: Color) -> void
1083
+ external function DrawSphereEx(centerPos: Vector3, radius: float, rings: int, slices: int, color: Color) -> void
1084
+ external function DrawSphereWires(centerPos: Vector3, radius: float, rings: int, slices: int, color: Color) -> void
1085
+ external function DrawCylinder(position: Vector3, radiusTop: float, radiusBottom: float, height: float, slices: int, color: Color) -> void
1086
+ external function DrawCylinderEx(startPos: Vector3, endPos: Vector3, startRadius: float, endRadius: float, sides: int, color: Color) -> void
1087
+ external function DrawCylinderWires(position: Vector3, radiusTop: float, radiusBottom: float, height: float, slices: int, color: Color) -> void
1088
+ external function DrawCylinderWiresEx(startPos: Vector3, endPos: Vector3, startRadius: float, endRadius: float, sides: int, color: Color) -> void
1089
+ external function DrawCapsule(startPos: Vector3, endPos: Vector3, radius: float, slices: int, rings: int, color: Color) -> void
1090
+ external function DrawCapsuleWires(startPos: Vector3, endPos: Vector3, radius: float, slices: int, rings: int, color: Color) -> void
1091
+ external function DrawPlane(centerPos: Vector3, size: Vector2, color: Color) -> void
1092
+ external function DrawRay(ray: Ray, color: Color) -> void
1093
+ external function DrawGrid(slices: int, spacing: float) -> void
1094
+ external function LoadModel(fileName: cstr) -> Model
1095
+ external function LoadModelFromMesh(mesh: Mesh) -> Model
1096
+ external function IsModelValid(model: Model) -> bool
1097
+ external function UnloadModel(model: Model) -> void
1098
+ external function GetModelBoundingBox(model: Model) -> BoundingBox
1099
+ external function DrawModel(model: Model, position: Vector3, scale: float, tint: Color) -> void
1100
+ external function DrawModelEx(model: Model, position: Vector3, rotationAxis: Vector3, rotationAngle: float, scale: Vector3, tint: Color) -> void
1101
+ external function DrawModelWires(model: Model, position: Vector3, scale: float, tint: Color) -> void
1102
+ external function DrawModelWiresEx(model: Model, position: Vector3, rotationAxis: Vector3, rotationAngle: float, scale: Vector3, tint: Color) -> void
1103
+ external function DrawBoundingBox(box: BoundingBox, color: Color) -> void
1104
+ external function DrawBillboard(camera: Camera3D, texture: Texture, position: Vector3, scale: float, tint: Color) -> void
1105
+ external function DrawBillboardRec(camera: Camera3D, texture: Texture, source: Rectangle, position: Vector3, size: Vector2, tint: Color) -> void
1106
+ external function DrawBillboardPro(camera: Camera3D, texture: Texture, source: Rectangle, position: Vector3, up: Vector3, size: Vector2, origin: Vector2, rotation: float, tint: Color) -> void
1107
+ external function UploadMesh(mesh: ptr[Mesh], dynamic: bool) -> void
1108
+ external function UpdateMeshBuffer(mesh: Mesh, index: int, data: const_ptr[void], dataSize: int, offset: int) -> void
1109
+ external function UnloadMesh(mesh: Mesh) -> void
1110
+ external function DrawMesh(mesh: Mesh, material: Material, transform: Matrix) -> void
1111
+ external function DrawMeshInstanced(mesh: Mesh, material: Material, transforms: const_ptr[Matrix], instances: int) -> void
1112
+ external function GetMeshBoundingBox(mesh: Mesh) -> BoundingBox
1113
+ external function GenMeshTangents(mesh: ptr[Mesh]) -> void
1114
+ external function ExportMesh(mesh: Mesh, fileName: cstr) -> bool
1115
+ external function ExportMeshAsCode(mesh: Mesh, fileName: cstr) -> bool
1116
+ external function GenMeshPoly(sides: int, radius: float) -> Mesh
1117
+ external function GenMeshPlane(width: float, length: float, resX: int, resZ: int) -> Mesh
1118
+ external function GenMeshCube(width: float, height: float, length: float) -> Mesh
1119
+ external function GenMeshSphere(radius: float, rings: int, slices: int) -> Mesh
1120
+ external function GenMeshHemiSphere(radius: float, rings: int, slices: int) -> Mesh
1121
+ external function GenMeshCylinder(radius: float, height: float, slices: int) -> Mesh
1122
+ external function GenMeshCone(radius: float, height: float, slices: int) -> Mesh
1123
+ external function GenMeshTorus(radius: float, size: float, radSeg: int, sides: int) -> Mesh
1124
+ external function GenMeshKnot(radius: float, size: float, radSeg: int, sides: int) -> Mesh
1125
+ external function GenMeshHeightmap(heightmap: Image, size: Vector3) -> Mesh
1126
+ external function GenMeshCubicmap(cubicmap: Image, cubeSize: Vector3) -> Mesh
1127
+ external function LoadMaterials(fileName: cstr, materialCount: ptr[int]) -> ptr[Material]?
1128
+ external function LoadMaterialDefault() -> Material
1129
+ external function IsMaterialValid(material: Material) -> bool
1130
+ external function UnloadMaterial(material: Material) -> void
1131
+ external function SetMaterialTexture(material: ptr[Material], mapType: int, texture: Texture) -> void
1132
+ external function SetModelMeshMaterial(model: ptr[Model], meshId: int, materialId: int) -> void
1133
+ external function LoadModelAnimations(fileName: cstr, animCount: ptr[int]) -> ptr[ModelAnimation]?
1134
+ external function UpdateModelAnimation(model: Model, anim: ModelAnimation, frame: float) -> void
1135
+ external function UpdateModelAnimationEx(model: Model, animA: ModelAnimation, frameA: float, animB: ModelAnimation, frameB: float, blend: float) -> void
1136
+ external function UnloadModelAnimations(animations: ptr[ModelAnimation], animCount: int) -> void
1137
+ external function IsModelAnimationValid(model: Model, anim: ModelAnimation) -> bool
1138
+ external function CheckCollisionSpheres(center1: Vector3, radius1: float, center2: Vector3, radius2: float) -> bool
1139
+ external function CheckCollisionBoxes(box1: BoundingBox, box2: BoundingBox) -> bool
1140
+ external function CheckCollisionBoxSphere(box: BoundingBox, center: Vector3, radius: float) -> bool
1141
+ external function GetRayCollisionSphere(ray: Ray, center: Vector3, radius: float) -> RayCollision
1142
+ external function GetRayCollisionBox(ray: Ray, box: BoundingBox) -> RayCollision
1143
+ external function GetRayCollisionMesh(ray: Ray, mesh: Mesh, transform: Matrix) -> RayCollision
1144
+ external function GetRayCollisionTriangle(ray: Ray, p1: Vector3, p2: Vector3, p3: Vector3) -> RayCollision
1145
+ external function GetRayCollisionQuad(ray: Ray, p1: Vector3, p2: Vector3, p3: Vector3, p4: Vector3) -> RayCollision
1146
+
1147
+ type AudioCallback = fn(arg0: ptr[void], arg1: uint) -> void
1148
+
1149
+ external function InitAudioDevice() -> void
1150
+ external function CloseAudioDevice() -> void
1151
+ external function IsAudioDeviceReady() -> bool
1152
+ external function SetMasterVolume(volume: float) -> void
1153
+ external function GetMasterVolume() -> float
1154
+ external function LoadWave(fileName: cstr) -> Wave
1155
+ external function LoadWaveFromMemory(fileType: cstr, fileData: const_ptr[ubyte], dataSize: int) -> Wave
1156
+ external function IsWaveValid(wave: Wave) -> bool
1157
+ external function LoadSound(fileName: cstr) -> Sound
1158
+ external function LoadSoundFromWave(wave: Wave) -> Sound
1159
+ external function LoadSoundAlias(source: Sound) -> Sound
1160
+ external function IsSoundValid(sound: Sound) -> bool
1161
+ external function UpdateSound(sound: Sound, data: const_ptr[void], sampleCount: int) -> void
1162
+ external function UnloadWave(wave: Wave) -> void
1163
+ external function UnloadSound(sound: Sound) -> void
1164
+ external function UnloadSoundAlias(alias: Sound) -> void
1165
+ external function ExportWave(wave: Wave, fileName: cstr) -> bool
1166
+ external function ExportWaveAsCode(wave: Wave, fileName: cstr) -> bool
1167
+ external function PlaySound(sound: Sound) -> void
1168
+ external function StopSound(sound: Sound) -> void
1169
+ external function PauseSound(sound: Sound) -> void
1170
+ external function ResumeSound(sound: Sound) -> void
1171
+ external function IsSoundPlaying(sound: Sound) -> bool
1172
+ external function SetSoundVolume(sound: Sound, volume: float) -> void
1173
+ external function SetSoundPitch(sound: Sound, pitch: float) -> void
1174
+ external function SetSoundPan(sound: Sound, pan: float) -> void
1175
+ external function WaveCopy(wave: Wave) -> Wave
1176
+ external function WaveCrop(wave: ptr[Wave], initFrame: int, finalFrame: int) -> void
1177
+ external function WaveFormat(wave: ptr[Wave], sampleRate: int, sampleSize: int, channels: int) -> void
1178
+ external function LoadWaveSamples(wave: Wave) -> ptr[float]?
1179
+ external function UnloadWaveSamples(samples: ptr[float]) -> void
1180
+ external function LoadMusicStream(fileName: cstr) -> Music
1181
+ external function LoadMusicStreamFromMemory(fileType: cstr, data: const_ptr[ubyte], dataSize: int) -> Music
1182
+ external function IsMusicValid(music: Music) -> bool
1183
+ external function UnloadMusicStream(music: Music) -> void
1184
+ external function PlayMusicStream(music: Music) -> void
1185
+ external function IsMusicStreamPlaying(music: Music) -> bool
1186
+ external function UpdateMusicStream(music: Music) -> void
1187
+ external function StopMusicStream(music: Music) -> void
1188
+ external function PauseMusicStream(music: Music) -> void
1189
+ external function ResumeMusicStream(music: Music) -> void
1190
+ external function SeekMusicStream(music: Music, position: float) -> void
1191
+ external function SetMusicVolume(music: Music, volume: float) -> void
1192
+ external function SetMusicPitch(music: Music, pitch: float) -> void
1193
+ external function SetMusicPan(music: Music, pan: float) -> void
1194
+ external function GetMusicTimeLength(music: Music) -> float
1195
+ external function GetMusicTimePlayed(music: Music) -> float
1196
+ external function LoadAudioStream(sampleRate: uint, sampleSize: uint, channels: uint) -> AudioStream
1197
+ external function IsAudioStreamValid(stream: AudioStream) -> bool
1198
+ external function UnloadAudioStream(stream: AudioStream) -> void
1199
+ external function UpdateAudioStream(stream: AudioStream, data: const_ptr[void], frameCount: int) -> void
1200
+ external function IsAudioStreamProcessed(stream: AudioStream) -> bool
1201
+ external function PlayAudioStream(stream: AudioStream) -> void
1202
+ external function PauseAudioStream(stream: AudioStream) -> void
1203
+ external function ResumeAudioStream(stream: AudioStream) -> void
1204
+ external function IsAudioStreamPlaying(stream: AudioStream) -> bool
1205
+ external function StopAudioStream(stream: AudioStream) -> void
1206
+ external function SetAudioStreamVolume(stream: AudioStream, volume: float) -> void
1207
+ external function SetAudioStreamPitch(stream: AudioStream, pitch: float) -> void
1208
+ external function SetAudioStreamPan(stream: AudioStream, pan: float) -> void
1209
+ external function SetAudioStreamBufferSizeDefault(size: int) -> void
1210
+ external function SetAudioStreamCallback(stream: AudioStream, callback: fn(arg0: ptr[void], arg1: uint) -> void) -> void
1211
+ external function AttachAudioStreamProcessor(stream: AudioStream, processor: fn(arg0: ptr[void], arg1: uint) -> void) -> void
1212
+ external function DetachAudioStreamProcessor(stream: AudioStream, processor: fn(arg0: ptr[void], arg1: uint) -> void) -> void
1213
+ external function AttachAudioMixedProcessor(processor: fn(arg0: ptr[void], arg1: uint) -> void) -> void
1214
+ external function DetachAudioMixedProcessor(processor: fn(arg0: ptr[void], arg1: uint) -> void) -> void
1215
+
1216
+ const RAYLIB_VERSION_MAJOR: int = 6
1217
+ const RAYLIB_VERSION_MINOR: int = 0
1218
+ const RAYLIB_VERSION_PATCH: int = 0
1219
+ const PI: float = 3.14159274
1220
+ const LIGHTGRAY: Color = Color(r = 200, g = 200, b = 200, a = 255)
1221
+ const GRAY: Color = Color(r = 130, g = 130, b = 130, a = 255)
1222
+ const DARKGRAY: Color = Color(r = 80, g = 80, b = 80, a = 255)
1223
+ const YELLOW: Color = Color(r = 253, g = 249, b = 0, a = 255)
1224
+ const GOLD: Color = Color(r = 255, g = 203, b = 0, a = 255)
1225
+ const ORANGE: Color = Color(r = 255, g = 161, b = 0, a = 255)
1226
+ const PINK: Color = Color(r = 255, g = 109, b = 194, a = 255)
1227
+ const RED: Color = Color(r = 230, g = 41, b = 55, a = 255)
1228
+ const MAROON: Color = Color(r = 190, g = 33, b = 55, a = 255)
1229
+ const GREEN: Color = Color(r = 0, g = 228, b = 48, a = 255)
1230
+ const LIME: Color = Color(r = 0, g = 158, b = 47, a = 255)
1231
+ const DARKGREEN: Color = Color(r = 0, g = 117, b = 44, a = 255)
1232
+ const SKYBLUE: Color = Color(r = 102, g = 191, b = 255, a = 255)
1233
+ const BLUE: Color = Color(r = 0, g = 121, b = 241, a = 255)
1234
+ const DARKBLUE: Color = Color(r = 0, g = 82, b = 172, a = 255)
1235
+ const PURPLE: Color = Color(r = 200, g = 122, b = 255, a = 255)
1236
+ const VIOLET: Color = Color(r = 135, g = 60, b = 190, a = 255)
1237
+ const DARKPURPLE: Color = Color(r = 112, g = 31, b = 126, a = 255)
1238
+ const BEIGE: Color = Color(r = 211, g = 176, b = 131, a = 255)
1239
+ const BROWN: Color = Color(r = 127, g = 106, b = 79, a = 255)
1240
+ const DARKBROWN: Color = Color(r = 76, g = 63, b = 47, a = 255)
1241
+ const WHITE: Color = Color(r = 255, g = 255, b = 255, a = 255)
1242
+ const BLACK: Color = Color(r = 0, g = 0, b = 0, a = 255)
1243
+ const BLANK: Color = Color(r = 0, g = 0, b = 0, a = 0)
1244
+ const MAGENTA: Color = Color(r = 255, g = 0, b = 255, a = 255)
1245
+ const RAYWHITE: Color = Color(r = 245, g = 245, b = 245, a = 255)