raylib-bindings 0.0.5 → 0.0.7

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.
data/lib/raylib_main.rb CHANGED
@@ -1,2173 +1,2181 @@
1
- # Yet another raylib wrapper for Ruby
2
- #
3
- # * https://github.com/vaiorabbit/raylib-bindings
4
- #
5
- # [NOTICE] This is an automatically generated file.
6
-
7
- require 'ffi'
8
-
9
- module Raylib
10
- extend FFI::Library
11
- # Define/Macro
12
-
13
- RAYLIB_VERSION = "4.1-dev"
14
- DEG2RAD = Math::PI / 180.0
15
- RAD2DEG = 180.0 / Math::PI
16
-
17
- # Enum
18
-
19
- FLAG_VSYNC_HINT = 64
20
- FLAG_FULLSCREEN_MODE = 2
21
- FLAG_WINDOW_RESIZABLE = 4
22
- FLAG_WINDOW_UNDECORATED = 8
23
- FLAG_WINDOW_HIDDEN = 128
24
- FLAG_WINDOW_MINIMIZED = 512
25
- FLAG_WINDOW_MAXIMIZED = 1024
26
- FLAG_WINDOW_UNFOCUSED = 2048
27
- FLAG_WINDOW_TOPMOST = 4096
28
- FLAG_WINDOW_ALWAYS_RUN = 256
29
- FLAG_WINDOW_TRANSPARENT = 16
30
- FLAG_WINDOW_HIGHDPI = 8192
31
- FLAG_MSAA_4X_HINT = 32
32
- FLAG_INTERLACED_HINT = 65536
33
- LOG_ALL = 0
34
- LOG_TRACE = 1
35
- LOG_DEBUG = 2
36
- LOG_INFO = 3
37
- LOG_WARNING = 4
38
- LOG_ERROR = 5
39
- LOG_FATAL = 6
40
- LOG_NONE = 7
41
- KEY_NULL = 0
42
- KEY_APOSTROPHE = 39
43
- KEY_COMMA = 44
44
- KEY_MINUS = 45
45
- KEY_PERIOD = 46
46
- KEY_SLASH = 47
47
- KEY_ZERO = 48
48
- KEY_ONE = 49
49
- KEY_TWO = 50
50
- KEY_THREE = 51
51
- KEY_FOUR = 52
52
- KEY_FIVE = 53
53
- KEY_SIX = 54
54
- KEY_SEVEN = 55
55
- KEY_EIGHT = 56
56
- KEY_NINE = 57
57
- KEY_SEMICOLON = 59
58
- KEY_EQUAL = 61
59
- KEY_A = 65
60
- KEY_B = 66
61
- KEY_C = 67
62
- KEY_D = 68
63
- KEY_E = 69
64
- KEY_F = 70
65
- KEY_G = 71
66
- KEY_H = 72
67
- KEY_I = 73
68
- KEY_J = 74
69
- KEY_K = 75
70
- KEY_L = 76
71
- KEY_M = 77
72
- KEY_N = 78
73
- KEY_O = 79
74
- KEY_P = 80
75
- KEY_Q = 81
76
- KEY_R = 82
77
- KEY_S = 83
78
- KEY_T = 84
79
- KEY_U = 85
80
- KEY_V = 86
81
- KEY_W = 87
82
- KEY_X = 88
83
- KEY_Y = 89
84
- KEY_Z = 90
85
- KEY_LEFT_BRACKET = 91
86
- KEY_BACKSLASH = 92
87
- KEY_RIGHT_BRACKET = 93
88
- KEY_GRAVE = 96
89
- KEY_SPACE = 32
90
- KEY_ESCAPE = 256
91
- KEY_ENTER = 257
92
- KEY_TAB = 258
93
- KEY_BACKSPACE = 259
94
- KEY_INSERT = 260
95
- KEY_DELETE = 261
96
- KEY_RIGHT = 262
97
- KEY_LEFT = 263
98
- KEY_DOWN = 264
99
- KEY_UP = 265
100
- KEY_PAGE_UP = 266
101
- KEY_PAGE_DOWN = 267
102
- KEY_HOME = 268
103
- KEY_END = 269
104
- KEY_CAPS_LOCK = 280
105
- KEY_SCROLL_LOCK = 281
106
- KEY_NUM_LOCK = 282
107
- KEY_PRINT_SCREEN = 283
108
- KEY_PAUSE = 284
109
- KEY_F1 = 290
110
- KEY_F2 = 291
111
- KEY_F3 = 292
112
- KEY_F4 = 293
113
- KEY_F5 = 294
114
- KEY_F6 = 295
115
- KEY_F7 = 296
116
- KEY_F8 = 297
117
- KEY_F9 = 298
118
- KEY_F10 = 299
119
- KEY_F11 = 300
120
- KEY_F12 = 301
121
- KEY_LEFT_SHIFT = 340
122
- KEY_LEFT_CONTROL = 341
123
- KEY_LEFT_ALT = 342
124
- KEY_LEFT_SUPER = 343
125
- KEY_RIGHT_SHIFT = 344
126
- KEY_RIGHT_CONTROL = 345
127
- KEY_RIGHT_ALT = 346
128
- KEY_RIGHT_SUPER = 347
129
- KEY_KB_MENU = 348
130
- KEY_KP_0 = 320
131
- KEY_KP_1 = 321
132
- KEY_KP_2 = 322
133
- KEY_KP_3 = 323
134
- KEY_KP_4 = 324
135
- KEY_KP_5 = 325
136
- KEY_KP_6 = 326
137
- KEY_KP_7 = 327
138
- KEY_KP_8 = 328
139
- KEY_KP_9 = 329
140
- KEY_KP_DECIMAL = 330
141
- KEY_KP_DIVIDE = 331
142
- KEY_KP_MULTIPLY = 332
143
- KEY_KP_SUBTRACT = 333
144
- KEY_KP_ADD = 334
145
- KEY_KP_ENTER = 335
146
- KEY_KP_EQUAL = 336
147
- KEY_BACK = 4
148
- KEY_MENU = 82
149
- KEY_VOLUME_UP = 24
150
- KEY_VOLUME_DOWN = 25
151
- MOUSE_BUTTON_LEFT = 0
152
- MOUSE_BUTTON_RIGHT = 1
153
- MOUSE_BUTTON_MIDDLE = 2
154
- MOUSE_BUTTON_SIDE = 3
155
- MOUSE_BUTTON_EXTRA = 4
156
- MOUSE_BUTTON_FORWARD = 5
157
- MOUSE_BUTTON_BACK = 6
158
- MOUSE_CURSOR_DEFAULT = 0
159
- MOUSE_CURSOR_ARROW = 1
160
- MOUSE_CURSOR_IBEAM = 2
161
- MOUSE_CURSOR_CROSSHAIR = 3
162
- MOUSE_CURSOR_POINTING_HAND = 4
163
- MOUSE_CURSOR_RESIZE_EW = 5
164
- MOUSE_CURSOR_RESIZE_NS = 6
165
- MOUSE_CURSOR_RESIZE_NWSE = 7
166
- MOUSE_CURSOR_RESIZE_NESW = 8
167
- MOUSE_CURSOR_RESIZE_ALL = 9
168
- MOUSE_CURSOR_NOT_ALLOWED = 10
169
- GAMEPAD_BUTTON_UNKNOWN = 0
170
- GAMEPAD_BUTTON_LEFT_FACE_UP = 1
171
- GAMEPAD_BUTTON_LEFT_FACE_RIGHT = 2
172
- GAMEPAD_BUTTON_LEFT_FACE_DOWN = 3
173
- GAMEPAD_BUTTON_LEFT_FACE_LEFT = 4
174
- GAMEPAD_BUTTON_RIGHT_FACE_UP = 5
175
- GAMEPAD_BUTTON_RIGHT_FACE_RIGHT = 6
176
- GAMEPAD_BUTTON_RIGHT_FACE_DOWN = 7
177
- GAMEPAD_BUTTON_RIGHT_FACE_LEFT = 8
178
- GAMEPAD_BUTTON_LEFT_TRIGGER_1 = 9
179
- GAMEPAD_BUTTON_LEFT_TRIGGER_2 = 10
180
- GAMEPAD_BUTTON_RIGHT_TRIGGER_1 = 11
181
- GAMEPAD_BUTTON_RIGHT_TRIGGER_2 = 12
182
- GAMEPAD_BUTTON_MIDDLE_LEFT = 13
183
- GAMEPAD_BUTTON_MIDDLE = 14
184
- GAMEPAD_BUTTON_MIDDLE_RIGHT = 15
185
- GAMEPAD_BUTTON_LEFT_THUMB = 16
186
- GAMEPAD_BUTTON_RIGHT_THUMB = 17
187
- GAMEPAD_AXIS_LEFT_X = 0
188
- GAMEPAD_AXIS_LEFT_Y = 1
189
- GAMEPAD_AXIS_RIGHT_X = 2
190
- GAMEPAD_AXIS_RIGHT_Y = 3
191
- GAMEPAD_AXIS_LEFT_TRIGGER = 4
192
- GAMEPAD_AXIS_RIGHT_TRIGGER = 5
193
- MATERIAL_MAP_ALBEDO = 0
194
- MATERIAL_MAP_METALNESS = 1
195
- MATERIAL_MAP_NORMAL = 2
196
- MATERIAL_MAP_ROUGHNESS = 3
197
- MATERIAL_MAP_OCCLUSION = 4
198
- MATERIAL_MAP_EMISSION = 5
199
- MATERIAL_MAP_HEIGHT = 6
200
- MATERIAL_MAP_CUBEMAP = 7
201
- MATERIAL_MAP_IRRADIANCE = 8
202
- MATERIAL_MAP_PREFILTER = 9
203
- MATERIAL_MAP_BRDF = 10
204
- SHADER_LOC_VERTEX_POSITION = 0
205
- SHADER_LOC_VERTEX_TEXCOORD01 = 1
206
- SHADER_LOC_VERTEX_TEXCOORD02 = 2
207
- SHADER_LOC_VERTEX_NORMAL = 3
208
- SHADER_LOC_VERTEX_TANGENT = 4
209
- SHADER_LOC_VERTEX_COLOR = 5
210
- SHADER_LOC_MATRIX_MVP = 6
211
- SHADER_LOC_MATRIX_VIEW = 7
212
- SHADER_LOC_MATRIX_PROJECTION = 8
213
- SHADER_LOC_MATRIX_MODEL = 9
214
- SHADER_LOC_MATRIX_NORMAL = 10
215
- SHADER_LOC_VECTOR_VIEW = 11
216
- SHADER_LOC_COLOR_DIFFUSE = 12
217
- SHADER_LOC_COLOR_SPECULAR = 13
218
- SHADER_LOC_COLOR_AMBIENT = 14
219
- SHADER_LOC_MAP_ALBEDO = 15
220
- SHADER_LOC_MAP_METALNESS = 16
221
- SHADER_LOC_MAP_NORMAL = 17
222
- SHADER_LOC_MAP_ROUGHNESS = 18
223
- SHADER_LOC_MAP_OCCLUSION = 19
224
- SHADER_LOC_MAP_EMISSION = 20
225
- SHADER_LOC_MAP_HEIGHT = 21
226
- SHADER_LOC_MAP_CUBEMAP = 22
227
- SHADER_LOC_MAP_IRRADIANCE = 23
228
- SHADER_LOC_MAP_PREFILTER = 24
229
- SHADER_LOC_MAP_BRDF = 25
230
- SHADER_UNIFORM_FLOAT = 0
231
- SHADER_UNIFORM_VEC2 = 1
232
- SHADER_UNIFORM_VEC3 = 2
233
- SHADER_UNIFORM_VEC4 = 3
234
- SHADER_UNIFORM_INT = 4
235
- SHADER_UNIFORM_IVEC2 = 5
236
- SHADER_UNIFORM_IVEC3 = 6
237
- SHADER_UNIFORM_IVEC4 = 7
238
- SHADER_UNIFORM_SAMPLER2D = 8
239
- SHADER_ATTRIB_FLOAT = 0
240
- SHADER_ATTRIB_VEC2 = 1
241
- SHADER_ATTRIB_VEC3 = 2
242
- SHADER_ATTRIB_VEC4 = 3
243
- PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = 1
244
- PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA = 2
245
- PIXELFORMAT_UNCOMPRESSED_R5G6B5 = 3
246
- PIXELFORMAT_UNCOMPRESSED_R8G8B8 = 4
247
- PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 = 5
248
- PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 = 6
249
- PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 = 7
250
- PIXELFORMAT_UNCOMPRESSED_R32 = 8
251
- PIXELFORMAT_UNCOMPRESSED_R32G32B32 = 9
252
- PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 = 10
253
- PIXELFORMAT_COMPRESSED_DXT1_RGB = 11
254
- PIXELFORMAT_COMPRESSED_DXT1_RGBA = 12
255
- PIXELFORMAT_COMPRESSED_DXT3_RGBA = 13
256
- PIXELFORMAT_COMPRESSED_DXT5_RGBA = 14
257
- PIXELFORMAT_COMPRESSED_ETC1_RGB = 15
258
- PIXELFORMAT_COMPRESSED_ETC2_RGB = 16
259
- PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA = 17
260
- PIXELFORMAT_COMPRESSED_PVRT_RGB = 18
261
- PIXELFORMAT_COMPRESSED_PVRT_RGBA = 19
262
- PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA = 20
263
- PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA = 21
264
- TEXTURE_FILTER_POINT = 0
265
- TEXTURE_FILTER_BILINEAR = 1
266
- TEXTURE_FILTER_TRILINEAR = 2
267
- TEXTURE_FILTER_ANISOTROPIC_4X = 3
268
- TEXTURE_FILTER_ANISOTROPIC_8X = 4
269
- TEXTURE_FILTER_ANISOTROPIC_16X = 5
270
- TEXTURE_WRAP_REPEAT = 0
271
- TEXTURE_WRAP_CLAMP = 1
272
- TEXTURE_WRAP_MIRROR_REPEAT = 2
273
- TEXTURE_WRAP_MIRROR_CLAMP = 3
274
- CUBEMAP_LAYOUT_AUTO_DETECT = 0
275
- CUBEMAP_LAYOUT_LINE_VERTICAL = 1
276
- CUBEMAP_LAYOUT_LINE_HORIZONTAL = 2
277
- CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR = 3
278
- CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE = 4
279
- CUBEMAP_LAYOUT_PANORAMA = 5
280
- FONT_DEFAULT = 0
281
- FONT_BITMAP = 1
282
- FONT_SDF = 2
283
- BLEND_ALPHA = 0
284
- BLEND_ADDITIVE = 1
285
- BLEND_MULTIPLIED = 2
286
- BLEND_ADD_COLORS = 3
287
- BLEND_SUBTRACT_COLORS = 4
288
- BLEND_ALPHA_PREMUL = 5
289
- BLEND_CUSTOM = 6
290
- GESTURE_NONE = 0
291
- GESTURE_TAP = 1
292
- GESTURE_DOUBLETAP = 2
293
- GESTURE_HOLD = 4
294
- GESTURE_DRAG = 8
295
- GESTURE_SWIPE_RIGHT = 16
296
- GESTURE_SWIPE_LEFT = 32
297
- GESTURE_SWIPE_UP = 64
298
- GESTURE_SWIPE_DOWN = 128
299
- GESTURE_PINCH_IN = 256
300
- GESTURE_PINCH_OUT = 512
301
- CAMERA_CUSTOM = 0
302
- CAMERA_FREE = 1
303
- CAMERA_ORBITAL = 2
304
- CAMERA_FIRST_PERSON = 3
305
- CAMERA_THIRD_PERSON = 4
306
- CAMERA_PERSPECTIVE = 0
307
- CAMERA_ORTHOGRAPHIC = 1
308
- NPATCH_NINE_PATCH = 0
309
- NPATCH_THREE_PATCH_VERTICAL = 1
310
- NPATCH_THREE_PATCH_HORIZONTAL = 2
311
-
312
- # Typedef
313
-
314
- typedef :int, :ConfigFlags
315
- typedef :int, :TraceLogLevel
316
- typedef :int, :KeyboardKey
317
- typedef :int, :MouseButton
318
- typedef :int, :MouseCursor
319
- typedef :int, :GamepadButton
320
- typedef :int, :GamepadAxis
321
- typedef :int, :MaterialMapIndex
322
- typedef :int, :ShaderLocationIndex
323
- typedef :int, :ShaderUniformDataType
324
- typedef :int, :ShaderAttributeDataType
325
- typedef :int, :PixelFormat
326
- typedef :int, :TextureFilter
327
- typedef :int, :TextureWrap
328
- typedef :int, :CubemapLayout
329
- typedef :int, :FontType
330
- typedef :int, :BlendMode
331
- typedef :int, :Gesture
332
- typedef :int, :CameraMode
333
- typedef :int, :CameraProjection
334
- typedef :int, :NPatchLayout
335
- callback :TraceLogCallback, [:int, :pointer, :int], :void
336
- callback :LoadFileDataCallback, [:pointer, :pointer], :pointer
337
- callback :SaveFileDataCallback, [:pointer, :pointer, :uint], :bool
338
- callback :LoadFileTextCallback, [:pointer], :pointer
339
- callback :SaveFileTextCallback, [:pointer, :pointer], :bool
340
-
341
- # Struct
342
-
343
- class Vector2 < FFI::Struct
344
- layout(
345
- :x, :float,
346
- :y, :float,
347
- )
348
- end
349
-
350
- class Vector3 < FFI::Struct
351
- layout(
352
- :x, :float,
353
- :y, :float,
354
- :z, :float,
355
- )
356
- end
357
-
358
- class Vector4 < FFI::Struct
359
- layout(
360
- :x, :float,
361
- :y, :float,
362
- :z, :float,
363
- :w, :float,
364
- )
365
- end
366
-
367
- Quaternion = Vector4
368
-
369
- class Matrix < FFI::Struct
370
- layout(
371
- :m0, :float,
372
- :m4, :float,
373
- :m8, :float,
374
- :m12, :float,
375
- :m1, :float,
376
- :m5, :float,
377
- :m9, :float,
378
- :m13, :float,
379
- :m2, :float,
380
- :m6, :float,
381
- :m10, :float,
382
- :m14, :float,
383
- :m3, :float,
384
- :m7, :float,
385
- :m11, :float,
386
- :m15, :float,
387
- )
388
- end
389
-
390
- class Color < FFI::Struct
391
- layout(
392
- :r, :uchar,
393
- :g, :uchar,
394
- :b, :uchar,
395
- :a, :uchar,
396
- )
397
- end
398
-
399
- class Rectangle < FFI::Struct
400
- layout(
401
- :x, :float,
402
- :y, :float,
403
- :width, :float,
404
- :height, :float,
405
- )
406
- end
407
-
408
- class Image < FFI::Struct
409
- layout(
410
- :data, :pointer,
411
- :width, :int,
412
- :height, :int,
413
- :mipmaps, :int,
414
- :format, :int,
415
- )
416
- end
417
-
418
- class Texture < FFI::Struct
419
- layout(
420
- :id, :uint,
421
- :width, :int,
422
- :height, :int,
423
- :mipmaps, :int,
424
- :format, :int,
425
- )
426
- end
427
-
428
- Texture2D = Texture
429
- TextureCubemap = Texture
430
-
431
- class RenderTexture < FFI::Struct
432
- layout(
433
- :id, :uint,
434
- :texture, Texture,
435
- :depth, Texture,
436
- )
437
- end
438
-
439
- RenderTexture2D = RenderTexture
440
-
441
- class NPatchInfo < FFI::Struct
442
- layout(
443
- :source, Rectangle,
444
- :left, :int,
445
- :top, :int,
446
- :right, :int,
447
- :bottom, :int,
448
- :layout, :int,
449
- )
450
- end
451
-
452
- class GlyphInfo < FFI::Struct
453
- layout(
454
- :value, :int,
455
- :offsetX, :int,
456
- :offsetY, :int,
457
- :advanceX, :int,
458
- :image, Image,
459
- )
460
- end
461
-
462
- class Font < FFI::Struct
463
- layout(
464
- :baseSize, :int,
465
- :glyphCount, :int,
466
- :glyphPadding, :int,
467
- :texture, Texture2D,
468
- :recs, :pointer,
469
- :glyphs, :pointer,
470
- )
471
- end
472
-
473
- class Camera3D < FFI::Struct
474
- layout(
475
- :position, Vector3,
476
- :target, Vector3,
477
- :up, Vector3,
478
- :fovy, :float,
479
- :projection, :int,
480
- )
481
- end
482
-
483
- Camera = Camera3D
484
-
485
- class Camera2D < FFI::Struct
486
- layout(
487
- :offset, Vector2,
488
- :target, Vector2,
489
- :rotation, :float,
490
- :zoom, :float,
491
- )
492
- end
493
-
494
- class Mesh < FFI::Struct
495
- layout(
496
- :vertexCount, :int,
497
- :triangleCount, :int,
498
- :vertices, :pointer,
499
- :texcoords, :pointer,
500
- :texcoords2, :pointer,
501
- :normals, :pointer,
502
- :tangents, :pointer,
503
- :colors, :pointer,
504
- :indices, :pointer,
505
- :animVertices, :pointer,
506
- :animNormals, :pointer,
507
- :boneIds, :pointer,
508
- :boneWeights, :pointer,
509
- :vaoId, :uint,
510
- :vboId, :pointer,
511
- )
512
- end
513
-
514
- class Shader < FFI::Struct
515
- layout(
516
- :id, :uint,
517
- :locs, :pointer,
518
- )
519
- end
520
-
521
- class MaterialMap < FFI::Struct
522
- layout(
523
- :texture, Texture2D,
524
- :color, Color,
525
- :value, :float,
526
- )
527
- end
528
-
529
- class Material < FFI::Struct
530
- layout(
531
- :shader, Shader,
532
- :maps, :pointer,
533
- :params, [:float, 4],
534
- )
535
- end
536
-
537
- class Transform < FFI::Struct
538
- layout(
539
- :translation, Vector3,
540
- :rotation, Quaternion,
541
- :scale, Vector3,
542
- )
543
- end
544
-
545
- class BoneInfo < FFI::Struct
546
- layout(
547
- :name, [:char, 32],
548
- :parent, :int,
549
- )
550
- end
551
-
552
- class Model < FFI::Struct
553
- layout(
554
- :transform, Matrix,
555
- :meshCount, :int,
556
- :materialCount, :int,
557
- :meshes, :pointer,
558
- :materials, :pointer,
559
- :meshMaterial, :pointer,
560
- :boneCount, :int,
561
- :bones, :pointer,
562
- :bindPose, :pointer,
563
- )
564
- end
565
-
566
- class ModelAnimation < FFI::Struct
567
- layout(
568
- :boneCount, :int,
569
- :frameCount, :int,
570
- :bones, :pointer,
571
- :framePoses, :pointer,
572
- )
573
- end
574
-
575
- class Ray < FFI::Struct
576
- layout(
577
- :position, Vector3,
578
- :direction, Vector3,
579
- )
580
- end
581
-
582
- class RayCollision < FFI::Struct
583
- layout(
584
- :hit, :bool,
585
- :distance, :float,
586
- :point, Vector3,
587
- :normal, Vector3,
588
- )
589
- end
590
-
591
- class BoundingBox < FFI::Struct
592
- layout(
593
- :min, Vector3,
594
- :max, Vector3,
595
- )
596
- end
597
-
598
- class Wave < FFI::Struct
599
- layout(
600
- :frameCount, :uint,
601
- :sampleRate, :uint,
602
- :sampleSize, :uint,
603
- :channels, :uint,
604
- :data, :pointer,
605
- )
606
- end
607
-
608
- class AudioStream < FFI::Struct
609
- layout(
610
- :buffer, :pointer,
611
- :sampleRate, :uint,
612
- :sampleSize, :uint,
613
- :channels, :uint,
614
- )
615
- end
616
-
617
- class Sound < FFI::Struct
618
- layout(
619
- :stream, AudioStream,
620
- :frameCount, :uint,
621
- )
622
- end
623
-
624
- class Music < FFI::Struct
625
- layout(
626
- :stream, AudioStream,
627
- :frameCount, :uint,
628
- :looping, :bool,
629
- :ctxType, :int,
630
- :ctxData, :pointer,
631
- )
632
- end
633
-
634
- class VrDeviceInfo < FFI::Struct
635
- layout(
636
- :hResolution, :int,
637
- :vResolution, :int,
638
- :hScreenSize, :float,
639
- :vScreenSize, :float,
640
- :vScreenCenter, :float,
641
- :eyeToScreenDistance, :float,
642
- :lensSeparationDistance, :float,
643
- :interpupillaryDistance, :float,
644
- :lensDistortionValues, [:float, 4],
645
- :chromaAbCorrection, [:float, 4],
646
- )
647
- end
648
-
649
- class VrStereoConfig < FFI::Struct
650
- layout(
651
- :projection, [Matrix, 2],
652
- :viewOffset, [Matrix, 2],
653
- :leftLensCenter, [:float, 2],
654
- :rightLensCenter, [:float, 2],
655
- :leftScreenCenter, [:float, 2],
656
- :rightScreenCenter, [:float, 2],
657
- :scale, [:float, 2],
658
- :scaleIn, [:float, 2],
659
- )
660
- end
661
-
662
-
663
- # Function
664
-
665
- def self.setup_raylib_symbols()
666
- symbols = [
667
- :InitWindow,
668
- :WindowShouldClose,
669
- :CloseWindow,
670
- :IsWindowReady,
671
- :IsWindowFullscreen,
672
- :IsWindowHidden,
673
- :IsWindowMinimized,
674
- :IsWindowMaximized,
675
- :IsWindowFocused,
676
- :IsWindowResized,
677
- :IsWindowState,
678
- :SetWindowState,
679
- :ClearWindowState,
680
- :ToggleFullscreen,
681
- :MaximizeWindow,
682
- :MinimizeWindow,
683
- :RestoreWindow,
684
- :SetWindowIcon,
685
- :SetWindowTitle,
686
- :SetWindowPosition,
687
- :SetWindowMonitor,
688
- :SetWindowMinSize,
689
- :SetWindowSize,
690
- :SetWindowOpacity,
691
- :GetWindowHandle,
692
- :GetScreenWidth,
693
- :GetScreenHeight,
694
- :GetRenderWidth,
695
- :GetRenderHeight,
696
- :GetMonitorCount,
697
- :GetCurrentMonitor,
698
- :GetMonitorPosition,
699
- :GetMonitorWidth,
700
- :GetMonitorHeight,
701
- :GetMonitorPhysicalWidth,
702
- :GetMonitorPhysicalHeight,
703
- :GetMonitorRefreshRate,
704
- :GetWindowPosition,
705
- :GetWindowScaleDPI,
706
- :GetMonitorName,
707
- :SetClipboardText,
708
- :GetClipboardText,
709
- :SwapScreenBuffer,
710
- :PollInputEvents,
711
- :WaitTime,
712
- :ShowCursor,
713
- :HideCursor,
714
- :IsCursorHidden,
715
- :EnableCursor,
716
- :DisableCursor,
717
- :IsCursorOnScreen,
718
- :ClearBackground,
719
- :BeginDrawing,
720
- :EndDrawing,
721
- :BeginMode2D,
722
- :EndMode2D,
723
- :BeginMode3D,
724
- :EndMode3D,
725
- :BeginTextureMode,
726
- :EndTextureMode,
727
- :BeginShaderMode,
728
- :EndShaderMode,
729
- :BeginBlendMode,
730
- :EndBlendMode,
731
- :BeginScissorMode,
732
- :EndScissorMode,
733
- :BeginVrStereoMode,
734
- :EndVrStereoMode,
735
- :LoadVrStereoConfig,
736
- :UnloadVrStereoConfig,
737
- :LoadShader,
738
- :LoadShaderFromMemory,
739
- :GetShaderLocation,
740
- :GetShaderLocationAttrib,
741
- :SetShaderValue,
742
- :SetShaderValueV,
743
- :SetShaderValueMatrix,
744
- :SetShaderValueTexture,
745
- :UnloadShader,
746
- :GetMouseRay,
747
- :GetCameraMatrix,
748
- :GetCameraMatrix2D,
749
- :GetWorldToScreen,
750
- :GetWorldToScreenEx,
751
- :GetWorldToScreen2D,
752
- :GetScreenToWorld2D,
753
- :SetTargetFPS,
754
- :GetFPS,
755
- :GetFrameTime,
756
- :GetTime,
757
- :GetRandomValue,
758
- :SetRandomSeed,
759
- :TakeScreenshot,
760
- :SetConfigFlags,
761
- :TraceLog,
762
- :SetTraceLogLevel,
763
- :MemAlloc,
764
- :MemRealloc,
765
- :MemFree,
766
- :SetTraceLogCallback,
767
- :SetLoadFileDataCallback,
768
- :SetSaveFileDataCallback,
769
- :SetLoadFileTextCallback,
770
- :SetSaveFileTextCallback,
771
- :LoadFileData,
772
- :UnloadFileData,
773
- :SaveFileData,
774
- :LoadFileText,
775
- :UnloadFileText,
776
- :SaveFileText,
777
- :FileExists,
778
- :DirectoryExists,
779
- :IsFileExtension,
780
- :GetFileLength,
781
- :GetFileExtension,
782
- :GetFileName,
783
- :GetFileNameWithoutExt,
784
- :GetDirectoryPath,
785
- :GetPrevDirectoryPath,
786
- :GetWorkingDirectory,
787
- :GetApplicationDirectory,
788
- :GetDirectoryFiles,
789
- :ClearDirectoryFiles,
790
- :ChangeDirectory,
791
- :IsFileDropped,
792
- :GetDroppedFiles,
793
- :ClearDroppedFiles,
794
- :GetFileModTime,
795
- :CompressData,
796
- :DecompressData,
797
- :EncodeDataBase64,
798
- :DecodeDataBase64,
799
- :SaveStorageValue,
800
- :LoadStorageValue,
801
- :OpenURL,
802
- :IsKeyPressed,
803
- :IsKeyDown,
804
- :IsKeyReleased,
805
- :IsKeyUp,
806
- :SetExitKey,
807
- :GetKeyPressed,
808
- :GetCharPressed,
809
- :IsGamepadAvailable,
810
- :GetGamepadName,
811
- :IsGamepadButtonPressed,
812
- :IsGamepadButtonDown,
813
- :IsGamepadButtonReleased,
814
- :IsGamepadButtonUp,
815
- :GetGamepadButtonPressed,
816
- :GetGamepadAxisCount,
817
- :GetGamepadAxisMovement,
818
- :SetGamepadMappings,
819
- :IsMouseButtonPressed,
820
- :IsMouseButtonDown,
821
- :IsMouseButtonReleased,
822
- :IsMouseButtonUp,
823
- :GetMouseX,
824
- :GetMouseY,
825
- :GetMousePosition,
826
- :GetMouseDelta,
827
- :SetMousePosition,
828
- :SetMouseOffset,
829
- :SetMouseScale,
830
- :GetMouseWheelMove,
831
- :SetMouseCursor,
832
- :GetTouchX,
833
- :GetTouchY,
834
- :GetTouchPosition,
835
- :GetTouchPointId,
836
- :GetTouchPointCount,
837
- :SetGesturesEnabled,
838
- :IsGestureDetected,
839
- :GetGestureDetected,
840
- :GetGestureHoldDuration,
841
- :GetGestureDragVector,
842
- :GetGestureDragAngle,
843
- :GetGesturePinchVector,
844
- :GetGesturePinchAngle,
845
- :SetCameraMode,
846
- :UpdateCamera,
847
- :SetCameraPanControl,
848
- :SetCameraAltControl,
849
- :SetCameraSmoothZoomControl,
850
- :SetCameraMoveControls,
851
- :SetShapesTexture,
852
- :DrawPixel,
853
- :DrawPixelV,
854
- :DrawLine,
855
- :DrawLineV,
856
- :DrawLineEx,
857
- :DrawLineBezier,
858
- :DrawLineBezierQuad,
859
- :DrawLineBezierCubic,
860
- :DrawLineStrip,
861
- :DrawCircle,
862
- :DrawCircleSector,
863
- :DrawCircleSectorLines,
864
- :DrawCircleGradient,
865
- :DrawCircleV,
866
- :DrawCircleLines,
867
- :DrawEllipse,
868
- :DrawEllipseLines,
869
- :DrawRing,
870
- :DrawRingLines,
871
- :DrawRectangle,
872
- :DrawRectangleV,
873
- :DrawRectangleRec,
874
- :DrawRectanglePro,
875
- :DrawRectangleGradientV,
876
- :DrawRectangleGradientH,
877
- :DrawRectangleGradientEx,
878
- :DrawRectangleLines,
879
- :DrawRectangleLinesEx,
880
- :DrawRectangleRounded,
881
- :DrawRectangleRoundedLines,
882
- :DrawTriangle,
883
- :DrawTriangleLines,
884
- :DrawTriangleFan,
885
- :DrawTriangleStrip,
886
- :DrawPoly,
887
- :DrawPolyLines,
888
- :DrawPolyLinesEx,
889
- :CheckCollisionRecs,
890
- :CheckCollisionCircles,
891
- :CheckCollisionCircleRec,
892
- :CheckCollisionPointRec,
893
- :CheckCollisionPointCircle,
894
- :CheckCollisionPointTriangle,
895
- :CheckCollisionLines,
896
- :CheckCollisionPointLine,
897
- :GetCollisionRec,
898
- :LoadImage,
899
- :LoadImageRaw,
900
- :LoadImageAnim,
901
- :LoadImageFromMemory,
902
- :LoadImageFromTexture,
903
- :LoadImageFromScreen,
904
- :UnloadImage,
905
- :ExportImage,
906
- :ExportImageAsCode,
907
- :GenImageColor,
908
- :GenImageGradientV,
909
- :GenImageGradientH,
910
- :GenImageGradientRadial,
911
- :GenImageChecked,
912
- :GenImageWhiteNoise,
913
- :GenImageCellular,
914
- :ImageCopy,
915
- :ImageFromImage,
916
- :ImageText,
917
- :ImageTextEx,
918
- :ImageFormat,
919
- :ImageToPOT,
920
- :ImageCrop,
921
- :ImageAlphaCrop,
922
- :ImageAlphaClear,
923
- :ImageAlphaMask,
924
- :ImageAlphaPremultiply,
925
- :ImageResize,
926
- :ImageResizeNN,
927
- :ImageResizeCanvas,
928
- :ImageMipmaps,
929
- :ImageDither,
930
- :ImageFlipVertical,
931
- :ImageFlipHorizontal,
932
- :ImageRotateCW,
933
- :ImageRotateCCW,
934
- :ImageColorTint,
935
- :ImageColorInvert,
936
- :ImageColorGrayscale,
937
- :ImageColorContrast,
938
- :ImageColorBrightness,
939
- :ImageColorReplace,
940
- :LoadImageColors,
941
- :LoadImagePalette,
942
- :UnloadImageColors,
943
- :UnloadImagePalette,
944
- :GetImageAlphaBorder,
945
- :GetImageColor,
946
- :ImageClearBackground,
947
- :ImageDrawPixel,
948
- :ImageDrawPixelV,
949
- :ImageDrawLine,
950
- :ImageDrawLineV,
951
- :ImageDrawCircle,
952
- :ImageDrawCircleV,
953
- :ImageDrawRectangle,
954
- :ImageDrawRectangleV,
955
- :ImageDrawRectangleRec,
956
- :ImageDrawRectangleLines,
957
- :ImageDraw,
958
- :ImageDrawText,
959
- :ImageDrawTextEx,
960
- :LoadTexture,
961
- :LoadTextureFromImage,
962
- :LoadTextureCubemap,
963
- :LoadRenderTexture,
964
- :UnloadTexture,
965
- :UnloadRenderTexture,
966
- :UpdateTexture,
967
- :UpdateTextureRec,
968
- :GenTextureMipmaps,
969
- :SetTextureFilter,
970
- :SetTextureWrap,
971
- :DrawTexture,
972
- :DrawTextureV,
973
- :DrawTextureEx,
974
- :DrawTextureRec,
975
- :DrawTextureQuad,
976
- :DrawTextureTiled,
977
- :DrawTexturePro,
978
- :DrawTextureNPatch,
979
- :DrawTexturePoly,
980
- :Fade,
981
- :ColorToInt,
982
- :ColorNormalize,
983
- :ColorFromNormalized,
984
- :ColorToHSV,
985
- :ColorFromHSV,
986
- :ColorAlpha,
987
- :ColorAlphaBlend,
988
- :GetColor,
989
- :GetPixelColor,
990
- :SetPixelColor,
991
- :GetPixelDataSize,
992
- :GetFontDefault,
993
- :LoadFont,
994
- :LoadFontEx,
995
- :LoadFontFromImage,
996
- :LoadFontFromMemory,
997
- :LoadFontData,
998
- :GenImageFontAtlas,
999
- :UnloadFontData,
1000
- :UnloadFont,
1001
- :ExportFontAsCode,
1002
- :DrawFPS,
1003
- :DrawText,
1004
- :DrawTextEx,
1005
- :DrawTextPro,
1006
- :DrawTextCodepoint,
1007
- :DrawTextCodepoints,
1008
- :MeasureText,
1009
- :MeasureTextEx,
1010
- :GetGlyphIndex,
1011
- :GetGlyphInfo,
1012
- :GetGlyphAtlasRec,
1013
- :LoadCodepoints,
1014
- :UnloadCodepoints,
1015
- :GetCodepointCount,
1016
- :GetCodepoint,
1017
- :CodepointToUTF8,
1018
- :TextCodepointsToUTF8,
1019
- :TextCopy,
1020
- :TextIsEqual,
1021
- :TextLength,
1022
- :TextFormat,
1023
- :TextSubtext,
1024
- :TextReplace,
1025
- :TextInsert,
1026
- :TextJoin,
1027
- :TextSplit,
1028
- :TextAppend,
1029
- :TextFindIndex,
1030
- :TextToUpper,
1031
- :TextToLower,
1032
- :TextToPascal,
1033
- :TextToInteger,
1034
- :DrawLine3D,
1035
- :DrawPoint3D,
1036
- :DrawCircle3D,
1037
- :DrawTriangle3D,
1038
- :DrawTriangleStrip3D,
1039
- :DrawCube,
1040
- :DrawCubeV,
1041
- :DrawCubeWires,
1042
- :DrawCubeWiresV,
1043
- :DrawCubeTexture,
1044
- :DrawCubeTextureRec,
1045
- :DrawSphere,
1046
- :DrawSphereEx,
1047
- :DrawSphereWires,
1048
- :DrawCylinder,
1049
- :DrawCylinderEx,
1050
- :DrawCylinderWires,
1051
- :DrawCylinderWiresEx,
1052
- :DrawPlane,
1053
- :DrawRay,
1054
- :DrawGrid,
1055
- :LoadModel,
1056
- :LoadModelFromMesh,
1057
- :UnloadModel,
1058
- :UnloadModelKeepMeshes,
1059
- :GetModelBoundingBox,
1060
- :DrawModel,
1061
- :DrawModelEx,
1062
- :DrawModelWires,
1063
- :DrawModelWiresEx,
1064
- :DrawBoundingBox,
1065
- :DrawBillboard,
1066
- :DrawBillboardRec,
1067
- :DrawBillboardPro,
1068
- :UploadMesh,
1069
- :UpdateMeshBuffer,
1070
- :UnloadMesh,
1071
- :DrawMesh,
1072
- :DrawMeshInstanced,
1073
- :ExportMesh,
1074
- :GetMeshBoundingBox,
1075
- :GenMeshTangents,
1076
- :GenMeshBinormals,
1077
- :GenMeshPoly,
1078
- :GenMeshPlane,
1079
- :GenMeshCube,
1080
- :GenMeshSphere,
1081
- :GenMeshHemiSphere,
1082
- :GenMeshCylinder,
1083
- :GenMeshCone,
1084
- :GenMeshTorus,
1085
- :GenMeshKnot,
1086
- :GenMeshHeightmap,
1087
- :GenMeshCubicmap,
1088
- :LoadMaterials,
1089
- :LoadMaterialDefault,
1090
- :UnloadMaterial,
1091
- :SetMaterialTexture,
1092
- :SetModelMeshMaterial,
1093
- :LoadModelAnimations,
1094
- :UpdateModelAnimation,
1095
- :UnloadModelAnimation,
1096
- :UnloadModelAnimations,
1097
- :IsModelAnimationValid,
1098
- :CheckCollisionSpheres,
1099
- :CheckCollisionBoxes,
1100
- :CheckCollisionBoxSphere,
1101
- :GetRayCollisionSphere,
1102
- :GetRayCollisionBox,
1103
- :GetRayCollisionModel,
1104
- :GetRayCollisionMesh,
1105
- :GetRayCollisionTriangle,
1106
- :GetRayCollisionQuad,
1107
- :InitAudioDevice,
1108
- :CloseAudioDevice,
1109
- :IsAudioDeviceReady,
1110
- :SetMasterVolume,
1111
- :LoadWave,
1112
- :LoadWaveFromMemory,
1113
- :LoadSound,
1114
- :LoadSoundFromWave,
1115
- :UpdateSound,
1116
- :UnloadWave,
1117
- :UnloadSound,
1118
- :ExportWave,
1119
- :ExportWaveAsCode,
1120
- :PlaySound,
1121
- :StopSound,
1122
- :PauseSound,
1123
- :ResumeSound,
1124
- :PlaySoundMulti,
1125
- :StopSoundMulti,
1126
- :GetSoundsPlaying,
1127
- :IsSoundPlaying,
1128
- :SetSoundVolume,
1129
- :SetSoundPitch,
1130
- :SetSoundPan,
1131
- :WaveCopy,
1132
- :WaveCrop,
1133
- :WaveFormat,
1134
- :LoadWaveSamples,
1135
- :UnloadWaveSamples,
1136
- :LoadMusicStream,
1137
- :LoadMusicStreamFromMemory,
1138
- :UnloadMusicStream,
1139
- :PlayMusicStream,
1140
- :IsMusicStreamPlaying,
1141
- :UpdateMusicStream,
1142
- :StopMusicStream,
1143
- :PauseMusicStream,
1144
- :ResumeMusicStream,
1145
- :SeekMusicStream,
1146
- :SetMusicVolume,
1147
- :SetMusicPitch,
1148
- :SetMusicPan,
1149
- :GetMusicTimeLength,
1150
- :GetMusicTimePlayed,
1151
- :LoadAudioStream,
1152
- :UnloadAudioStream,
1153
- :UpdateAudioStream,
1154
- :IsAudioStreamProcessed,
1155
- :PlayAudioStream,
1156
- :PauseAudioStream,
1157
- :ResumeAudioStream,
1158
- :IsAudioStreamPlaying,
1159
- :StopAudioStream,
1160
- :SetAudioStreamVolume,
1161
- :SetAudioStreamPitch,
1162
- :SetAudioStreamPan,
1163
- :SetAudioStreamBufferSizeDefault,
1164
- ]
1165
- args = {
1166
- :InitWindow => [:int, :int, :pointer],
1167
- :WindowShouldClose => [],
1168
- :CloseWindow => [],
1169
- :IsWindowReady => [],
1170
- :IsWindowFullscreen => [],
1171
- :IsWindowHidden => [],
1172
- :IsWindowMinimized => [],
1173
- :IsWindowMaximized => [],
1174
- :IsWindowFocused => [],
1175
- :IsWindowResized => [],
1176
- :IsWindowState => [:uint],
1177
- :SetWindowState => [:uint],
1178
- :ClearWindowState => [:uint],
1179
- :ToggleFullscreen => [],
1180
- :MaximizeWindow => [],
1181
- :MinimizeWindow => [],
1182
- :RestoreWindow => [],
1183
- :SetWindowIcon => [Image.by_value],
1184
- :SetWindowTitle => [:pointer],
1185
- :SetWindowPosition => [:int, :int],
1186
- :SetWindowMonitor => [:int],
1187
- :SetWindowMinSize => [:int, :int],
1188
- :SetWindowSize => [:int, :int],
1189
- :SetWindowOpacity => [:float],
1190
- :GetWindowHandle => [],
1191
- :GetScreenWidth => [],
1192
- :GetScreenHeight => [],
1193
- :GetRenderWidth => [],
1194
- :GetRenderHeight => [],
1195
- :GetMonitorCount => [],
1196
- :GetCurrentMonitor => [],
1197
- :GetMonitorPosition => [:int],
1198
- :GetMonitorWidth => [:int],
1199
- :GetMonitorHeight => [:int],
1200
- :GetMonitorPhysicalWidth => [:int],
1201
- :GetMonitorPhysicalHeight => [:int],
1202
- :GetMonitorRefreshRate => [:int],
1203
- :GetWindowPosition => [],
1204
- :GetWindowScaleDPI => [],
1205
- :GetMonitorName => [:int],
1206
- :SetClipboardText => [:pointer],
1207
- :GetClipboardText => [],
1208
- :SwapScreenBuffer => [],
1209
- :PollInputEvents => [],
1210
- :WaitTime => [:float],
1211
- :ShowCursor => [],
1212
- :HideCursor => [],
1213
- :IsCursorHidden => [],
1214
- :EnableCursor => [],
1215
- :DisableCursor => [],
1216
- :IsCursorOnScreen => [],
1217
- :ClearBackground => [Color.by_value],
1218
- :BeginDrawing => [],
1219
- :EndDrawing => [],
1220
- :BeginMode2D => [Camera2D.by_value],
1221
- :EndMode2D => [],
1222
- :BeginMode3D => [Camera3D.by_value],
1223
- :EndMode3D => [],
1224
- :BeginTextureMode => [RenderTexture2D.by_value],
1225
- :EndTextureMode => [],
1226
- :BeginShaderMode => [Shader.by_value],
1227
- :EndShaderMode => [],
1228
- :BeginBlendMode => [:int],
1229
- :EndBlendMode => [],
1230
- :BeginScissorMode => [:int, :int, :int, :int],
1231
- :EndScissorMode => [],
1232
- :BeginVrStereoMode => [VrStereoConfig.by_value],
1233
- :EndVrStereoMode => [],
1234
- :LoadVrStereoConfig => [VrDeviceInfo.by_value],
1235
- :UnloadVrStereoConfig => [VrStereoConfig.by_value],
1236
- :LoadShader => [:pointer, :pointer],
1237
- :LoadShaderFromMemory => [:pointer, :pointer],
1238
- :GetShaderLocation => [Shader.by_value, :pointer],
1239
- :GetShaderLocationAttrib => [Shader.by_value, :pointer],
1240
- :SetShaderValue => [Shader.by_value, :int, :pointer, :int],
1241
- :SetShaderValueV => [Shader.by_value, :int, :pointer, :int, :int],
1242
- :SetShaderValueMatrix => [Shader.by_value, :int, Matrix.by_value],
1243
- :SetShaderValueTexture => [Shader.by_value, :int, Texture2D.by_value],
1244
- :UnloadShader => [Shader.by_value],
1245
- :GetMouseRay => [Vector2.by_value, Camera.by_value],
1246
- :GetCameraMatrix => [Camera.by_value],
1247
- :GetCameraMatrix2D => [Camera2D.by_value],
1248
- :GetWorldToScreen => [Vector3.by_value, Camera.by_value],
1249
- :GetWorldToScreenEx => [Vector3.by_value, Camera.by_value, :int, :int],
1250
- :GetWorldToScreen2D => [Vector2.by_value, Camera2D.by_value],
1251
- :GetScreenToWorld2D => [Vector2.by_value, Camera2D.by_value],
1252
- :SetTargetFPS => [:int],
1253
- :GetFPS => [],
1254
- :GetFrameTime => [],
1255
- :GetTime => [],
1256
- :GetRandomValue => [:int, :int],
1257
- :SetRandomSeed => [:uint],
1258
- :TakeScreenshot => [:pointer],
1259
- :SetConfigFlags => [:uint],
1260
- :TraceLog => [:int, :pointer, :varargs],
1261
- :SetTraceLogLevel => [:int],
1262
- :MemAlloc => [:int],
1263
- :MemRealloc => [:pointer, :int],
1264
- :MemFree => [:pointer],
1265
- :SetTraceLogCallback => [:TraceLogCallback],
1266
- :SetLoadFileDataCallback => [:LoadFileDataCallback],
1267
- :SetSaveFileDataCallback => [:SaveFileDataCallback],
1268
- :SetLoadFileTextCallback => [:LoadFileTextCallback],
1269
- :SetSaveFileTextCallback => [:SaveFileTextCallback],
1270
- :LoadFileData => [:pointer, :pointer],
1271
- :UnloadFileData => [:pointer],
1272
- :SaveFileData => [:pointer, :pointer, :uint],
1273
- :LoadFileText => [:pointer],
1274
- :UnloadFileText => [:pointer],
1275
- :SaveFileText => [:pointer, :pointer],
1276
- :FileExists => [:pointer],
1277
- :DirectoryExists => [:pointer],
1278
- :IsFileExtension => [:pointer, :pointer],
1279
- :GetFileLength => [:pointer],
1280
- :GetFileExtension => [:pointer],
1281
- :GetFileName => [:pointer],
1282
- :GetFileNameWithoutExt => [:pointer],
1283
- :GetDirectoryPath => [:pointer],
1284
- :GetPrevDirectoryPath => [:pointer],
1285
- :GetWorkingDirectory => [],
1286
- :GetApplicationDirectory => [],
1287
- :GetDirectoryFiles => [:pointer, :pointer],
1288
- :ClearDirectoryFiles => [],
1289
- :ChangeDirectory => [:pointer],
1290
- :IsFileDropped => [],
1291
- :GetDroppedFiles => [:pointer],
1292
- :ClearDroppedFiles => [],
1293
- :GetFileModTime => [:pointer],
1294
- :CompressData => [:pointer, :int, :pointer],
1295
- :DecompressData => [:pointer, :int, :pointer],
1296
- :EncodeDataBase64 => [:pointer, :int, :pointer],
1297
- :DecodeDataBase64 => [:pointer, :pointer],
1298
- :SaveStorageValue => [:uint, :int],
1299
- :LoadStorageValue => [:uint],
1300
- :OpenURL => [:pointer],
1301
- :IsKeyPressed => [:int],
1302
- :IsKeyDown => [:int],
1303
- :IsKeyReleased => [:int],
1304
- :IsKeyUp => [:int],
1305
- :SetExitKey => [:int],
1306
- :GetKeyPressed => [],
1307
- :GetCharPressed => [],
1308
- :IsGamepadAvailable => [:int],
1309
- :GetGamepadName => [:int],
1310
- :IsGamepadButtonPressed => [:int, :int],
1311
- :IsGamepadButtonDown => [:int, :int],
1312
- :IsGamepadButtonReleased => [:int, :int],
1313
- :IsGamepadButtonUp => [:int, :int],
1314
- :GetGamepadButtonPressed => [],
1315
- :GetGamepadAxisCount => [:int],
1316
- :GetGamepadAxisMovement => [:int, :int],
1317
- :SetGamepadMappings => [:pointer],
1318
- :IsMouseButtonPressed => [:int],
1319
- :IsMouseButtonDown => [:int],
1320
- :IsMouseButtonReleased => [:int],
1321
- :IsMouseButtonUp => [:int],
1322
- :GetMouseX => [],
1323
- :GetMouseY => [],
1324
- :GetMousePosition => [],
1325
- :GetMouseDelta => [],
1326
- :SetMousePosition => [:int, :int],
1327
- :SetMouseOffset => [:int, :int],
1328
- :SetMouseScale => [:float, :float],
1329
- :GetMouseWheelMove => [],
1330
- :SetMouseCursor => [:int],
1331
- :GetTouchX => [],
1332
- :GetTouchY => [],
1333
- :GetTouchPosition => [:int],
1334
- :GetTouchPointId => [:int],
1335
- :GetTouchPointCount => [],
1336
- :SetGesturesEnabled => [:uint],
1337
- :IsGestureDetected => [:int],
1338
- :GetGestureDetected => [],
1339
- :GetGestureHoldDuration => [],
1340
- :GetGestureDragVector => [],
1341
- :GetGestureDragAngle => [],
1342
- :GetGesturePinchVector => [],
1343
- :GetGesturePinchAngle => [],
1344
- :SetCameraMode => [Camera.by_value, :int],
1345
- :UpdateCamera => [:pointer],
1346
- :SetCameraPanControl => [:int],
1347
- :SetCameraAltControl => [:int],
1348
- :SetCameraSmoothZoomControl => [:int],
1349
- :SetCameraMoveControls => [:int, :int, :int, :int, :int, :int],
1350
- :SetShapesTexture => [Texture2D.by_value, Rectangle.by_value],
1351
- :DrawPixel => [:int, :int, Color.by_value],
1352
- :DrawPixelV => [Vector2.by_value, Color.by_value],
1353
- :DrawLine => [:int, :int, :int, :int, Color.by_value],
1354
- :DrawLineV => [Vector2.by_value, Vector2.by_value, Color.by_value],
1355
- :DrawLineEx => [Vector2.by_value, Vector2.by_value, :float, Color.by_value],
1356
- :DrawLineBezier => [Vector2.by_value, Vector2.by_value, :float, Color.by_value],
1357
- :DrawLineBezierQuad => [Vector2.by_value, Vector2.by_value, Vector2.by_value, :float, Color.by_value],
1358
- :DrawLineBezierCubic => [Vector2.by_value, Vector2.by_value, Vector2.by_value, Vector2.by_value, :float, Color.by_value],
1359
- :DrawLineStrip => [:pointer, :int, Color.by_value],
1360
- :DrawCircle => [:int, :int, :float, Color.by_value],
1361
- :DrawCircleSector => [Vector2.by_value, :float, :float, :float, :int, Color.by_value],
1362
- :DrawCircleSectorLines => [Vector2.by_value, :float, :float, :float, :int, Color.by_value],
1363
- :DrawCircleGradient => [:int, :int, :float, Color.by_value, Color.by_value],
1364
- :DrawCircleV => [Vector2.by_value, :float, Color.by_value],
1365
- :DrawCircleLines => [:int, :int, :float, Color.by_value],
1366
- :DrawEllipse => [:int, :int, :float, :float, Color.by_value],
1367
- :DrawEllipseLines => [:int, :int, :float, :float, Color.by_value],
1368
- :DrawRing => [Vector2.by_value, :float, :float, :float, :float, :int, Color.by_value],
1369
- :DrawRingLines => [Vector2.by_value, :float, :float, :float, :float, :int, Color.by_value],
1370
- :DrawRectangle => [:int, :int, :int, :int, Color.by_value],
1371
- :DrawRectangleV => [Vector2.by_value, Vector2.by_value, Color.by_value],
1372
- :DrawRectangleRec => [Rectangle.by_value, Color.by_value],
1373
- :DrawRectanglePro => [Rectangle.by_value, Vector2.by_value, :float, Color.by_value],
1374
- :DrawRectangleGradientV => [:int, :int, :int, :int, Color.by_value, Color.by_value],
1375
- :DrawRectangleGradientH => [:int, :int, :int, :int, Color.by_value, Color.by_value],
1376
- :DrawRectangleGradientEx => [Rectangle.by_value, Color.by_value, Color.by_value, Color.by_value, Color.by_value],
1377
- :DrawRectangleLines => [:int, :int, :int, :int, Color.by_value],
1378
- :DrawRectangleLinesEx => [Rectangle.by_value, :float, Color.by_value],
1379
- :DrawRectangleRounded => [Rectangle.by_value, :float, :int, Color.by_value],
1380
- :DrawRectangleRoundedLines => [Rectangle.by_value, :float, :int, :float, Color.by_value],
1381
- :DrawTriangle => [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value],
1382
- :DrawTriangleLines => [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value],
1383
- :DrawTriangleFan => [:pointer, :int, Color.by_value],
1384
- :DrawTriangleStrip => [:pointer, :int, Color.by_value],
1385
- :DrawPoly => [Vector2.by_value, :int, :float, :float, Color.by_value],
1386
- :DrawPolyLines => [Vector2.by_value, :int, :float, :float, Color.by_value],
1387
- :DrawPolyLinesEx => [Vector2.by_value, :int, :float, :float, :float, Color.by_value],
1388
- :CheckCollisionRecs => [Rectangle.by_value, Rectangle.by_value],
1389
- :CheckCollisionCircles => [Vector2.by_value, :float, Vector2.by_value, :float],
1390
- :CheckCollisionCircleRec => [Vector2.by_value, :float, Rectangle.by_value],
1391
- :CheckCollisionPointRec => [Vector2.by_value, Rectangle.by_value],
1392
- :CheckCollisionPointCircle => [Vector2.by_value, Vector2.by_value, :float],
1393
- :CheckCollisionPointTriangle => [Vector2.by_value, Vector2.by_value, Vector2.by_value, Vector2.by_value],
1394
- :CheckCollisionLines => [Vector2.by_value, Vector2.by_value, Vector2.by_value, Vector2.by_value, :pointer],
1395
- :CheckCollisionPointLine => [Vector2.by_value, Vector2.by_value, Vector2.by_value, :int],
1396
- :GetCollisionRec => [Rectangle.by_value, Rectangle.by_value],
1397
- :LoadImage => [:pointer],
1398
- :LoadImageRaw => [:pointer, :int, :int, :int, :int],
1399
- :LoadImageAnim => [:pointer, :pointer],
1400
- :LoadImageFromMemory => [:pointer, :pointer, :int],
1401
- :LoadImageFromTexture => [Texture2D.by_value],
1402
- :LoadImageFromScreen => [],
1403
- :UnloadImage => [Image.by_value],
1404
- :ExportImage => [Image.by_value, :pointer],
1405
- :ExportImageAsCode => [Image.by_value, :pointer],
1406
- :GenImageColor => [:int, :int, Color.by_value],
1407
- :GenImageGradientV => [:int, :int, Color.by_value, Color.by_value],
1408
- :GenImageGradientH => [:int, :int, Color.by_value, Color.by_value],
1409
- :GenImageGradientRadial => [:int, :int, :float, Color.by_value, Color.by_value],
1410
- :GenImageChecked => [:int, :int, :int, :int, Color.by_value, Color.by_value],
1411
- :GenImageWhiteNoise => [:int, :int, :float],
1412
- :GenImageCellular => [:int, :int, :int],
1413
- :ImageCopy => [Image.by_value],
1414
- :ImageFromImage => [Image.by_value, Rectangle.by_value],
1415
- :ImageText => [:pointer, :int, Color.by_value],
1416
- :ImageTextEx => [Font.by_value, :pointer, :float, :float, Color.by_value],
1417
- :ImageFormat => [:pointer, :int],
1418
- :ImageToPOT => [:pointer, Color.by_value],
1419
- :ImageCrop => [:pointer, Rectangle.by_value],
1420
- :ImageAlphaCrop => [:pointer, :float],
1421
- :ImageAlphaClear => [:pointer, Color.by_value, :float],
1422
- :ImageAlphaMask => [:pointer, Image.by_value],
1423
- :ImageAlphaPremultiply => [:pointer],
1424
- :ImageResize => [:pointer, :int, :int],
1425
- :ImageResizeNN => [:pointer, :int, :int],
1426
- :ImageResizeCanvas => [:pointer, :int, :int, :int, :int, Color.by_value],
1427
- :ImageMipmaps => [:pointer],
1428
- :ImageDither => [:pointer, :int, :int, :int, :int],
1429
- :ImageFlipVertical => [:pointer],
1430
- :ImageFlipHorizontal => [:pointer],
1431
- :ImageRotateCW => [:pointer],
1432
- :ImageRotateCCW => [:pointer],
1433
- :ImageColorTint => [:pointer, Color.by_value],
1434
- :ImageColorInvert => [:pointer],
1435
- :ImageColorGrayscale => [:pointer],
1436
- :ImageColorContrast => [:pointer, :float],
1437
- :ImageColorBrightness => [:pointer, :int],
1438
- :ImageColorReplace => [:pointer, Color.by_value, Color.by_value],
1439
- :LoadImageColors => [Image.by_value],
1440
- :LoadImagePalette => [Image.by_value, :int, :pointer],
1441
- :UnloadImageColors => [:pointer],
1442
- :UnloadImagePalette => [:pointer],
1443
- :GetImageAlphaBorder => [Image.by_value, :float],
1444
- :GetImageColor => [Image.by_value, :int, :int],
1445
- :ImageClearBackground => [:pointer, Color.by_value],
1446
- :ImageDrawPixel => [:pointer, :int, :int, Color.by_value],
1447
- :ImageDrawPixelV => [:pointer, Vector2.by_value, Color.by_value],
1448
- :ImageDrawLine => [:pointer, :int, :int, :int, :int, Color.by_value],
1449
- :ImageDrawLineV => [:pointer, Vector2.by_value, Vector2.by_value, Color.by_value],
1450
- :ImageDrawCircle => [:pointer, :int, :int, :int, Color.by_value],
1451
- :ImageDrawCircleV => [:pointer, Vector2.by_value, :int, Color.by_value],
1452
- :ImageDrawRectangle => [:pointer, :int, :int, :int, :int, Color.by_value],
1453
- :ImageDrawRectangleV => [:pointer, Vector2.by_value, Vector2.by_value, Color.by_value],
1454
- :ImageDrawRectangleRec => [:pointer, Rectangle.by_value, Color.by_value],
1455
- :ImageDrawRectangleLines => [:pointer, Rectangle.by_value, :int, Color.by_value],
1456
- :ImageDraw => [:pointer, Image.by_value, Rectangle.by_value, Rectangle.by_value, Color.by_value],
1457
- :ImageDrawText => [:pointer, :pointer, :int, :int, :int, Color.by_value],
1458
- :ImageDrawTextEx => [:pointer, Font.by_value, :pointer, Vector2.by_value, :float, :float, Color.by_value],
1459
- :LoadTexture => [:pointer],
1460
- :LoadTextureFromImage => [Image.by_value],
1461
- :LoadTextureCubemap => [Image.by_value, :int],
1462
- :LoadRenderTexture => [:int, :int],
1463
- :UnloadTexture => [Texture2D.by_value],
1464
- :UnloadRenderTexture => [RenderTexture2D.by_value],
1465
- :UpdateTexture => [Texture2D.by_value, :pointer],
1466
- :UpdateTextureRec => [Texture2D.by_value, Rectangle.by_value, :pointer],
1467
- :GenTextureMipmaps => [:pointer],
1468
- :SetTextureFilter => [Texture2D.by_value, :int],
1469
- :SetTextureWrap => [Texture2D.by_value, :int],
1470
- :DrawTexture => [Texture2D.by_value, :int, :int, Color.by_value],
1471
- :DrawTextureV => [Texture2D.by_value, Vector2.by_value, Color.by_value],
1472
- :DrawTextureEx => [Texture2D.by_value, Vector2.by_value, :float, :float, Color.by_value],
1473
- :DrawTextureRec => [Texture2D.by_value, Rectangle.by_value, Vector2.by_value, Color.by_value],
1474
- :DrawTextureQuad => [Texture2D.by_value, Vector2.by_value, Vector2.by_value, Rectangle.by_value, Color.by_value],
1475
- :DrawTextureTiled => [Texture2D.by_value, Rectangle.by_value, Rectangle.by_value, Vector2.by_value, :float, :float, Color.by_value],
1476
- :DrawTexturePro => [Texture2D.by_value, Rectangle.by_value, Rectangle.by_value, Vector2.by_value, :float, Color.by_value],
1477
- :DrawTextureNPatch => [Texture2D.by_value, NPatchInfo.by_value, Rectangle.by_value, Vector2.by_value, :float, Color.by_value],
1478
- :DrawTexturePoly => [Texture2D.by_value, Vector2.by_value, :pointer, :pointer, :int, Color.by_value],
1479
- :Fade => [Color.by_value, :float],
1480
- :ColorToInt => [Color.by_value],
1481
- :ColorNormalize => [Color.by_value],
1482
- :ColorFromNormalized => [Vector4.by_value],
1483
- :ColorToHSV => [Color.by_value],
1484
- :ColorFromHSV => [:float, :float, :float],
1485
- :ColorAlpha => [Color.by_value, :float],
1486
- :ColorAlphaBlend => [Color.by_value, Color.by_value, Color.by_value],
1487
- :GetColor => [:uint],
1488
- :GetPixelColor => [:pointer, :int],
1489
- :SetPixelColor => [:pointer, Color.by_value, :int],
1490
- :GetPixelDataSize => [:int, :int, :int],
1491
- :GetFontDefault => [],
1492
- :LoadFont => [:pointer],
1493
- :LoadFontEx => [:pointer, :int, :pointer, :int],
1494
- :LoadFontFromImage => [Image.by_value, Color.by_value, :int],
1495
- :LoadFontFromMemory => [:pointer, :pointer, :int, :int, :pointer, :int],
1496
- :LoadFontData => [:pointer, :int, :int, :pointer, :int, :int],
1497
- :GenImageFontAtlas => [:pointer, :pointer, :int, :int, :int, :int],
1498
- :UnloadFontData => [:pointer, :int],
1499
- :UnloadFont => [Font.by_value],
1500
- :ExportFontAsCode => [Font.by_value, :pointer],
1501
- :DrawFPS => [:int, :int],
1502
- :DrawText => [:pointer, :int, :int, :int, Color.by_value],
1503
- :DrawTextEx => [Font.by_value, :pointer, Vector2.by_value, :float, :float, Color.by_value],
1504
- :DrawTextPro => [Font.by_value, :pointer, Vector2.by_value, Vector2.by_value, :float, :float, :float, Color.by_value],
1505
- :DrawTextCodepoint => [Font.by_value, :int, Vector2.by_value, :float, Color.by_value],
1506
- :DrawTextCodepoints => [Font.by_value, :pointer, :int, Vector2.by_value, :float, :float, Color.by_value],
1507
- :MeasureText => [:pointer, :int],
1508
- :MeasureTextEx => [Font.by_value, :pointer, :float, :float],
1509
- :GetGlyphIndex => [Font.by_value, :int],
1510
- :GetGlyphInfo => [Font.by_value, :int],
1511
- :GetGlyphAtlasRec => [Font.by_value, :int],
1512
- :LoadCodepoints => [:pointer, :pointer],
1513
- :UnloadCodepoints => [:pointer],
1514
- :GetCodepointCount => [:pointer],
1515
- :GetCodepoint => [:pointer, :pointer],
1516
- :CodepointToUTF8 => [:int, :pointer],
1517
- :TextCodepointsToUTF8 => [:pointer, :int],
1518
- :TextCopy => [:pointer, :pointer],
1519
- :TextIsEqual => [:pointer, :pointer],
1520
- :TextLength => [:pointer],
1521
- :TextFormat => [:pointer, :varargs],
1522
- :TextSubtext => [:pointer, :int, :int],
1523
- :TextReplace => [:pointer, :pointer, :pointer],
1524
- :TextInsert => [:pointer, :pointer, :int],
1525
- :TextJoin => [:pointer, :int, :pointer],
1526
- :TextSplit => [:pointer, :char, :pointer],
1527
- :TextAppend => [:pointer, :pointer, :pointer],
1528
- :TextFindIndex => [:pointer, :pointer],
1529
- :TextToUpper => [:pointer],
1530
- :TextToLower => [:pointer],
1531
- :TextToPascal => [:pointer],
1532
- :TextToInteger => [:pointer],
1533
- :DrawLine3D => [Vector3.by_value, Vector3.by_value, Color.by_value],
1534
- :DrawPoint3D => [Vector3.by_value, Color.by_value],
1535
- :DrawCircle3D => [Vector3.by_value, :float, Vector3.by_value, :float, Color.by_value],
1536
- :DrawTriangle3D => [Vector3.by_value, Vector3.by_value, Vector3.by_value, Color.by_value],
1537
- :DrawTriangleStrip3D => [:pointer, :int, Color.by_value],
1538
- :DrawCube => [Vector3.by_value, :float, :float, :float, Color.by_value],
1539
- :DrawCubeV => [Vector3.by_value, Vector3.by_value, Color.by_value],
1540
- :DrawCubeWires => [Vector3.by_value, :float, :float, :float, Color.by_value],
1541
- :DrawCubeWiresV => [Vector3.by_value, Vector3.by_value, Color.by_value],
1542
- :DrawCubeTexture => [Texture2D.by_value, Vector3.by_value, :float, :float, :float, Color.by_value],
1543
- :DrawCubeTextureRec => [Texture2D.by_value, Rectangle.by_value, Vector3.by_value, :float, :float, :float, Color.by_value],
1544
- :DrawSphere => [Vector3.by_value, :float, Color.by_value],
1545
- :DrawSphereEx => [Vector3.by_value, :float, :int, :int, Color.by_value],
1546
- :DrawSphereWires => [Vector3.by_value, :float, :int, :int, Color.by_value],
1547
- :DrawCylinder => [Vector3.by_value, :float, :float, :float, :int, Color.by_value],
1548
- :DrawCylinderEx => [Vector3.by_value, Vector3.by_value, :float, :float, :int, Color.by_value],
1549
- :DrawCylinderWires => [Vector3.by_value, :float, :float, :float, :int, Color.by_value],
1550
- :DrawCylinderWiresEx => [Vector3.by_value, Vector3.by_value, :float, :float, :int, Color.by_value],
1551
- :DrawPlane => [Vector3.by_value, Vector2.by_value, Color.by_value],
1552
- :DrawRay => [Ray.by_value, Color.by_value],
1553
- :DrawGrid => [:int, :float],
1554
- :LoadModel => [:pointer],
1555
- :LoadModelFromMesh => [Mesh.by_value],
1556
- :UnloadModel => [Model.by_value],
1557
- :UnloadModelKeepMeshes => [Model.by_value],
1558
- :GetModelBoundingBox => [Model.by_value],
1559
- :DrawModel => [Model.by_value, Vector3.by_value, :float, Color.by_value],
1560
- :DrawModelEx => [Model.by_value, Vector3.by_value, Vector3.by_value, :float, Vector3.by_value, Color.by_value],
1561
- :DrawModelWires => [Model.by_value, Vector3.by_value, :float, Color.by_value],
1562
- :DrawModelWiresEx => [Model.by_value, Vector3.by_value, Vector3.by_value, :float, Vector3.by_value, Color.by_value],
1563
- :DrawBoundingBox => [BoundingBox.by_value, Color.by_value],
1564
- :DrawBillboard => [Camera.by_value, Texture2D.by_value, Vector3.by_value, :float, Color.by_value],
1565
- :DrawBillboardRec => [Camera.by_value, Texture2D.by_value, Rectangle.by_value, Vector3.by_value, Vector2.by_value, Color.by_value],
1566
- :DrawBillboardPro => [Camera.by_value, Texture2D.by_value, Rectangle.by_value, Vector3.by_value, Vector3.by_value, Vector2.by_value, Vector2.by_value, :float, Color.by_value],
1567
- :UploadMesh => [:pointer, :bool],
1568
- :UpdateMeshBuffer => [Mesh.by_value, :int, :pointer, :int, :int],
1569
- :UnloadMesh => [Mesh.by_value],
1570
- :DrawMesh => [Mesh.by_value, Material.by_value, Matrix.by_value],
1571
- :DrawMeshInstanced => [Mesh.by_value, Material.by_value, :pointer, :int],
1572
- :ExportMesh => [Mesh.by_value, :pointer],
1573
- :GetMeshBoundingBox => [Mesh.by_value],
1574
- :GenMeshTangents => [:pointer],
1575
- :GenMeshBinormals => [:pointer],
1576
- :GenMeshPoly => [:int, :float],
1577
- :GenMeshPlane => [:float, :float, :int, :int],
1578
- :GenMeshCube => [:float, :float, :float],
1579
- :GenMeshSphere => [:float, :int, :int],
1580
- :GenMeshHemiSphere => [:float, :int, :int],
1581
- :GenMeshCylinder => [:float, :float, :int],
1582
- :GenMeshCone => [:float, :float, :int],
1583
- :GenMeshTorus => [:float, :float, :int, :int],
1584
- :GenMeshKnot => [:float, :float, :int, :int],
1585
- :GenMeshHeightmap => [Image.by_value, Vector3.by_value],
1586
- :GenMeshCubicmap => [Image.by_value, Vector3.by_value],
1587
- :LoadMaterials => [:pointer, :pointer],
1588
- :LoadMaterialDefault => [],
1589
- :UnloadMaterial => [Material.by_value],
1590
- :SetMaterialTexture => [:pointer, :int, Texture2D.by_value],
1591
- :SetModelMeshMaterial => [:pointer, :int, :int],
1592
- :LoadModelAnimations => [:pointer, :pointer],
1593
- :UpdateModelAnimation => [Model.by_value, ModelAnimation.by_value, :int],
1594
- :UnloadModelAnimation => [ModelAnimation.by_value],
1595
- :UnloadModelAnimations => [:pointer, :uint],
1596
- :IsModelAnimationValid => [Model.by_value, ModelAnimation.by_value],
1597
- :CheckCollisionSpheres => [Vector3.by_value, :float, Vector3.by_value, :float],
1598
- :CheckCollisionBoxes => [BoundingBox.by_value, BoundingBox.by_value],
1599
- :CheckCollisionBoxSphere => [BoundingBox.by_value, Vector3.by_value, :float],
1600
- :GetRayCollisionSphere => [Ray.by_value, Vector3.by_value, :float],
1601
- :GetRayCollisionBox => [Ray.by_value, BoundingBox.by_value],
1602
- :GetRayCollisionModel => [Ray.by_value, Model.by_value],
1603
- :GetRayCollisionMesh => [Ray.by_value, Mesh.by_value, Matrix.by_value],
1604
- :GetRayCollisionTriangle => [Ray.by_value, Vector3.by_value, Vector3.by_value, Vector3.by_value],
1605
- :GetRayCollisionQuad => [Ray.by_value, Vector3.by_value, Vector3.by_value, Vector3.by_value, Vector3.by_value],
1606
- :InitAudioDevice => [],
1607
- :CloseAudioDevice => [],
1608
- :IsAudioDeviceReady => [],
1609
- :SetMasterVolume => [:float],
1610
- :LoadWave => [:pointer],
1611
- :LoadWaveFromMemory => [:pointer, :pointer, :int],
1612
- :LoadSound => [:pointer],
1613
- :LoadSoundFromWave => [Wave.by_value],
1614
- :UpdateSound => [Sound.by_value, :pointer, :int],
1615
- :UnloadWave => [Wave.by_value],
1616
- :UnloadSound => [Sound.by_value],
1617
- :ExportWave => [Wave.by_value, :pointer],
1618
- :ExportWaveAsCode => [Wave.by_value, :pointer],
1619
- :PlaySound => [Sound.by_value],
1620
- :StopSound => [Sound.by_value],
1621
- :PauseSound => [Sound.by_value],
1622
- :ResumeSound => [Sound.by_value],
1623
- :PlaySoundMulti => [Sound.by_value],
1624
- :StopSoundMulti => [],
1625
- :GetSoundsPlaying => [],
1626
- :IsSoundPlaying => [Sound.by_value],
1627
- :SetSoundVolume => [Sound.by_value, :float],
1628
- :SetSoundPitch => [Sound.by_value, :float],
1629
- :SetSoundPan => [Sound.by_value, :float],
1630
- :WaveCopy => [Wave.by_value],
1631
- :WaveCrop => [:pointer, :int, :int],
1632
- :WaveFormat => [:pointer, :int, :int, :int],
1633
- :LoadWaveSamples => [Wave.by_value],
1634
- :UnloadWaveSamples => [:pointer],
1635
- :LoadMusicStream => [:pointer],
1636
- :LoadMusicStreamFromMemory => [:pointer, :pointer, :int],
1637
- :UnloadMusicStream => [Music.by_value],
1638
- :PlayMusicStream => [Music.by_value],
1639
- :IsMusicStreamPlaying => [Music.by_value],
1640
- :UpdateMusicStream => [Music.by_value],
1641
- :StopMusicStream => [Music.by_value],
1642
- :PauseMusicStream => [Music.by_value],
1643
- :ResumeMusicStream => [Music.by_value],
1644
- :SeekMusicStream => [Music.by_value, :float],
1645
- :SetMusicVolume => [Music.by_value, :float],
1646
- :SetMusicPitch => [Music.by_value, :float],
1647
- :SetMusicPan => [Music.by_value, :float],
1648
- :GetMusicTimeLength => [Music.by_value],
1649
- :GetMusicTimePlayed => [Music.by_value],
1650
- :LoadAudioStream => [:uint, :uint, :uint],
1651
- :UnloadAudioStream => [AudioStream.by_value],
1652
- :UpdateAudioStream => [AudioStream.by_value, :pointer, :int],
1653
- :IsAudioStreamProcessed => [AudioStream.by_value],
1654
- :PlayAudioStream => [AudioStream.by_value],
1655
- :PauseAudioStream => [AudioStream.by_value],
1656
- :ResumeAudioStream => [AudioStream.by_value],
1657
- :IsAudioStreamPlaying => [AudioStream.by_value],
1658
- :StopAudioStream => [AudioStream.by_value],
1659
- :SetAudioStreamVolume => [AudioStream.by_value, :float],
1660
- :SetAudioStreamPitch => [AudioStream.by_value, :float],
1661
- :SetAudioStreamPan => [AudioStream.by_value, :float],
1662
- :SetAudioStreamBufferSizeDefault => [:int],
1663
- }
1664
- retvals = {
1665
- :InitWindow => :void,
1666
- :WindowShouldClose => :bool,
1667
- :CloseWindow => :void,
1668
- :IsWindowReady => :bool,
1669
- :IsWindowFullscreen => :bool,
1670
- :IsWindowHidden => :bool,
1671
- :IsWindowMinimized => :bool,
1672
- :IsWindowMaximized => :bool,
1673
- :IsWindowFocused => :bool,
1674
- :IsWindowResized => :bool,
1675
- :IsWindowState => :bool,
1676
- :SetWindowState => :void,
1677
- :ClearWindowState => :void,
1678
- :ToggleFullscreen => :void,
1679
- :MaximizeWindow => :void,
1680
- :MinimizeWindow => :void,
1681
- :RestoreWindow => :void,
1682
- :SetWindowIcon => :void,
1683
- :SetWindowTitle => :void,
1684
- :SetWindowPosition => :void,
1685
- :SetWindowMonitor => :void,
1686
- :SetWindowMinSize => :void,
1687
- :SetWindowSize => :void,
1688
- :SetWindowOpacity => :void,
1689
- :GetWindowHandle => :pointer,
1690
- :GetScreenWidth => :int,
1691
- :GetScreenHeight => :int,
1692
- :GetRenderWidth => :int,
1693
- :GetRenderHeight => :int,
1694
- :GetMonitorCount => :int,
1695
- :GetCurrentMonitor => :int,
1696
- :GetMonitorPosition => Vector2.by_value,
1697
- :GetMonitorWidth => :int,
1698
- :GetMonitorHeight => :int,
1699
- :GetMonitorPhysicalWidth => :int,
1700
- :GetMonitorPhysicalHeight => :int,
1701
- :GetMonitorRefreshRate => :int,
1702
- :GetWindowPosition => Vector2.by_value,
1703
- :GetWindowScaleDPI => Vector2.by_value,
1704
- :GetMonitorName => :pointer,
1705
- :SetClipboardText => :void,
1706
- :GetClipboardText => :pointer,
1707
- :SwapScreenBuffer => :void,
1708
- :PollInputEvents => :void,
1709
- :WaitTime => :void,
1710
- :ShowCursor => :void,
1711
- :HideCursor => :void,
1712
- :IsCursorHidden => :bool,
1713
- :EnableCursor => :void,
1714
- :DisableCursor => :void,
1715
- :IsCursorOnScreen => :bool,
1716
- :ClearBackground => :void,
1717
- :BeginDrawing => :void,
1718
- :EndDrawing => :void,
1719
- :BeginMode2D => :void,
1720
- :EndMode2D => :void,
1721
- :BeginMode3D => :void,
1722
- :EndMode3D => :void,
1723
- :BeginTextureMode => :void,
1724
- :EndTextureMode => :void,
1725
- :BeginShaderMode => :void,
1726
- :EndShaderMode => :void,
1727
- :BeginBlendMode => :void,
1728
- :EndBlendMode => :void,
1729
- :BeginScissorMode => :void,
1730
- :EndScissorMode => :void,
1731
- :BeginVrStereoMode => :void,
1732
- :EndVrStereoMode => :void,
1733
- :LoadVrStereoConfig => VrStereoConfig.by_value,
1734
- :UnloadVrStereoConfig => :void,
1735
- :LoadShader => Shader.by_value,
1736
- :LoadShaderFromMemory => Shader.by_value,
1737
- :GetShaderLocation => :int,
1738
- :GetShaderLocationAttrib => :int,
1739
- :SetShaderValue => :void,
1740
- :SetShaderValueV => :void,
1741
- :SetShaderValueMatrix => :void,
1742
- :SetShaderValueTexture => :void,
1743
- :UnloadShader => :void,
1744
- :GetMouseRay => Ray.by_value,
1745
- :GetCameraMatrix => Matrix.by_value,
1746
- :GetCameraMatrix2D => Matrix.by_value,
1747
- :GetWorldToScreen => Vector2.by_value,
1748
- :GetWorldToScreenEx => Vector2.by_value,
1749
- :GetWorldToScreen2D => Vector2.by_value,
1750
- :GetScreenToWorld2D => Vector2.by_value,
1751
- :SetTargetFPS => :void,
1752
- :GetFPS => :int,
1753
- :GetFrameTime => :float,
1754
- :GetTime => :double,
1755
- :GetRandomValue => :int,
1756
- :SetRandomSeed => :void,
1757
- :TakeScreenshot => :void,
1758
- :SetConfigFlags => :void,
1759
- :TraceLog => :void,
1760
- :SetTraceLogLevel => :void,
1761
- :MemAlloc => :pointer,
1762
- :MemRealloc => :pointer,
1763
- :MemFree => :void,
1764
- :SetTraceLogCallback => :void,
1765
- :SetLoadFileDataCallback => :void,
1766
- :SetSaveFileDataCallback => :void,
1767
- :SetLoadFileTextCallback => :void,
1768
- :SetSaveFileTextCallback => :void,
1769
- :LoadFileData => :pointer,
1770
- :UnloadFileData => :void,
1771
- :SaveFileData => :bool,
1772
- :LoadFileText => :pointer,
1773
- :UnloadFileText => :void,
1774
- :SaveFileText => :bool,
1775
- :FileExists => :bool,
1776
- :DirectoryExists => :bool,
1777
- :IsFileExtension => :bool,
1778
- :GetFileLength => :int,
1779
- :GetFileExtension => :pointer,
1780
- :GetFileName => :pointer,
1781
- :GetFileNameWithoutExt => :pointer,
1782
- :GetDirectoryPath => :pointer,
1783
- :GetPrevDirectoryPath => :pointer,
1784
- :GetWorkingDirectory => :pointer,
1785
- :GetApplicationDirectory => :pointer,
1786
- :GetDirectoryFiles => :pointer,
1787
- :ClearDirectoryFiles => :void,
1788
- :ChangeDirectory => :bool,
1789
- :IsFileDropped => :bool,
1790
- :GetDroppedFiles => :pointer,
1791
- :ClearDroppedFiles => :void,
1792
- :GetFileModTime => :long,
1793
- :CompressData => :pointer,
1794
- :DecompressData => :pointer,
1795
- :EncodeDataBase64 => :pointer,
1796
- :DecodeDataBase64 => :pointer,
1797
- :SaveStorageValue => :bool,
1798
- :LoadStorageValue => :int,
1799
- :OpenURL => :void,
1800
- :IsKeyPressed => :bool,
1801
- :IsKeyDown => :bool,
1802
- :IsKeyReleased => :bool,
1803
- :IsKeyUp => :bool,
1804
- :SetExitKey => :void,
1805
- :GetKeyPressed => :int,
1806
- :GetCharPressed => :int,
1807
- :IsGamepadAvailable => :bool,
1808
- :GetGamepadName => :pointer,
1809
- :IsGamepadButtonPressed => :bool,
1810
- :IsGamepadButtonDown => :bool,
1811
- :IsGamepadButtonReleased => :bool,
1812
- :IsGamepadButtonUp => :bool,
1813
- :GetGamepadButtonPressed => :int,
1814
- :GetGamepadAxisCount => :int,
1815
- :GetGamepadAxisMovement => :float,
1816
- :SetGamepadMappings => :int,
1817
- :IsMouseButtonPressed => :bool,
1818
- :IsMouseButtonDown => :bool,
1819
- :IsMouseButtonReleased => :bool,
1820
- :IsMouseButtonUp => :bool,
1821
- :GetMouseX => :int,
1822
- :GetMouseY => :int,
1823
- :GetMousePosition => Vector2.by_value,
1824
- :GetMouseDelta => Vector2.by_value,
1825
- :SetMousePosition => :void,
1826
- :SetMouseOffset => :void,
1827
- :SetMouseScale => :void,
1828
- :GetMouseWheelMove => :float,
1829
- :SetMouseCursor => :void,
1830
- :GetTouchX => :int,
1831
- :GetTouchY => :int,
1832
- :GetTouchPosition => Vector2.by_value,
1833
- :GetTouchPointId => :int,
1834
- :GetTouchPointCount => :int,
1835
- :SetGesturesEnabled => :void,
1836
- :IsGestureDetected => :bool,
1837
- :GetGestureDetected => :int,
1838
- :GetGestureHoldDuration => :float,
1839
- :GetGestureDragVector => Vector2.by_value,
1840
- :GetGestureDragAngle => :float,
1841
- :GetGesturePinchVector => Vector2.by_value,
1842
- :GetGesturePinchAngle => :float,
1843
- :SetCameraMode => :void,
1844
- :UpdateCamera => :void,
1845
- :SetCameraPanControl => :void,
1846
- :SetCameraAltControl => :void,
1847
- :SetCameraSmoothZoomControl => :void,
1848
- :SetCameraMoveControls => :void,
1849
- :SetShapesTexture => :void,
1850
- :DrawPixel => :void,
1851
- :DrawPixelV => :void,
1852
- :DrawLine => :void,
1853
- :DrawLineV => :void,
1854
- :DrawLineEx => :void,
1855
- :DrawLineBezier => :void,
1856
- :DrawLineBezierQuad => :void,
1857
- :DrawLineBezierCubic => :void,
1858
- :DrawLineStrip => :void,
1859
- :DrawCircle => :void,
1860
- :DrawCircleSector => :void,
1861
- :DrawCircleSectorLines => :void,
1862
- :DrawCircleGradient => :void,
1863
- :DrawCircleV => :void,
1864
- :DrawCircleLines => :void,
1865
- :DrawEllipse => :void,
1866
- :DrawEllipseLines => :void,
1867
- :DrawRing => :void,
1868
- :DrawRingLines => :void,
1869
- :DrawRectangle => :void,
1870
- :DrawRectangleV => :void,
1871
- :DrawRectangleRec => :void,
1872
- :DrawRectanglePro => :void,
1873
- :DrawRectangleGradientV => :void,
1874
- :DrawRectangleGradientH => :void,
1875
- :DrawRectangleGradientEx => :void,
1876
- :DrawRectangleLines => :void,
1877
- :DrawRectangleLinesEx => :void,
1878
- :DrawRectangleRounded => :void,
1879
- :DrawRectangleRoundedLines => :void,
1880
- :DrawTriangle => :void,
1881
- :DrawTriangleLines => :void,
1882
- :DrawTriangleFan => :void,
1883
- :DrawTriangleStrip => :void,
1884
- :DrawPoly => :void,
1885
- :DrawPolyLines => :void,
1886
- :DrawPolyLinesEx => :void,
1887
- :CheckCollisionRecs => :bool,
1888
- :CheckCollisionCircles => :bool,
1889
- :CheckCollisionCircleRec => :bool,
1890
- :CheckCollisionPointRec => :bool,
1891
- :CheckCollisionPointCircle => :bool,
1892
- :CheckCollisionPointTriangle => :bool,
1893
- :CheckCollisionLines => :bool,
1894
- :CheckCollisionPointLine => :bool,
1895
- :GetCollisionRec => Rectangle.by_value,
1896
- :LoadImage => Image.by_value,
1897
- :LoadImageRaw => Image.by_value,
1898
- :LoadImageAnim => Image.by_value,
1899
- :LoadImageFromMemory => Image.by_value,
1900
- :LoadImageFromTexture => Image.by_value,
1901
- :LoadImageFromScreen => Image.by_value,
1902
- :UnloadImage => :void,
1903
- :ExportImage => :bool,
1904
- :ExportImageAsCode => :bool,
1905
- :GenImageColor => Image.by_value,
1906
- :GenImageGradientV => Image.by_value,
1907
- :GenImageGradientH => Image.by_value,
1908
- :GenImageGradientRadial => Image.by_value,
1909
- :GenImageChecked => Image.by_value,
1910
- :GenImageWhiteNoise => Image.by_value,
1911
- :GenImageCellular => Image.by_value,
1912
- :ImageCopy => Image.by_value,
1913
- :ImageFromImage => Image.by_value,
1914
- :ImageText => Image.by_value,
1915
- :ImageTextEx => Image.by_value,
1916
- :ImageFormat => :void,
1917
- :ImageToPOT => :void,
1918
- :ImageCrop => :void,
1919
- :ImageAlphaCrop => :void,
1920
- :ImageAlphaClear => :void,
1921
- :ImageAlphaMask => :void,
1922
- :ImageAlphaPremultiply => :void,
1923
- :ImageResize => :void,
1924
- :ImageResizeNN => :void,
1925
- :ImageResizeCanvas => :void,
1926
- :ImageMipmaps => :void,
1927
- :ImageDither => :void,
1928
- :ImageFlipVertical => :void,
1929
- :ImageFlipHorizontal => :void,
1930
- :ImageRotateCW => :void,
1931
- :ImageRotateCCW => :void,
1932
- :ImageColorTint => :void,
1933
- :ImageColorInvert => :void,
1934
- :ImageColorGrayscale => :void,
1935
- :ImageColorContrast => :void,
1936
- :ImageColorBrightness => :void,
1937
- :ImageColorReplace => :void,
1938
- :LoadImageColors => :pointer,
1939
- :LoadImagePalette => :pointer,
1940
- :UnloadImageColors => :void,
1941
- :UnloadImagePalette => :void,
1942
- :GetImageAlphaBorder => Rectangle.by_value,
1943
- :GetImageColor => Color.by_value,
1944
- :ImageClearBackground => :void,
1945
- :ImageDrawPixel => :void,
1946
- :ImageDrawPixelV => :void,
1947
- :ImageDrawLine => :void,
1948
- :ImageDrawLineV => :void,
1949
- :ImageDrawCircle => :void,
1950
- :ImageDrawCircleV => :void,
1951
- :ImageDrawRectangle => :void,
1952
- :ImageDrawRectangleV => :void,
1953
- :ImageDrawRectangleRec => :void,
1954
- :ImageDrawRectangleLines => :void,
1955
- :ImageDraw => :void,
1956
- :ImageDrawText => :void,
1957
- :ImageDrawTextEx => :void,
1958
- :LoadTexture => Texture2D.by_value,
1959
- :LoadTextureFromImage => Texture2D.by_value,
1960
- :LoadTextureCubemap => TextureCubemap.by_value,
1961
- :LoadRenderTexture => RenderTexture2D.by_value,
1962
- :UnloadTexture => :void,
1963
- :UnloadRenderTexture => :void,
1964
- :UpdateTexture => :void,
1965
- :UpdateTextureRec => :void,
1966
- :GenTextureMipmaps => :void,
1967
- :SetTextureFilter => :void,
1968
- :SetTextureWrap => :void,
1969
- :DrawTexture => :void,
1970
- :DrawTextureV => :void,
1971
- :DrawTextureEx => :void,
1972
- :DrawTextureRec => :void,
1973
- :DrawTextureQuad => :void,
1974
- :DrawTextureTiled => :void,
1975
- :DrawTexturePro => :void,
1976
- :DrawTextureNPatch => :void,
1977
- :DrawTexturePoly => :void,
1978
- :Fade => Color.by_value,
1979
- :ColorToInt => :int,
1980
- :ColorNormalize => Vector4.by_value,
1981
- :ColorFromNormalized => Color.by_value,
1982
- :ColorToHSV => Vector3.by_value,
1983
- :ColorFromHSV => Color.by_value,
1984
- :ColorAlpha => Color.by_value,
1985
- :ColorAlphaBlend => Color.by_value,
1986
- :GetColor => Color.by_value,
1987
- :GetPixelColor => Color.by_value,
1988
- :SetPixelColor => :void,
1989
- :GetPixelDataSize => :int,
1990
- :GetFontDefault => Font.by_value,
1991
- :LoadFont => Font.by_value,
1992
- :LoadFontEx => Font.by_value,
1993
- :LoadFontFromImage => Font.by_value,
1994
- :LoadFontFromMemory => Font.by_value,
1995
- :LoadFontData => :pointer,
1996
- :GenImageFontAtlas => Image.by_value,
1997
- :UnloadFontData => :void,
1998
- :UnloadFont => :void,
1999
- :ExportFontAsCode => :bool,
2000
- :DrawFPS => :void,
2001
- :DrawText => :void,
2002
- :DrawTextEx => :void,
2003
- :DrawTextPro => :void,
2004
- :DrawTextCodepoint => :void,
2005
- :DrawTextCodepoints => :void,
2006
- :MeasureText => :int,
2007
- :MeasureTextEx => Vector2.by_value,
2008
- :GetGlyphIndex => :int,
2009
- :GetGlyphInfo => GlyphInfo.by_value,
2010
- :GetGlyphAtlasRec => Rectangle.by_value,
2011
- :LoadCodepoints => :pointer,
2012
- :UnloadCodepoints => :void,
2013
- :GetCodepointCount => :int,
2014
- :GetCodepoint => :int,
2015
- :CodepointToUTF8 => :pointer,
2016
- :TextCodepointsToUTF8 => :pointer,
2017
- :TextCopy => :int,
2018
- :TextIsEqual => :bool,
2019
- :TextLength => :uint,
2020
- :TextFormat => :pointer,
2021
- :TextSubtext => :pointer,
2022
- :TextReplace => :pointer,
2023
- :TextInsert => :pointer,
2024
- :TextJoin => :pointer,
2025
- :TextSplit => :pointer,
2026
- :TextAppend => :void,
2027
- :TextFindIndex => :int,
2028
- :TextToUpper => :pointer,
2029
- :TextToLower => :pointer,
2030
- :TextToPascal => :pointer,
2031
- :TextToInteger => :int,
2032
- :DrawLine3D => :void,
2033
- :DrawPoint3D => :void,
2034
- :DrawCircle3D => :void,
2035
- :DrawTriangle3D => :void,
2036
- :DrawTriangleStrip3D => :void,
2037
- :DrawCube => :void,
2038
- :DrawCubeV => :void,
2039
- :DrawCubeWires => :void,
2040
- :DrawCubeWiresV => :void,
2041
- :DrawCubeTexture => :void,
2042
- :DrawCubeTextureRec => :void,
2043
- :DrawSphere => :void,
2044
- :DrawSphereEx => :void,
2045
- :DrawSphereWires => :void,
2046
- :DrawCylinder => :void,
2047
- :DrawCylinderEx => :void,
2048
- :DrawCylinderWires => :void,
2049
- :DrawCylinderWiresEx => :void,
2050
- :DrawPlane => :void,
2051
- :DrawRay => :void,
2052
- :DrawGrid => :void,
2053
- :LoadModel => Model.by_value,
2054
- :LoadModelFromMesh => Model.by_value,
2055
- :UnloadModel => :void,
2056
- :UnloadModelKeepMeshes => :void,
2057
- :GetModelBoundingBox => BoundingBox.by_value,
2058
- :DrawModel => :void,
2059
- :DrawModelEx => :void,
2060
- :DrawModelWires => :void,
2061
- :DrawModelWiresEx => :void,
2062
- :DrawBoundingBox => :void,
2063
- :DrawBillboard => :void,
2064
- :DrawBillboardRec => :void,
2065
- :DrawBillboardPro => :void,
2066
- :UploadMesh => :void,
2067
- :UpdateMeshBuffer => :void,
2068
- :UnloadMesh => :void,
2069
- :DrawMesh => :void,
2070
- :DrawMeshInstanced => :void,
2071
- :ExportMesh => :bool,
2072
- :GetMeshBoundingBox => BoundingBox.by_value,
2073
- :GenMeshTangents => :void,
2074
- :GenMeshBinormals => :void,
2075
- :GenMeshPoly => Mesh.by_value,
2076
- :GenMeshPlane => Mesh.by_value,
2077
- :GenMeshCube => Mesh.by_value,
2078
- :GenMeshSphere => Mesh.by_value,
2079
- :GenMeshHemiSphere => Mesh.by_value,
2080
- :GenMeshCylinder => Mesh.by_value,
2081
- :GenMeshCone => Mesh.by_value,
2082
- :GenMeshTorus => Mesh.by_value,
2083
- :GenMeshKnot => Mesh.by_value,
2084
- :GenMeshHeightmap => Mesh.by_value,
2085
- :GenMeshCubicmap => Mesh.by_value,
2086
- :LoadMaterials => :pointer,
2087
- :LoadMaterialDefault => Material.by_value,
2088
- :UnloadMaterial => :void,
2089
- :SetMaterialTexture => :void,
2090
- :SetModelMeshMaterial => :void,
2091
- :LoadModelAnimations => :pointer,
2092
- :UpdateModelAnimation => :void,
2093
- :UnloadModelAnimation => :void,
2094
- :UnloadModelAnimations => :void,
2095
- :IsModelAnimationValid => :bool,
2096
- :CheckCollisionSpheres => :bool,
2097
- :CheckCollisionBoxes => :bool,
2098
- :CheckCollisionBoxSphere => :bool,
2099
- :GetRayCollisionSphere => RayCollision.by_value,
2100
- :GetRayCollisionBox => RayCollision.by_value,
2101
- :GetRayCollisionModel => RayCollision.by_value,
2102
- :GetRayCollisionMesh => RayCollision.by_value,
2103
- :GetRayCollisionTriangle => RayCollision.by_value,
2104
- :GetRayCollisionQuad => RayCollision.by_value,
2105
- :InitAudioDevice => :void,
2106
- :CloseAudioDevice => :void,
2107
- :IsAudioDeviceReady => :bool,
2108
- :SetMasterVolume => :void,
2109
- :LoadWave => Wave.by_value,
2110
- :LoadWaveFromMemory => Wave.by_value,
2111
- :LoadSound => Sound.by_value,
2112
- :LoadSoundFromWave => Sound.by_value,
2113
- :UpdateSound => :void,
2114
- :UnloadWave => :void,
2115
- :UnloadSound => :void,
2116
- :ExportWave => :bool,
2117
- :ExportWaveAsCode => :bool,
2118
- :PlaySound => :void,
2119
- :StopSound => :void,
2120
- :PauseSound => :void,
2121
- :ResumeSound => :void,
2122
- :PlaySoundMulti => :void,
2123
- :StopSoundMulti => :void,
2124
- :GetSoundsPlaying => :int,
2125
- :IsSoundPlaying => :bool,
2126
- :SetSoundVolume => :void,
2127
- :SetSoundPitch => :void,
2128
- :SetSoundPan => :void,
2129
- :WaveCopy => Wave.by_value,
2130
- :WaveCrop => :void,
2131
- :WaveFormat => :void,
2132
- :LoadWaveSamples => :pointer,
2133
- :UnloadWaveSamples => :void,
2134
- :LoadMusicStream => Music.by_value,
2135
- :LoadMusicStreamFromMemory => Music.by_value,
2136
- :UnloadMusicStream => :void,
2137
- :PlayMusicStream => :void,
2138
- :IsMusicStreamPlaying => :bool,
2139
- :UpdateMusicStream => :void,
2140
- :StopMusicStream => :void,
2141
- :PauseMusicStream => :void,
2142
- :ResumeMusicStream => :void,
2143
- :SeekMusicStream => :void,
2144
- :SetMusicVolume => :void,
2145
- :SetMusicPitch => :void,
2146
- :SetMusicPan => :void,
2147
- :GetMusicTimeLength => :float,
2148
- :GetMusicTimePlayed => :float,
2149
- :LoadAudioStream => AudioStream.by_value,
2150
- :UnloadAudioStream => :void,
2151
- :UpdateAudioStream => :void,
2152
- :IsAudioStreamProcessed => :bool,
2153
- :PlayAudioStream => :void,
2154
- :PauseAudioStream => :void,
2155
- :ResumeAudioStream => :void,
2156
- :IsAudioStreamPlaying => :bool,
2157
- :StopAudioStream => :void,
2158
- :SetAudioStreamVolume => :void,
2159
- :SetAudioStreamPitch => :void,
2160
- :SetAudioStreamPan => :void,
2161
- :SetAudioStreamBufferSizeDefault => :void,
2162
- }
2163
- symbols.each do |sym|
2164
- begin
2165
- attach_function sym, args[sym], retvals[sym]
2166
- rescue FFI::NotFoundError => error
2167
- $stderr.puts("[Warning] Failed to import #{sym} (#{error}).")
2168
- end
2169
- end
2170
- end
2171
-
2172
- end
2173
-
1
+ # Yet another raylib wrapper for Ruby
2
+ #
3
+ # * https://github.com/vaiorabbit/raylib-bindings
4
+ #
5
+ # [NOTICE] This is an automatically generated file.
6
+
7
+ require 'ffi'
8
+
9
+ module Raylib
10
+ extend FFI::Library
11
+ # Define/Macro
12
+
13
+ RAYLIB_VERSION = "4.1-dev"
14
+ DEG2RAD = Math::PI / 180.0
15
+ RAD2DEG = 180.0 / Math::PI
16
+
17
+ # Enum
18
+
19
+ FLAG_VSYNC_HINT = 64
20
+ FLAG_FULLSCREEN_MODE = 2
21
+ FLAG_WINDOW_RESIZABLE = 4
22
+ FLAG_WINDOW_UNDECORATED = 8
23
+ FLAG_WINDOW_HIDDEN = 128
24
+ FLAG_WINDOW_MINIMIZED = 512
25
+ FLAG_WINDOW_MAXIMIZED = 1024
26
+ FLAG_WINDOW_UNFOCUSED = 2048
27
+ FLAG_WINDOW_TOPMOST = 4096
28
+ FLAG_WINDOW_ALWAYS_RUN = 256
29
+ FLAG_WINDOW_TRANSPARENT = 16
30
+ FLAG_WINDOW_HIGHDPI = 8192
31
+ FLAG_MSAA_4X_HINT = 32
32
+ FLAG_INTERLACED_HINT = 65536
33
+ LOG_ALL = 0
34
+ LOG_TRACE = 1
35
+ LOG_DEBUG = 2
36
+ LOG_INFO = 3
37
+ LOG_WARNING = 4
38
+ LOG_ERROR = 5
39
+ LOG_FATAL = 6
40
+ LOG_NONE = 7
41
+ KEY_NULL = 0
42
+ KEY_APOSTROPHE = 39
43
+ KEY_COMMA = 44
44
+ KEY_MINUS = 45
45
+ KEY_PERIOD = 46
46
+ KEY_SLASH = 47
47
+ KEY_ZERO = 48
48
+ KEY_ONE = 49
49
+ KEY_TWO = 50
50
+ KEY_THREE = 51
51
+ KEY_FOUR = 52
52
+ KEY_FIVE = 53
53
+ KEY_SIX = 54
54
+ KEY_SEVEN = 55
55
+ KEY_EIGHT = 56
56
+ KEY_NINE = 57
57
+ KEY_SEMICOLON = 59
58
+ KEY_EQUAL = 61
59
+ KEY_A = 65
60
+ KEY_B = 66
61
+ KEY_C = 67
62
+ KEY_D = 68
63
+ KEY_E = 69
64
+ KEY_F = 70
65
+ KEY_G = 71
66
+ KEY_H = 72
67
+ KEY_I = 73
68
+ KEY_J = 74
69
+ KEY_K = 75
70
+ KEY_L = 76
71
+ KEY_M = 77
72
+ KEY_N = 78
73
+ KEY_O = 79
74
+ KEY_P = 80
75
+ KEY_Q = 81
76
+ KEY_R = 82
77
+ KEY_S = 83
78
+ KEY_T = 84
79
+ KEY_U = 85
80
+ KEY_V = 86
81
+ KEY_W = 87
82
+ KEY_X = 88
83
+ KEY_Y = 89
84
+ KEY_Z = 90
85
+ KEY_LEFT_BRACKET = 91
86
+ KEY_BACKSLASH = 92
87
+ KEY_RIGHT_BRACKET = 93
88
+ KEY_GRAVE = 96
89
+ KEY_SPACE = 32
90
+ KEY_ESCAPE = 256
91
+ KEY_ENTER = 257
92
+ KEY_TAB = 258
93
+ KEY_BACKSPACE = 259
94
+ KEY_INSERT = 260
95
+ KEY_DELETE = 261
96
+ KEY_RIGHT = 262
97
+ KEY_LEFT = 263
98
+ KEY_DOWN = 264
99
+ KEY_UP = 265
100
+ KEY_PAGE_UP = 266
101
+ KEY_PAGE_DOWN = 267
102
+ KEY_HOME = 268
103
+ KEY_END = 269
104
+ KEY_CAPS_LOCK = 280
105
+ KEY_SCROLL_LOCK = 281
106
+ KEY_NUM_LOCK = 282
107
+ KEY_PRINT_SCREEN = 283
108
+ KEY_PAUSE = 284
109
+ KEY_F1 = 290
110
+ KEY_F2 = 291
111
+ KEY_F3 = 292
112
+ KEY_F4 = 293
113
+ KEY_F5 = 294
114
+ KEY_F6 = 295
115
+ KEY_F7 = 296
116
+ KEY_F8 = 297
117
+ KEY_F9 = 298
118
+ KEY_F10 = 299
119
+ KEY_F11 = 300
120
+ KEY_F12 = 301
121
+ KEY_LEFT_SHIFT = 340
122
+ KEY_LEFT_CONTROL = 341
123
+ KEY_LEFT_ALT = 342
124
+ KEY_LEFT_SUPER = 343
125
+ KEY_RIGHT_SHIFT = 344
126
+ KEY_RIGHT_CONTROL = 345
127
+ KEY_RIGHT_ALT = 346
128
+ KEY_RIGHT_SUPER = 347
129
+ KEY_KB_MENU = 348
130
+ KEY_KP_0 = 320
131
+ KEY_KP_1 = 321
132
+ KEY_KP_2 = 322
133
+ KEY_KP_3 = 323
134
+ KEY_KP_4 = 324
135
+ KEY_KP_5 = 325
136
+ KEY_KP_6 = 326
137
+ KEY_KP_7 = 327
138
+ KEY_KP_8 = 328
139
+ KEY_KP_9 = 329
140
+ KEY_KP_DECIMAL = 330
141
+ KEY_KP_DIVIDE = 331
142
+ KEY_KP_MULTIPLY = 332
143
+ KEY_KP_SUBTRACT = 333
144
+ KEY_KP_ADD = 334
145
+ KEY_KP_ENTER = 335
146
+ KEY_KP_EQUAL = 336
147
+ KEY_BACK = 4
148
+ KEY_MENU = 82
149
+ KEY_VOLUME_UP = 24
150
+ KEY_VOLUME_DOWN = 25
151
+ MOUSE_BUTTON_LEFT = 0
152
+ MOUSE_BUTTON_RIGHT = 1
153
+ MOUSE_BUTTON_MIDDLE = 2
154
+ MOUSE_BUTTON_SIDE = 3
155
+ MOUSE_BUTTON_EXTRA = 4
156
+ MOUSE_BUTTON_FORWARD = 5
157
+ MOUSE_BUTTON_BACK = 6
158
+ MOUSE_CURSOR_DEFAULT = 0
159
+ MOUSE_CURSOR_ARROW = 1
160
+ MOUSE_CURSOR_IBEAM = 2
161
+ MOUSE_CURSOR_CROSSHAIR = 3
162
+ MOUSE_CURSOR_POINTING_HAND = 4
163
+ MOUSE_CURSOR_RESIZE_EW = 5
164
+ MOUSE_CURSOR_RESIZE_NS = 6
165
+ MOUSE_CURSOR_RESIZE_NWSE = 7
166
+ MOUSE_CURSOR_RESIZE_NESW = 8
167
+ MOUSE_CURSOR_RESIZE_ALL = 9
168
+ MOUSE_CURSOR_NOT_ALLOWED = 10
169
+ GAMEPAD_BUTTON_UNKNOWN = 0
170
+ GAMEPAD_BUTTON_LEFT_FACE_UP = 1
171
+ GAMEPAD_BUTTON_LEFT_FACE_RIGHT = 2
172
+ GAMEPAD_BUTTON_LEFT_FACE_DOWN = 3
173
+ GAMEPAD_BUTTON_LEFT_FACE_LEFT = 4
174
+ GAMEPAD_BUTTON_RIGHT_FACE_UP = 5
175
+ GAMEPAD_BUTTON_RIGHT_FACE_RIGHT = 6
176
+ GAMEPAD_BUTTON_RIGHT_FACE_DOWN = 7
177
+ GAMEPAD_BUTTON_RIGHT_FACE_LEFT = 8
178
+ GAMEPAD_BUTTON_LEFT_TRIGGER_1 = 9
179
+ GAMEPAD_BUTTON_LEFT_TRIGGER_2 = 10
180
+ GAMEPAD_BUTTON_RIGHT_TRIGGER_1 = 11
181
+ GAMEPAD_BUTTON_RIGHT_TRIGGER_2 = 12
182
+ GAMEPAD_BUTTON_MIDDLE_LEFT = 13
183
+ GAMEPAD_BUTTON_MIDDLE = 14
184
+ GAMEPAD_BUTTON_MIDDLE_RIGHT = 15
185
+ GAMEPAD_BUTTON_LEFT_THUMB = 16
186
+ GAMEPAD_BUTTON_RIGHT_THUMB = 17
187
+ GAMEPAD_AXIS_LEFT_X = 0
188
+ GAMEPAD_AXIS_LEFT_Y = 1
189
+ GAMEPAD_AXIS_RIGHT_X = 2
190
+ GAMEPAD_AXIS_RIGHT_Y = 3
191
+ GAMEPAD_AXIS_LEFT_TRIGGER = 4
192
+ GAMEPAD_AXIS_RIGHT_TRIGGER = 5
193
+ MATERIAL_MAP_ALBEDO = 0
194
+ MATERIAL_MAP_METALNESS = 1
195
+ MATERIAL_MAP_NORMAL = 2
196
+ MATERIAL_MAP_ROUGHNESS = 3
197
+ MATERIAL_MAP_OCCLUSION = 4
198
+ MATERIAL_MAP_EMISSION = 5
199
+ MATERIAL_MAP_HEIGHT = 6
200
+ MATERIAL_MAP_CUBEMAP = 7
201
+ MATERIAL_MAP_IRRADIANCE = 8
202
+ MATERIAL_MAP_PREFILTER = 9
203
+ MATERIAL_MAP_BRDF = 10
204
+ SHADER_LOC_VERTEX_POSITION = 0
205
+ SHADER_LOC_VERTEX_TEXCOORD01 = 1
206
+ SHADER_LOC_VERTEX_TEXCOORD02 = 2
207
+ SHADER_LOC_VERTEX_NORMAL = 3
208
+ SHADER_LOC_VERTEX_TANGENT = 4
209
+ SHADER_LOC_VERTEX_COLOR = 5
210
+ SHADER_LOC_MATRIX_MVP = 6
211
+ SHADER_LOC_MATRIX_VIEW = 7
212
+ SHADER_LOC_MATRIX_PROJECTION = 8
213
+ SHADER_LOC_MATRIX_MODEL = 9
214
+ SHADER_LOC_MATRIX_NORMAL = 10
215
+ SHADER_LOC_VECTOR_VIEW = 11
216
+ SHADER_LOC_COLOR_DIFFUSE = 12
217
+ SHADER_LOC_COLOR_SPECULAR = 13
218
+ SHADER_LOC_COLOR_AMBIENT = 14
219
+ SHADER_LOC_MAP_ALBEDO = 15
220
+ SHADER_LOC_MAP_METALNESS = 16
221
+ SHADER_LOC_MAP_NORMAL = 17
222
+ SHADER_LOC_MAP_ROUGHNESS = 18
223
+ SHADER_LOC_MAP_OCCLUSION = 19
224
+ SHADER_LOC_MAP_EMISSION = 20
225
+ SHADER_LOC_MAP_HEIGHT = 21
226
+ SHADER_LOC_MAP_CUBEMAP = 22
227
+ SHADER_LOC_MAP_IRRADIANCE = 23
228
+ SHADER_LOC_MAP_PREFILTER = 24
229
+ SHADER_LOC_MAP_BRDF = 25
230
+ SHADER_UNIFORM_FLOAT = 0
231
+ SHADER_UNIFORM_VEC2 = 1
232
+ SHADER_UNIFORM_VEC3 = 2
233
+ SHADER_UNIFORM_VEC4 = 3
234
+ SHADER_UNIFORM_INT = 4
235
+ SHADER_UNIFORM_IVEC2 = 5
236
+ SHADER_UNIFORM_IVEC3 = 6
237
+ SHADER_UNIFORM_IVEC4 = 7
238
+ SHADER_UNIFORM_SAMPLER2D = 8
239
+ SHADER_ATTRIB_FLOAT = 0
240
+ SHADER_ATTRIB_VEC2 = 1
241
+ SHADER_ATTRIB_VEC3 = 2
242
+ SHADER_ATTRIB_VEC4 = 3
243
+ PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = 1
244
+ PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA = 2
245
+ PIXELFORMAT_UNCOMPRESSED_R5G6B5 = 3
246
+ PIXELFORMAT_UNCOMPRESSED_R8G8B8 = 4
247
+ PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 = 5
248
+ PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 = 6
249
+ PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 = 7
250
+ PIXELFORMAT_UNCOMPRESSED_R32 = 8
251
+ PIXELFORMAT_UNCOMPRESSED_R32G32B32 = 9
252
+ PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 = 10
253
+ PIXELFORMAT_COMPRESSED_DXT1_RGB = 11
254
+ PIXELFORMAT_COMPRESSED_DXT1_RGBA = 12
255
+ PIXELFORMAT_COMPRESSED_DXT3_RGBA = 13
256
+ PIXELFORMAT_COMPRESSED_DXT5_RGBA = 14
257
+ PIXELFORMAT_COMPRESSED_ETC1_RGB = 15
258
+ PIXELFORMAT_COMPRESSED_ETC2_RGB = 16
259
+ PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA = 17
260
+ PIXELFORMAT_COMPRESSED_PVRT_RGB = 18
261
+ PIXELFORMAT_COMPRESSED_PVRT_RGBA = 19
262
+ PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA = 20
263
+ PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA = 21
264
+ TEXTURE_FILTER_POINT = 0
265
+ TEXTURE_FILTER_BILINEAR = 1
266
+ TEXTURE_FILTER_TRILINEAR = 2
267
+ TEXTURE_FILTER_ANISOTROPIC_4X = 3
268
+ TEXTURE_FILTER_ANISOTROPIC_8X = 4
269
+ TEXTURE_FILTER_ANISOTROPIC_16X = 5
270
+ TEXTURE_WRAP_REPEAT = 0
271
+ TEXTURE_WRAP_CLAMP = 1
272
+ TEXTURE_WRAP_MIRROR_REPEAT = 2
273
+ TEXTURE_WRAP_MIRROR_CLAMP = 3
274
+ CUBEMAP_LAYOUT_AUTO_DETECT = 0
275
+ CUBEMAP_LAYOUT_LINE_VERTICAL = 1
276
+ CUBEMAP_LAYOUT_LINE_HORIZONTAL = 2
277
+ CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR = 3
278
+ CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE = 4
279
+ CUBEMAP_LAYOUT_PANORAMA = 5
280
+ FONT_DEFAULT = 0
281
+ FONT_BITMAP = 1
282
+ FONT_SDF = 2
283
+ BLEND_ALPHA = 0
284
+ BLEND_ADDITIVE = 1
285
+ BLEND_MULTIPLIED = 2
286
+ BLEND_ADD_COLORS = 3
287
+ BLEND_SUBTRACT_COLORS = 4
288
+ BLEND_ALPHA_PREMUL = 5
289
+ BLEND_CUSTOM = 6
290
+ GESTURE_NONE = 0
291
+ GESTURE_TAP = 1
292
+ GESTURE_DOUBLETAP = 2
293
+ GESTURE_HOLD = 4
294
+ GESTURE_DRAG = 8
295
+ GESTURE_SWIPE_RIGHT = 16
296
+ GESTURE_SWIPE_LEFT = 32
297
+ GESTURE_SWIPE_UP = 64
298
+ GESTURE_SWIPE_DOWN = 128
299
+ GESTURE_PINCH_IN = 256
300
+ GESTURE_PINCH_OUT = 512
301
+ CAMERA_CUSTOM = 0
302
+ CAMERA_FREE = 1
303
+ CAMERA_ORBITAL = 2
304
+ CAMERA_FIRST_PERSON = 3
305
+ CAMERA_THIRD_PERSON = 4
306
+ CAMERA_PERSPECTIVE = 0
307
+ CAMERA_ORTHOGRAPHIC = 1
308
+ NPATCH_NINE_PATCH = 0
309
+ NPATCH_THREE_PATCH_VERTICAL = 1
310
+ NPATCH_THREE_PATCH_HORIZONTAL = 2
311
+
312
+ # Typedef
313
+
314
+ typedef :int, :ConfigFlags
315
+ typedef :int, :TraceLogLevel
316
+ typedef :int, :KeyboardKey
317
+ typedef :int, :MouseButton
318
+ typedef :int, :MouseCursor
319
+ typedef :int, :GamepadButton
320
+ typedef :int, :GamepadAxis
321
+ typedef :int, :MaterialMapIndex
322
+ typedef :int, :ShaderLocationIndex
323
+ typedef :int, :ShaderUniformDataType
324
+ typedef :int, :ShaderAttributeDataType
325
+ typedef :int, :PixelFormat
326
+ typedef :int, :TextureFilter
327
+ typedef :int, :TextureWrap
328
+ typedef :int, :CubemapLayout
329
+ typedef :int, :FontType
330
+ typedef :int, :BlendMode
331
+ typedef :int, :Gesture
332
+ typedef :int, :CameraMode
333
+ typedef :int, :CameraProjection
334
+ typedef :int, :NPatchLayout
335
+ callback :TraceLogCallback, [:int, :pointer, :int], :void
336
+ callback :LoadFileDataCallback, [:pointer, :pointer], :pointer
337
+ callback :SaveFileDataCallback, [:pointer, :pointer, :uint], :bool
338
+ callback :LoadFileTextCallback, [:pointer], :pointer
339
+ callback :SaveFileTextCallback, [:pointer, :pointer], :bool
340
+ callback :AudioCallback, [:pointer, :uint], :void
341
+
342
+ # Struct
343
+
344
+ class Vector2 < FFI::Struct
345
+ layout(
346
+ :x, :float,
347
+ :y, :float,
348
+ )
349
+ end
350
+
351
+ class Vector3 < FFI::Struct
352
+ layout(
353
+ :x, :float,
354
+ :y, :float,
355
+ :z, :float,
356
+ )
357
+ end
358
+
359
+ class Vector4 < FFI::Struct
360
+ layout(
361
+ :x, :float,
362
+ :y, :float,
363
+ :z, :float,
364
+ :w, :float,
365
+ )
366
+ end
367
+
368
+ Quaternion = Vector4
369
+
370
+ class Matrix < FFI::Struct
371
+ layout(
372
+ :m0, :float,
373
+ :m4, :float,
374
+ :m8, :float,
375
+ :m12, :float,
376
+ :m1, :float,
377
+ :m5, :float,
378
+ :m9, :float,
379
+ :m13, :float,
380
+ :m2, :float,
381
+ :m6, :float,
382
+ :m10, :float,
383
+ :m14, :float,
384
+ :m3, :float,
385
+ :m7, :float,
386
+ :m11, :float,
387
+ :m15, :float,
388
+ )
389
+ end
390
+
391
+ class Color < FFI::Struct
392
+ layout(
393
+ :r, :uchar,
394
+ :g, :uchar,
395
+ :b, :uchar,
396
+ :a, :uchar,
397
+ )
398
+ end
399
+
400
+ class Rectangle < FFI::Struct
401
+ layout(
402
+ :x, :float,
403
+ :y, :float,
404
+ :width, :float,
405
+ :height, :float,
406
+ )
407
+ end
408
+
409
+ class Image < FFI::Struct
410
+ layout(
411
+ :data, :pointer,
412
+ :width, :int,
413
+ :height, :int,
414
+ :mipmaps, :int,
415
+ :format, :int,
416
+ )
417
+ end
418
+
419
+ class Texture < FFI::Struct
420
+ layout(
421
+ :id, :uint,
422
+ :width, :int,
423
+ :height, :int,
424
+ :mipmaps, :int,
425
+ :format, :int,
426
+ )
427
+ end
428
+
429
+ Texture2D = Texture
430
+ TextureCubemap = Texture
431
+
432
+ class RenderTexture < FFI::Struct
433
+ layout(
434
+ :id, :uint,
435
+ :texture, Texture,
436
+ :depth, Texture,
437
+ )
438
+ end
439
+
440
+ RenderTexture2D = RenderTexture
441
+
442
+ class NPatchInfo < FFI::Struct
443
+ layout(
444
+ :source, Rectangle,
445
+ :left, :int,
446
+ :top, :int,
447
+ :right, :int,
448
+ :bottom, :int,
449
+ :layout, :int,
450
+ )
451
+ end
452
+
453
+ class GlyphInfo < FFI::Struct
454
+ layout(
455
+ :value, :int,
456
+ :offsetX, :int,
457
+ :offsetY, :int,
458
+ :advanceX, :int,
459
+ :image, Image,
460
+ )
461
+ end
462
+
463
+ class Font < FFI::Struct
464
+ layout(
465
+ :baseSize, :int,
466
+ :glyphCount, :int,
467
+ :glyphPadding, :int,
468
+ :texture, Texture2D,
469
+ :recs, :pointer,
470
+ :glyphs, :pointer,
471
+ )
472
+ end
473
+
474
+ class Camera3D < FFI::Struct
475
+ layout(
476
+ :position, Vector3,
477
+ :target, Vector3,
478
+ :up, Vector3,
479
+ :fovy, :float,
480
+ :projection, :int,
481
+ )
482
+ end
483
+
484
+ Camera = Camera3D
485
+
486
+ class Camera2D < FFI::Struct
487
+ layout(
488
+ :offset, Vector2,
489
+ :target, Vector2,
490
+ :rotation, :float,
491
+ :zoom, :float,
492
+ )
493
+ end
494
+
495
+ class Mesh < FFI::Struct
496
+ layout(
497
+ :vertexCount, :int,
498
+ :triangleCount, :int,
499
+ :vertices, :pointer,
500
+ :texcoords, :pointer,
501
+ :texcoords2, :pointer,
502
+ :normals, :pointer,
503
+ :tangents, :pointer,
504
+ :colors, :pointer,
505
+ :indices, :pointer,
506
+ :animVertices, :pointer,
507
+ :animNormals, :pointer,
508
+ :boneIds, :pointer,
509
+ :boneWeights, :pointer,
510
+ :vaoId, :uint,
511
+ :vboId, :pointer,
512
+ )
513
+ end
514
+
515
+ class Shader < FFI::Struct
516
+ layout(
517
+ :id, :uint,
518
+ :locs, :pointer,
519
+ )
520
+ end
521
+
522
+ class MaterialMap < FFI::Struct
523
+ layout(
524
+ :texture, Texture2D,
525
+ :color, Color,
526
+ :value, :float,
527
+ )
528
+ end
529
+
530
+ class Material < FFI::Struct
531
+ layout(
532
+ :shader, Shader,
533
+ :maps, :pointer,
534
+ :params, [:float, 4],
535
+ )
536
+ end
537
+
538
+ class Transform < FFI::Struct
539
+ layout(
540
+ :translation, Vector3,
541
+ :rotation, Quaternion,
542
+ :scale, Vector3,
543
+ )
544
+ end
545
+
546
+ class BoneInfo < FFI::Struct
547
+ layout(
548
+ :name, [:char, 32],
549
+ :parent, :int,
550
+ )
551
+ end
552
+
553
+ class Model < FFI::Struct
554
+ layout(
555
+ :transform, Matrix,
556
+ :meshCount, :int,
557
+ :materialCount, :int,
558
+ :meshes, :pointer,
559
+ :materials, :pointer,
560
+ :meshMaterial, :pointer,
561
+ :boneCount, :int,
562
+ :bones, :pointer,
563
+ :bindPose, :pointer,
564
+ )
565
+ end
566
+
567
+ class ModelAnimation < FFI::Struct
568
+ layout(
569
+ :boneCount, :int,
570
+ :frameCount, :int,
571
+ :bones, :pointer,
572
+ :framePoses, :pointer,
573
+ )
574
+ end
575
+
576
+ class Ray < FFI::Struct
577
+ layout(
578
+ :position, Vector3,
579
+ :direction, Vector3,
580
+ )
581
+ end
582
+
583
+ class RayCollision < FFI::Struct
584
+ layout(
585
+ :hit, :bool,
586
+ :distance, :float,
587
+ :point, Vector3,
588
+ :normal, Vector3,
589
+ )
590
+ end
591
+
592
+ class BoundingBox < FFI::Struct
593
+ layout(
594
+ :min, Vector3,
595
+ :max, Vector3,
596
+ )
597
+ end
598
+
599
+ class Wave < FFI::Struct
600
+ layout(
601
+ :frameCount, :uint,
602
+ :sampleRate, :uint,
603
+ :sampleSize, :uint,
604
+ :channels, :uint,
605
+ :data, :pointer,
606
+ )
607
+ end
608
+
609
+ class AudioStream < FFI::Struct
610
+ layout(
611
+ :buffer, :pointer,
612
+ :processor, :pointer,
613
+ :sampleRate, :uint,
614
+ :sampleSize, :uint,
615
+ :channels, :uint,
616
+ )
617
+ end
618
+
619
+ class Sound < FFI::Struct
620
+ layout(
621
+ :stream, AudioStream,
622
+ :frameCount, :uint,
623
+ )
624
+ end
625
+
626
+ class Music < FFI::Struct
627
+ layout(
628
+ :stream, AudioStream,
629
+ :frameCount, :uint,
630
+ :looping, :bool,
631
+ :ctxType, :int,
632
+ :ctxData, :pointer,
633
+ )
634
+ end
635
+
636
+ class VrDeviceInfo < FFI::Struct
637
+ layout(
638
+ :hResolution, :int,
639
+ :vResolution, :int,
640
+ :hScreenSize, :float,
641
+ :vScreenSize, :float,
642
+ :vScreenCenter, :float,
643
+ :eyeToScreenDistance, :float,
644
+ :lensSeparationDistance, :float,
645
+ :interpupillaryDistance, :float,
646
+ :lensDistortionValues, [:float, 4],
647
+ :chromaAbCorrection, [:float, 4],
648
+ )
649
+ end
650
+
651
+ class VrStereoConfig < FFI::Struct
652
+ layout(
653
+ :projection, [Matrix, 2],
654
+ :viewOffset, [Matrix, 2],
655
+ :leftLensCenter, [:float, 2],
656
+ :rightLensCenter, [:float, 2],
657
+ :leftScreenCenter, [:float, 2],
658
+ :rightScreenCenter, [:float, 2],
659
+ :scale, [:float, 2],
660
+ :scaleIn, [:float, 2],
661
+ )
662
+ end
663
+
664
+
665
+ # Function
666
+
667
+ def self.setup_raylib_symbols()
668
+ symbols = [
669
+ :InitWindow,
670
+ :WindowShouldClose,
671
+ :CloseWindow,
672
+ :IsWindowReady,
673
+ :IsWindowFullscreen,
674
+ :IsWindowHidden,
675
+ :IsWindowMinimized,
676
+ :IsWindowMaximized,
677
+ :IsWindowFocused,
678
+ :IsWindowResized,
679
+ :IsWindowState,
680
+ :SetWindowState,
681
+ :ClearWindowState,
682
+ :ToggleFullscreen,
683
+ :MaximizeWindow,
684
+ :MinimizeWindow,
685
+ :RestoreWindow,
686
+ :SetWindowIcon,
687
+ :SetWindowTitle,
688
+ :SetWindowPosition,
689
+ :SetWindowMonitor,
690
+ :SetWindowMinSize,
691
+ :SetWindowSize,
692
+ :SetWindowOpacity,
693
+ :GetWindowHandle,
694
+ :GetScreenWidth,
695
+ :GetScreenHeight,
696
+ :GetRenderWidth,
697
+ :GetRenderHeight,
698
+ :GetMonitorCount,
699
+ :GetCurrentMonitor,
700
+ :GetMonitorPosition,
701
+ :GetMonitorWidth,
702
+ :GetMonitorHeight,
703
+ :GetMonitorPhysicalWidth,
704
+ :GetMonitorPhysicalHeight,
705
+ :GetMonitorRefreshRate,
706
+ :GetWindowPosition,
707
+ :GetWindowScaleDPI,
708
+ :GetMonitorName,
709
+ :SetClipboardText,
710
+ :GetClipboardText,
711
+ :SwapScreenBuffer,
712
+ :PollInputEvents,
713
+ :WaitTime,
714
+ :ShowCursor,
715
+ :HideCursor,
716
+ :IsCursorHidden,
717
+ :EnableCursor,
718
+ :DisableCursor,
719
+ :IsCursorOnScreen,
720
+ :ClearBackground,
721
+ :BeginDrawing,
722
+ :EndDrawing,
723
+ :BeginMode2D,
724
+ :EndMode2D,
725
+ :BeginMode3D,
726
+ :EndMode3D,
727
+ :BeginTextureMode,
728
+ :EndTextureMode,
729
+ :BeginShaderMode,
730
+ :EndShaderMode,
731
+ :BeginBlendMode,
732
+ :EndBlendMode,
733
+ :BeginScissorMode,
734
+ :EndScissorMode,
735
+ :BeginVrStereoMode,
736
+ :EndVrStereoMode,
737
+ :LoadVrStereoConfig,
738
+ :UnloadVrStereoConfig,
739
+ :LoadShader,
740
+ :LoadShaderFromMemory,
741
+ :GetShaderLocation,
742
+ :GetShaderLocationAttrib,
743
+ :SetShaderValue,
744
+ :SetShaderValueV,
745
+ :SetShaderValueMatrix,
746
+ :SetShaderValueTexture,
747
+ :UnloadShader,
748
+ :GetMouseRay,
749
+ :GetCameraMatrix,
750
+ :GetCameraMatrix2D,
751
+ :GetWorldToScreen,
752
+ :GetWorldToScreenEx,
753
+ :GetWorldToScreen2D,
754
+ :GetScreenToWorld2D,
755
+ :SetTargetFPS,
756
+ :GetFPS,
757
+ :GetFrameTime,
758
+ :GetTime,
759
+ :GetRandomValue,
760
+ :SetRandomSeed,
761
+ :TakeScreenshot,
762
+ :SetConfigFlags,
763
+ :TraceLog,
764
+ :SetTraceLogLevel,
765
+ :MemAlloc,
766
+ :MemRealloc,
767
+ :MemFree,
768
+ :SetTraceLogCallback,
769
+ :SetLoadFileDataCallback,
770
+ :SetSaveFileDataCallback,
771
+ :SetLoadFileTextCallback,
772
+ :SetSaveFileTextCallback,
773
+ :LoadFileData,
774
+ :UnloadFileData,
775
+ :SaveFileData,
776
+ :LoadFileText,
777
+ :UnloadFileText,
778
+ :SaveFileText,
779
+ :FileExists,
780
+ :DirectoryExists,
781
+ :IsFileExtension,
782
+ :GetFileLength,
783
+ :GetFileExtension,
784
+ :GetFileName,
785
+ :GetFileNameWithoutExt,
786
+ :GetDirectoryPath,
787
+ :GetPrevDirectoryPath,
788
+ :GetWorkingDirectory,
789
+ :GetApplicationDirectory,
790
+ :GetDirectoryFiles,
791
+ :ClearDirectoryFiles,
792
+ :ChangeDirectory,
793
+ :IsFileDropped,
794
+ :GetDroppedFiles,
795
+ :ClearDroppedFiles,
796
+ :GetFileModTime,
797
+ :CompressData,
798
+ :DecompressData,
799
+ :EncodeDataBase64,
800
+ :DecodeDataBase64,
801
+ :SaveStorageValue,
802
+ :LoadStorageValue,
803
+ :OpenURL,
804
+ :IsKeyPressed,
805
+ :IsKeyDown,
806
+ :IsKeyReleased,
807
+ :IsKeyUp,
808
+ :SetExitKey,
809
+ :GetKeyPressed,
810
+ :GetCharPressed,
811
+ :IsGamepadAvailable,
812
+ :GetGamepadName,
813
+ :IsGamepadButtonPressed,
814
+ :IsGamepadButtonDown,
815
+ :IsGamepadButtonReleased,
816
+ :IsGamepadButtonUp,
817
+ :GetGamepadButtonPressed,
818
+ :GetGamepadAxisCount,
819
+ :GetGamepadAxisMovement,
820
+ :SetGamepadMappings,
821
+ :IsMouseButtonPressed,
822
+ :IsMouseButtonDown,
823
+ :IsMouseButtonReleased,
824
+ :IsMouseButtonUp,
825
+ :GetMouseX,
826
+ :GetMouseY,
827
+ :GetMousePosition,
828
+ :GetMouseDelta,
829
+ :SetMousePosition,
830
+ :SetMouseOffset,
831
+ :SetMouseScale,
832
+ :GetMouseWheelMove,
833
+ :SetMouseCursor,
834
+ :GetTouchX,
835
+ :GetTouchY,
836
+ :GetTouchPosition,
837
+ :GetTouchPointId,
838
+ :GetTouchPointCount,
839
+ :SetGesturesEnabled,
840
+ :IsGestureDetected,
841
+ :GetGestureDetected,
842
+ :GetGestureHoldDuration,
843
+ :GetGestureDragVector,
844
+ :GetGestureDragAngle,
845
+ :GetGesturePinchVector,
846
+ :GetGesturePinchAngle,
847
+ :SetCameraMode,
848
+ :UpdateCamera,
849
+ :SetCameraPanControl,
850
+ :SetCameraAltControl,
851
+ :SetCameraSmoothZoomControl,
852
+ :SetCameraMoveControls,
853
+ :SetShapesTexture,
854
+ :DrawPixel,
855
+ :DrawPixelV,
856
+ :DrawLine,
857
+ :DrawLineV,
858
+ :DrawLineEx,
859
+ :DrawLineBezier,
860
+ :DrawLineBezierQuad,
861
+ :DrawLineBezierCubic,
862
+ :DrawLineStrip,
863
+ :DrawCircle,
864
+ :DrawCircleSector,
865
+ :DrawCircleSectorLines,
866
+ :DrawCircleGradient,
867
+ :DrawCircleV,
868
+ :DrawCircleLines,
869
+ :DrawEllipse,
870
+ :DrawEllipseLines,
871
+ :DrawRing,
872
+ :DrawRingLines,
873
+ :DrawRectangle,
874
+ :DrawRectangleV,
875
+ :DrawRectangleRec,
876
+ :DrawRectanglePro,
877
+ :DrawRectangleGradientV,
878
+ :DrawRectangleGradientH,
879
+ :DrawRectangleGradientEx,
880
+ :DrawRectangleLines,
881
+ :DrawRectangleLinesEx,
882
+ :DrawRectangleRounded,
883
+ :DrawRectangleRoundedLines,
884
+ :DrawTriangle,
885
+ :DrawTriangleLines,
886
+ :DrawTriangleFan,
887
+ :DrawTriangleStrip,
888
+ :DrawPoly,
889
+ :DrawPolyLines,
890
+ :DrawPolyLinesEx,
891
+ :CheckCollisionRecs,
892
+ :CheckCollisionCircles,
893
+ :CheckCollisionCircleRec,
894
+ :CheckCollisionPointRec,
895
+ :CheckCollisionPointCircle,
896
+ :CheckCollisionPointTriangle,
897
+ :CheckCollisionLines,
898
+ :CheckCollisionPointLine,
899
+ :GetCollisionRec,
900
+ :LoadImage,
901
+ :LoadImageRaw,
902
+ :LoadImageAnim,
903
+ :LoadImageFromMemory,
904
+ :LoadImageFromTexture,
905
+ :LoadImageFromScreen,
906
+ :UnloadImage,
907
+ :ExportImage,
908
+ :ExportImageAsCode,
909
+ :GenImageColor,
910
+ :GenImageGradientV,
911
+ :GenImageGradientH,
912
+ :GenImageGradientRadial,
913
+ :GenImageChecked,
914
+ :GenImageWhiteNoise,
915
+ :GenImageCellular,
916
+ :ImageCopy,
917
+ :ImageFromImage,
918
+ :ImageText,
919
+ :ImageTextEx,
920
+ :ImageFormat,
921
+ :ImageToPOT,
922
+ :ImageCrop,
923
+ :ImageAlphaCrop,
924
+ :ImageAlphaClear,
925
+ :ImageAlphaMask,
926
+ :ImageAlphaPremultiply,
927
+ :ImageResize,
928
+ :ImageResizeNN,
929
+ :ImageResizeCanvas,
930
+ :ImageMipmaps,
931
+ :ImageDither,
932
+ :ImageFlipVertical,
933
+ :ImageFlipHorizontal,
934
+ :ImageRotateCW,
935
+ :ImageRotateCCW,
936
+ :ImageColorTint,
937
+ :ImageColorInvert,
938
+ :ImageColorGrayscale,
939
+ :ImageColorContrast,
940
+ :ImageColorBrightness,
941
+ :ImageColorReplace,
942
+ :LoadImageColors,
943
+ :LoadImagePalette,
944
+ :UnloadImageColors,
945
+ :UnloadImagePalette,
946
+ :GetImageAlphaBorder,
947
+ :GetImageColor,
948
+ :ImageClearBackground,
949
+ :ImageDrawPixel,
950
+ :ImageDrawPixelV,
951
+ :ImageDrawLine,
952
+ :ImageDrawLineV,
953
+ :ImageDrawCircle,
954
+ :ImageDrawCircleV,
955
+ :ImageDrawRectangle,
956
+ :ImageDrawRectangleV,
957
+ :ImageDrawRectangleRec,
958
+ :ImageDrawRectangleLines,
959
+ :ImageDraw,
960
+ :ImageDrawText,
961
+ :ImageDrawTextEx,
962
+ :LoadTexture,
963
+ :LoadTextureFromImage,
964
+ :LoadTextureCubemap,
965
+ :LoadRenderTexture,
966
+ :UnloadTexture,
967
+ :UnloadRenderTexture,
968
+ :UpdateTexture,
969
+ :UpdateTextureRec,
970
+ :GenTextureMipmaps,
971
+ :SetTextureFilter,
972
+ :SetTextureWrap,
973
+ :DrawTexture,
974
+ :DrawTextureV,
975
+ :DrawTextureEx,
976
+ :DrawTextureRec,
977
+ :DrawTextureQuad,
978
+ :DrawTextureTiled,
979
+ :DrawTexturePro,
980
+ :DrawTextureNPatch,
981
+ :DrawTexturePoly,
982
+ :Fade,
983
+ :ColorToInt,
984
+ :ColorNormalize,
985
+ :ColorFromNormalized,
986
+ :ColorToHSV,
987
+ :ColorFromHSV,
988
+ :ColorAlpha,
989
+ :ColorAlphaBlend,
990
+ :GetColor,
991
+ :GetPixelColor,
992
+ :SetPixelColor,
993
+ :GetPixelDataSize,
994
+ :GetFontDefault,
995
+ :LoadFont,
996
+ :LoadFontEx,
997
+ :LoadFontFromImage,
998
+ :LoadFontFromMemory,
999
+ :LoadFontData,
1000
+ :GenImageFontAtlas,
1001
+ :UnloadFontData,
1002
+ :UnloadFont,
1003
+ :ExportFontAsCode,
1004
+ :DrawFPS,
1005
+ :DrawText,
1006
+ :DrawTextEx,
1007
+ :DrawTextPro,
1008
+ :DrawTextCodepoint,
1009
+ :DrawTextCodepoints,
1010
+ :MeasureText,
1011
+ :MeasureTextEx,
1012
+ :GetGlyphIndex,
1013
+ :GetGlyphInfo,
1014
+ :GetGlyphAtlasRec,
1015
+ :LoadCodepoints,
1016
+ :UnloadCodepoints,
1017
+ :GetCodepointCount,
1018
+ :GetCodepoint,
1019
+ :CodepointToUTF8,
1020
+ :TextCodepointsToUTF8,
1021
+ :TextCopy,
1022
+ :TextIsEqual,
1023
+ :TextLength,
1024
+ :TextFormat,
1025
+ :TextSubtext,
1026
+ :TextReplace,
1027
+ :TextInsert,
1028
+ :TextJoin,
1029
+ :TextSplit,
1030
+ :TextAppend,
1031
+ :TextFindIndex,
1032
+ :TextToUpper,
1033
+ :TextToLower,
1034
+ :TextToPascal,
1035
+ :TextToInteger,
1036
+ :DrawLine3D,
1037
+ :DrawPoint3D,
1038
+ :DrawCircle3D,
1039
+ :DrawTriangle3D,
1040
+ :DrawTriangleStrip3D,
1041
+ :DrawCube,
1042
+ :DrawCubeV,
1043
+ :DrawCubeWires,
1044
+ :DrawCubeWiresV,
1045
+ :DrawCubeTexture,
1046
+ :DrawCubeTextureRec,
1047
+ :DrawSphere,
1048
+ :DrawSphereEx,
1049
+ :DrawSphereWires,
1050
+ :DrawCylinder,
1051
+ :DrawCylinderEx,
1052
+ :DrawCylinderWires,
1053
+ :DrawCylinderWiresEx,
1054
+ :DrawPlane,
1055
+ :DrawRay,
1056
+ :DrawGrid,
1057
+ :LoadModel,
1058
+ :LoadModelFromMesh,
1059
+ :UnloadModel,
1060
+ :UnloadModelKeepMeshes,
1061
+ :GetModelBoundingBox,
1062
+ :DrawModel,
1063
+ :DrawModelEx,
1064
+ :DrawModelWires,
1065
+ :DrawModelWiresEx,
1066
+ :DrawBoundingBox,
1067
+ :DrawBillboard,
1068
+ :DrawBillboardRec,
1069
+ :DrawBillboardPro,
1070
+ :UploadMesh,
1071
+ :UpdateMeshBuffer,
1072
+ :UnloadMesh,
1073
+ :DrawMesh,
1074
+ :DrawMeshInstanced,
1075
+ :ExportMesh,
1076
+ :GetMeshBoundingBox,
1077
+ :GenMeshTangents,
1078
+ :GenMeshBinormals,
1079
+ :GenMeshPoly,
1080
+ :GenMeshPlane,
1081
+ :GenMeshCube,
1082
+ :GenMeshSphere,
1083
+ :GenMeshHemiSphere,
1084
+ :GenMeshCylinder,
1085
+ :GenMeshCone,
1086
+ :GenMeshTorus,
1087
+ :GenMeshKnot,
1088
+ :GenMeshHeightmap,
1089
+ :GenMeshCubicmap,
1090
+ :LoadMaterials,
1091
+ :LoadMaterialDefault,
1092
+ :UnloadMaterial,
1093
+ :SetMaterialTexture,
1094
+ :SetModelMeshMaterial,
1095
+ :LoadModelAnimations,
1096
+ :UpdateModelAnimation,
1097
+ :UnloadModelAnimation,
1098
+ :UnloadModelAnimations,
1099
+ :IsModelAnimationValid,
1100
+ :CheckCollisionSpheres,
1101
+ :CheckCollisionBoxes,
1102
+ :CheckCollisionBoxSphere,
1103
+ :GetRayCollisionSphere,
1104
+ :GetRayCollisionBox,
1105
+ :GetRayCollisionMesh,
1106
+ :GetRayCollisionTriangle,
1107
+ :GetRayCollisionQuad,
1108
+ :InitAudioDevice,
1109
+ :CloseAudioDevice,
1110
+ :IsAudioDeviceReady,
1111
+ :SetMasterVolume,
1112
+ :LoadWave,
1113
+ :LoadWaveFromMemory,
1114
+ :LoadSound,
1115
+ :LoadSoundFromWave,
1116
+ :UpdateSound,
1117
+ :UnloadWave,
1118
+ :UnloadSound,
1119
+ :ExportWave,
1120
+ :ExportWaveAsCode,
1121
+ :PlaySound,
1122
+ :StopSound,
1123
+ :PauseSound,
1124
+ :ResumeSound,
1125
+ :PlaySoundMulti,
1126
+ :StopSoundMulti,
1127
+ :GetSoundsPlaying,
1128
+ :IsSoundPlaying,
1129
+ :SetSoundVolume,
1130
+ :SetSoundPitch,
1131
+ :SetSoundPan,
1132
+ :WaveCopy,
1133
+ :WaveCrop,
1134
+ :WaveFormat,
1135
+ :LoadWaveSamples,
1136
+ :UnloadWaveSamples,
1137
+ :LoadMusicStream,
1138
+ :LoadMusicStreamFromMemory,
1139
+ :UnloadMusicStream,
1140
+ :PlayMusicStream,
1141
+ :IsMusicStreamPlaying,
1142
+ :UpdateMusicStream,
1143
+ :StopMusicStream,
1144
+ :PauseMusicStream,
1145
+ :ResumeMusicStream,
1146
+ :SeekMusicStream,
1147
+ :SetMusicVolume,
1148
+ :SetMusicPitch,
1149
+ :SetMusicPan,
1150
+ :GetMusicTimeLength,
1151
+ :GetMusicTimePlayed,
1152
+ :LoadAudioStream,
1153
+ :UnloadAudioStream,
1154
+ :UpdateAudioStream,
1155
+ :IsAudioStreamProcessed,
1156
+ :PlayAudioStream,
1157
+ :PauseAudioStream,
1158
+ :ResumeAudioStream,
1159
+ :IsAudioStreamPlaying,
1160
+ :StopAudioStream,
1161
+ :SetAudioStreamVolume,
1162
+ :SetAudioStreamPitch,
1163
+ :SetAudioStreamPan,
1164
+ :SetAudioStreamBufferSizeDefault,
1165
+ :SetAudioStreamCallback,
1166
+ :AttachAudioStreamProcessor,
1167
+ :DetachAudioStreamProcessor,
1168
+ ]
1169
+ args = {
1170
+ :InitWindow => [:int, :int, :pointer],
1171
+ :WindowShouldClose => [],
1172
+ :CloseWindow => [],
1173
+ :IsWindowReady => [],
1174
+ :IsWindowFullscreen => [],
1175
+ :IsWindowHidden => [],
1176
+ :IsWindowMinimized => [],
1177
+ :IsWindowMaximized => [],
1178
+ :IsWindowFocused => [],
1179
+ :IsWindowResized => [],
1180
+ :IsWindowState => [:uint],
1181
+ :SetWindowState => [:uint],
1182
+ :ClearWindowState => [:uint],
1183
+ :ToggleFullscreen => [],
1184
+ :MaximizeWindow => [],
1185
+ :MinimizeWindow => [],
1186
+ :RestoreWindow => [],
1187
+ :SetWindowIcon => [Image.by_value],
1188
+ :SetWindowTitle => [:pointer],
1189
+ :SetWindowPosition => [:int, :int],
1190
+ :SetWindowMonitor => [:int],
1191
+ :SetWindowMinSize => [:int, :int],
1192
+ :SetWindowSize => [:int, :int],
1193
+ :SetWindowOpacity => [:float],
1194
+ :GetWindowHandle => [],
1195
+ :GetScreenWidth => [],
1196
+ :GetScreenHeight => [],
1197
+ :GetRenderWidth => [],
1198
+ :GetRenderHeight => [],
1199
+ :GetMonitorCount => [],
1200
+ :GetCurrentMonitor => [],
1201
+ :GetMonitorPosition => [:int],
1202
+ :GetMonitorWidth => [:int],
1203
+ :GetMonitorHeight => [:int],
1204
+ :GetMonitorPhysicalWidth => [:int],
1205
+ :GetMonitorPhysicalHeight => [:int],
1206
+ :GetMonitorRefreshRate => [:int],
1207
+ :GetWindowPosition => [],
1208
+ :GetWindowScaleDPI => [],
1209
+ :GetMonitorName => [:int],
1210
+ :SetClipboardText => [:pointer],
1211
+ :GetClipboardText => [],
1212
+ :SwapScreenBuffer => [],
1213
+ :PollInputEvents => [],
1214
+ :WaitTime => [:float],
1215
+ :ShowCursor => [],
1216
+ :HideCursor => [],
1217
+ :IsCursorHidden => [],
1218
+ :EnableCursor => [],
1219
+ :DisableCursor => [],
1220
+ :IsCursorOnScreen => [],
1221
+ :ClearBackground => [Color.by_value],
1222
+ :BeginDrawing => [],
1223
+ :EndDrawing => [],
1224
+ :BeginMode2D => [Camera2D.by_value],
1225
+ :EndMode2D => [],
1226
+ :BeginMode3D => [Camera3D.by_value],
1227
+ :EndMode3D => [],
1228
+ :BeginTextureMode => [RenderTexture2D.by_value],
1229
+ :EndTextureMode => [],
1230
+ :BeginShaderMode => [Shader.by_value],
1231
+ :EndShaderMode => [],
1232
+ :BeginBlendMode => [:int],
1233
+ :EndBlendMode => [],
1234
+ :BeginScissorMode => [:int, :int, :int, :int],
1235
+ :EndScissorMode => [],
1236
+ :BeginVrStereoMode => [VrStereoConfig.by_value],
1237
+ :EndVrStereoMode => [],
1238
+ :LoadVrStereoConfig => [VrDeviceInfo.by_value],
1239
+ :UnloadVrStereoConfig => [VrStereoConfig.by_value],
1240
+ :LoadShader => [:pointer, :pointer],
1241
+ :LoadShaderFromMemory => [:pointer, :pointer],
1242
+ :GetShaderLocation => [Shader.by_value, :pointer],
1243
+ :GetShaderLocationAttrib => [Shader.by_value, :pointer],
1244
+ :SetShaderValue => [Shader.by_value, :int, :pointer, :int],
1245
+ :SetShaderValueV => [Shader.by_value, :int, :pointer, :int, :int],
1246
+ :SetShaderValueMatrix => [Shader.by_value, :int, Matrix.by_value],
1247
+ :SetShaderValueTexture => [Shader.by_value, :int, Texture2D.by_value],
1248
+ :UnloadShader => [Shader.by_value],
1249
+ :GetMouseRay => [Vector2.by_value, Camera.by_value],
1250
+ :GetCameraMatrix => [Camera.by_value],
1251
+ :GetCameraMatrix2D => [Camera2D.by_value],
1252
+ :GetWorldToScreen => [Vector3.by_value, Camera.by_value],
1253
+ :GetWorldToScreenEx => [Vector3.by_value, Camera.by_value, :int, :int],
1254
+ :GetWorldToScreen2D => [Vector2.by_value, Camera2D.by_value],
1255
+ :GetScreenToWorld2D => [Vector2.by_value, Camera2D.by_value],
1256
+ :SetTargetFPS => [:int],
1257
+ :GetFPS => [],
1258
+ :GetFrameTime => [],
1259
+ :GetTime => [],
1260
+ :GetRandomValue => [:int, :int],
1261
+ :SetRandomSeed => [:uint],
1262
+ :TakeScreenshot => [:pointer],
1263
+ :SetConfigFlags => [:uint],
1264
+ :TraceLog => [:int, :pointer, :varargs],
1265
+ :SetTraceLogLevel => [:int],
1266
+ :MemAlloc => [:int],
1267
+ :MemRealloc => [:pointer, :int],
1268
+ :MemFree => [:pointer],
1269
+ :SetTraceLogCallback => [:TraceLogCallback],
1270
+ :SetLoadFileDataCallback => [:LoadFileDataCallback],
1271
+ :SetSaveFileDataCallback => [:SaveFileDataCallback],
1272
+ :SetLoadFileTextCallback => [:LoadFileTextCallback],
1273
+ :SetSaveFileTextCallback => [:SaveFileTextCallback],
1274
+ :LoadFileData => [:pointer, :pointer],
1275
+ :UnloadFileData => [:pointer],
1276
+ :SaveFileData => [:pointer, :pointer, :uint],
1277
+ :LoadFileText => [:pointer],
1278
+ :UnloadFileText => [:pointer],
1279
+ :SaveFileText => [:pointer, :pointer],
1280
+ :FileExists => [:pointer],
1281
+ :DirectoryExists => [:pointer],
1282
+ :IsFileExtension => [:pointer, :pointer],
1283
+ :GetFileLength => [:pointer],
1284
+ :GetFileExtension => [:pointer],
1285
+ :GetFileName => [:pointer],
1286
+ :GetFileNameWithoutExt => [:pointer],
1287
+ :GetDirectoryPath => [:pointer],
1288
+ :GetPrevDirectoryPath => [:pointer],
1289
+ :GetWorkingDirectory => [],
1290
+ :GetApplicationDirectory => [],
1291
+ :GetDirectoryFiles => [:pointer, :pointer],
1292
+ :ClearDirectoryFiles => [],
1293
+ :ChangeDirectory => [:pointer],
1294
+ :IsFileDropped => [],
1295
+ :GetDroppedFiles => [:pointer],
1296
+ :ClearDroppedFiles => [],
1297
+ :GetFileModTime => [:pointer],
1298
+ :CompressData => [:pointer, :int, :pointer],
1299
+ :DecompressData => [:pointer, :int, :pointer],
1300
+ :EncodeDataBase64 => [:pointer, :int, :pointer],
1301
+ :DecodeDataBase64 => [:pointer, :pointer],
1302
+ :SaveStorageValue => [:uint, :int],
1303
+ :LoadStorageValue => [:uint],
1304
+ :OpenURL => [:pointer],
1305
+ :IsKeyPressed => [:int],
1306
+ :IsKeyDown => [:int],
1307
+ :IsKeyReleased => [:int],
1308
+ :IsKeyUp => [:int],
1309
+ :SetExitKey => [:int],
1310
+ :GetKeyPressed => [],
1311
+ :GetCharPressed => [],
1312
+ :IsGamepadAvailable => [:int],
1313
+ :GetGamepadName => [:int],
1314
+ :IsGamepadButtonPressed => [:int, :int],
1315
+ :IsGamepadButtonDown => [:int, :int],
1316
+ :IsGamepadButtonReleased => [:int, :int],
1317
+ :IsGamepadButtonUp => [:int, :int],
1318
+ :GetGamepadButtonPressed => [],
1319
+ :GetGamepadAxisCount => [:int],
1320
+ :GetGamepadAxisMovement => [:int, :int],
1321
+ :SetGamepadMappings => [:pointer],
1322
+ :IsMouseButtonPressed => [:int],
1323
+ :IsMouseButtonDown => [:int],
1324
+ :IsMouseButtonReleased => [:int],
1325
+ :IsMouseButtonUp => [:int],
1326
+ :GetMouseX => [],
1327
+ :GetMouseY => [],
1328
+ :GetMousePosition => [],
1329
+ :GetMouseDelta => [],
1330
+ :SetMousePosition => [:int, :int],
1331
+ :SetMouseOffset => [:int, :int],
1332
+ :SetMouseScale => [:float, :float],
1333
+ :GetMouseWheelMove => [],
1334
+ :SetMouseCursor => [:int],
1335
+ :GetTouchX => [],
1336
+ :GetTouchY => [],
1337
+ :GetTouchPosition => [:int],
1338
+ :GetTouchPointId => [:int],
1339
+ :GetTouchPointCount => [],
1340
+ :SetGesturesEnabled => [:uint],
1341
+ :IsGestureDetected => [:int],
1342
+ :GetGestureDetected => [],
1343
+ :GetGestureHoldDuration => [],
1344
+ :GetGestureDragVector => [],
1345
+ :GetGestureDragAngle => [],
1346
+ :GetGesturePinchVector => [],
1347
+ :GetGesturePinchAngle => [],
1348
+ :SetCameraMode => [Camera.by_value, :int],
1349
+ :UpdateCamera => [:pointer],
1350
+ :SetCameraPanControl => [:int],
1351
+ :SetCameraAltControl => [:int],
1352
+ :SetCameraSmoothZoomControl => [:int],
1353
+ :SetCameraMoveControls => [:int, :int, :int, :int, :int, :int],
1354
+ :SetShapesTexture => [Texture2D.by_value, Rectangle.by_value],
1355
+ :DrawPixel => [:int, :int, Color.by_value],
1356
+ :DrawPixelV => [Vector2.by_value, Color.by_value],
1357
+ :DrawLine => [:int, :int, :int, :int, Color.by_value],
1358
+ :DrawLineV => [Vector2.by_value, Vector2.by_value, Color.by_value],
1359
+ :DrawLineEx => [Vector2.by_value, Vector2.by_value, :float, Color.by_value],
1360
+ :DrawLineBezier => [Vector2.by_value, Vector2.by_value, :float, Color.by_value],
1361
+ :DrawLineBezierQuad => [Vector2.by_value, Vector2.by_value, Vector2.by_value, :float, Color.by_value],
1362
+ :DrawLineBezierCubic => [Vector2.by_value, Vector2.by_value, Vector2.by_value, Vector2.by_value, :float, Color.by_value],
1363
+ :DrawLineStrip => [:pointer, :int, Color.by_value],
1364
+ :DrawCircle => [:int, :int, :float, Color.by_value],
1365
+ :DrawCircleSector => [Vector2.by_value, :float, :float, :float, :int, Color.by_value],
1366
+ :DrawCircleSectorLines => [Vector2.by_value, :float, :float, :float, :int, Color.by_value],
1367
+ :DrawCircleGradient => [:int, :int, :float, Color.by_value, Color.by_value],
1368
+ :DrawCircleV => [Vector2.by_value, :float, Color.by_value],
1369
+ :DrawCircleLines => [:int, :int, :float, Color.by_value],
1370
+ :DrawEllipse => [:int, :int, :float, :float, Color.by_value],
1371
+ :DrawEllipseLines => [:int, :int, :float, :float, Color.by_value],
1372
+ :DrawRing => [Vector2.by_value, :float, :float, :float, :float, :int, Color.by_value],
1373
+ :DrawRingLines => [Vector2.by_value, :float, :float, :float, :float, :int, Color.by_value],
1374
+ :DrawRectangle => [:int, :int, :int, :int, Color.by_value],
1375
+ :DrawRectangleV => [Vector2.by_value, Vector2.by_value, Color.by_value],
1376
+ :DrawRectangleRec => [Rectangle.by_value, Color.by_value],
1377
+ :DrawRectanglePro => [Rectangle.by_value, Vector2.by_value, :float, Color.by_value],
1378
+ :DrawRectangleGradientV => [:int, :int, :int, :int, Color.by_value, Color.by_value],
1379
+ :DrawRectangleGradientH => [:int, :int, :int, :int, Color.by_value, Color.by_value],
1380
+ :DrawRectangleGradientEx => [Rectangle.by_value, Color.by_value, Color.by_value, Color.by_value, Color.by_value],
1381
+ :DrawRectangleLines => [:int, :int, :int, :int, Color.by_value],
1382
+ :DrawRectangleLinesEx => [Rectangle.by_value, :float, Color.by_value],
1383
+ :DrawRectangleRounded => [Rectangle.by_value, :float, :int, Color.by_value],
1384
+ :DrawRectangleRoundedLines => [Rectangle.by_value, :float, :int, :float, Color.by_value],
1385
+ :DrawTriangle => [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value],
1386
+ :DrawTriangleLines => [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value],
1387
+ :DrawTriangleFan => [:pointer, :int, Color.by_value],
1388
+ :DrawTriangleStrip => [:pointer, :int, Color.by_value],
1389
+ :DrawPoly => [Vector2.by_value, :int, :float, :float, Color.by_value],
1390
+ :DrawPolyLines => [Vector2.by_value, :int, :float, :float, Color.by_value],
1391
+ :DrawPolyLinesEx => [Vector2.by_value, :int, :float, :float, :float, Color.by_value],
1392
+ :CheckCollisionRecs => [Rectangle.by_value, Rectangle.by_value],
1393
+ :CheckCollisionCircles => [Vector2.by_value, :float, Vector2.by_value, :float],
1394
+ :CheckCollisionCircleRec => [Vector2.by_value, :float, Rectangle.by_value],
1395
+ :CheckCollisionPointRec => [Vector2.by_value, Rectangle.by_value],
1396
+ :CheckCollisionPointCircle => [Vector2.by_value, Vector2.by_value, :float],
1397
+ :CheckCollisionPointTriangle => [Vector2.by_value, Vector2.by_value, Vector2.by_value, Vector2.by_value],
1398
+ :CheckCollisionLines => [Vector2.by_value, Vector2.by_value, Vector2.by_value, Vector2.by_value, :pointer],
1399
+ :CheckCollisionPointLine => [Vector2.by_value, Vector2.by_value, Vector2.by_value, :int],
1400
+ :GetCollisionRec => [Rectangle.by_value, Rectangle.by_value],
1401
+ :LoadImage => [:pointer],
1402
+ :LoadImageRaw => [:pointer, :int, :int, :int, :int],
1403
+ :LoadImageAnim => [:pointer, :pointer],
1404
+ :LoadImageFromMemory => [:pointer, :pointer, :int],
1405
+ :LoadImageFromTexture => [Texture2D.by_value],
1406
+ :LoadImageFromScreen => [],
1407
+ :UnloadImage => [Image.by_value],
1408
+ :ExportImage => [Image.by_value, :pointer],
1409
+ :ExportImageAsCode => [Image.by_value, :pointer],
1410
+ :GenImageColor => [:int, :int, Color.by_value],
1411
+ :GenImageGradientV => [:int, :int, Color.by_value, Color.by_value],
1412
+ :GenImageGradientH => [:int, :int, Color.by_value, Color.by_value],
1413
+ :GenImageGradientRadial => [:int, :int, :float, Color.by_value, Color.by_value],
1414
+ :GenImageChecked => [:int, :int, :int, :int, Color.by_value, Color.by_value],
1415
+ :GenImageWhiteNoise => [:int, :int, :float],
1416
+ :GenImageCellular => [:int, :int, :int],
1417
+ :ImageCopy => [Image.by_value],
1418
+ :ImageFromImage => [Image.by_value, Rectangle.by_value],
1419
+ :ImageText => [:pointer, :int, Color.by_value],
1420
+ :ImageTextEx => [Font.by_value, :pointer, :float, :float, Color.by_value],
1421
+ :ImageFormat => [:pointer, :int],
1422
+ :ImageToPOT => [:pointer, Color.by_value],
1423
+ :ImageCrop => [:pointer, Rectangle.by_value],
1424
+ :ImageAlphaCrop => [:pointer, :float],
1425
+ :ImageAlphaClear => [:pointer, Color.by_value, :float],
1426
+ :ImageAlphaMask => [:pointer, Image.by_value],
1427
+ :ImageAlphaPremultiply => [:pointer],
1428
+ :ImageResize => [:pointer, :int, :int],
1429
+ :ImageResizeNN => [:pointer, :int, :int],
1430
+ :ImageResizeCanvas => [:pointer, :int, :int, :int, :int, Color.by_value],
1431
+ :ImageMipmaps => [:pointer],
1432
+ :ImageDither => [:pointer, :int, :int, :int, :int],
1433
+ :ImageFlipVertical => [:pointer],
1434
+ :ImageFlipHorizontal => [:pointer],
1435
+ :ImageRotateCW => [:pointer],
1436
+ :ImageRotateCCW => [:pointer],
1437
+ :ImageColorTint => [:pointer, Color.by_value],
1438
+ :ImageColorInvert => [:pointer],
1439
+ :ImageColorGrayscale => [:pointer],
1440
+ :ImageColorContrast => [:pointer, :float],
1441
+ :ImageColorBrightness => [:pointer, :int],
1442
+ :ImageColorReplace => [:pointer, Color.by_value, Color.by_value],
1443
+ :LoadImageColors => [Image.by_value],
1444
+ :LoadImagePalette => [Image.by_value, :int, :pointer],
1445
+ :UnloadImageColors => [:pointer],
1446
+ :UnloadImagePalette => [:pointer],
1447
+ :GetImageAlphaBorder => [Image.by_value, :float],
1448
+ :GetImageColor => [Image.by_value, :int, :int],
1449
+ :ImageClearBackground => [:pointer, Color.by_value],
1450
+ :ImageDrawPixel => [:pointer, :int, :int, Color.by_value],
1451
+ :ImageDrawPixelV => [:pointer, Vector2.by_value, Color.by_value],
1452
+ :ImageDrawLine => [:pointer, :int, :int, :int, :int, Color.by_value],
1453
+ :ImageDrawLineV => [:pointer, Vector2.by_value, Vector2.by_value, Color.by_value],
1454
+ :ImageDrawCircle => [:pointer, :int, :int, :int, Color.by_value],
1455
+ :ImageDrawCircleV => [:pointer, Vector2.by_value, :int, Color.by_value],
1456
+ :ImageDrawRectangle => [:pointer, :int, :int, :int, :int, Color.by_value],
1457
+ :ImageDrawRectangleV => [:pointer, Vector2.by_value, Vector2.by_value, Color.by_value],
1458
+ :ImageDrawRectangleRec => [:pointer, Rectangle.by_value, Color.by_value],
1459
+ :ImageDrawRectangleLines => [:pointer, Rectangle.by_value, :int, Color.by_value],
1460
+ :ImageDraw => [:pointer, Image.by_value, Rectangle.by_value, Rectangle.by_value, Color.by_value],
1461
+ :ImageDrawText => [:pointer, :pointer, :int, :int, :int, Color.by_value],
1462
+ :ImageDrawTextEx => [:pointer, Font.by_value, :pointer, Vector2.by_value, :float, :float, Color.by_value],
1463
+ :LoadTexture => [:pointer],
1464
+ :LoadTextureFromImage => [Image.by_value],
1465
+ :LoadTextureCubemap => [Image.by_value, :int],
1466
+ :LoadRenderTexture => [:int, :int],
1467
+ :UnloadTexture => [Texture2D.by_value],
1468
+ :UnloadRenderTexture => [RenderTexture2D.by_value],
1469
+ :UpdateTexture => [Texture2D.by_value, :pointer],
1470
+ :UpdateTextureRec => [Texture2D.by_value, Rectangle.by_value, :pointer],
1471
+ :GenTextureMipmaps => [:pointer],
1472
+ :SetTextureFilter => [Texture2D.by_value, :int],
1473
+ :SetTextureWrap => [Texture2D.by_value, :int],
1474
+ :DrawTexture => [Texture2D.by_value, :int, :int, Color.by_value],
1475
+ :DrawTextureV => [Texture2D.by_value, Vector2.by_value, Color.by_value],
1476
+ :DrawTextureEx => [Texture2D.by_value, Vector2.by_value, :float, :float, Color.by_value],
1477
+ :DrawTextureRec => [Texture2D.by_value, Rectangle.by_value, Vector2.by_value, Color.by_value],
1478
+ :DrawTextureQuad => [Texture2D.by_value, Vector2.by_value, Vector2.by_value, Rectangle.by_value, Color.by_value],
1479
+ :DrawTextureTiled => [Texture2D.by_value, Rectangle.by_value, Rectangle.by_value, Vector2.by_value, :float, :float, Color.by_value],
1480
+ :DrawTexturePro => [Texture2D.by_value, Rectangle.by_value, Rectangle.by_value, Vector2.by_value, :float, Color.by_value],
1481
+ :DrawTextureNPatch => [Texture2D.by_value, NPatchInfo.by_value, Rectangle.by_value, Vector2.by_value, :float, Color.by_value],
1482
+ :DrawTexturePoly => [Texture2D.by_value, Vector2.by_value, :pointer, :pointer, :int, Color.by_value],
1483
+ :Fade => [Color.by_value, :float],
1484
+ :ColorToInt => [Color.by_value],
1485
+ :ColorNormalize => [Color.by_value],
1486
+ :ColorFromNormalized => [Vector4.by_value],
1487
+ :ColorToHSV => [Color.by_value],
1488
+ :ColorFromHSV => [:float, :float, :float],
1489
+ :ColorAlpha => [Color.by_value, :float],
1490
+ :ColorAlphaBlend => [Color.by_value, Color.by_value, Color.by_value],
1491
+ :GetColor => [:uint],
1492
+ :GetPixelColor => [:pointer, :int],
1493
+ :SetPixelColor => [:pointer, Color.by_value, :int],
1494
+ :GetPixelDataSize => [:int, :int, :int],
1495
+ :GetFontDefault => [],
1496
+ :LoadFont => [:pointer],
1497
+ :LoadFontEx => [:pointer, :int, :pointer, :int],
1498
+ :LoadFontFromImage => [Image.by_value, Color.by_value, :int],
1499
+ :LoadFontFromMemory => [:pointer, :pointer, :int, :int, :pointer, :int],
1500
+ :LoadFontData => [:pointer, :int, :int, :pointer, :int, :int],
1501
+ :GenImageFontAtlas => [:pointer, :pointer, :int, :int, :int, :int],
1502
+ :UnloadFontData => [:pointer, :int],
1503
+ :UnloadFont => [Font.by_value],
1504
+ :ExportFontAsCode => [Font.by_value, :pointer],
1505
+ :DrawFPS => [:int, :int],
1506
+ :DrawText => [:pointer, :int, :int, :int, Color.by_value],
1507
+ :DrawTextEx => [Font.by_value, :pointer, Vector2.by_value, :float, :float, Color.by_value],
1508
+ :DrawTextPro => [Font.by_value, :pointer, Vector2.by_value, Vector2.by_value, :float, :float, :float, Color.by_value],
1509
+ :DrawTextCodepoint => [Font.by_value, :int, Vector2.by_value, :float, Color.by_value],
1510
+ :DrawTextCodepoints => [Font.by_value, :pointer, :int, Vector2.by_value, :float, :float, Color.by_value],
1511
+ :MeasureText => [:pointer, :int],
1512
+ :MeasureTextEx => [Font.by_value, :pointer, :float, :float],
1513
+ :GetGlyphIndex => [Font.by_value, :int],
1514
+ :GetGlyphInfo => [Font.by_value, :int],
1515
+ :GetGlyphAtlasRec => [Font.by_value, :int],
1516
+ :LoadCodepoints => [:pointer, :pointer],
1517
+ :UnloadCodepoints => [:pointer],
1518
+ :GetCodepointCount => [:pointer],
1519
+ :GetCodepoint => [:pointer, :pointer],
1520
+ :CodepointToUTF8 => [:int, :pointer],
1521
+ :TextCodepointsToUTF8 => [:pointer, :int],
1522
+ :TextCopy => [:pointer, :pointer],
1523
+ :TextIsEqual => [:pointer, :pointer],
1524
+ :TextLength => [:pointer],
1525
+ :TextFormat => [:pointer, :varargs],
1526
+ :TextSubtext => [:pointer, :int, :int],
1527
+ :TextReplace => [:pointer, :pointer, :pointer],
1528
+ :TextInsert => [:pointer, :pointer, :int],
1529
+ :TextJoin => [:pointer, :int, :pointer],
1530
+ :TextSplit => [:pointer, :char, :pointer],
1531
+ :TextAppend => [:pointer, :pointer, :pointer],
1532
+ :TextFindIndex => [:pointer, :pointer],
1533
+ :TextToUpper => [:pointer],
1534
+ :TextToLower => [:pointer],
1535
+ :TextToPascal => [:pointer],
1536
+ :TextToInteger => [:pointer],
1537
+ :DrawLine3D => [Vector3.by_value, Vector3.by_value, Color.by_value],
1538
+ :DrawPoint3D => [Vector3.by_value, Color.by_value],
1539
+ :DrawCircle3D => [Vector3.by_value, :float, Vector3.by_value, :float, Color.by_value],
1540
+ :DrawTriangle3D => [Vector3.by_value, Vector3.by_value, Vector3.by_value, Color.by_value],
1541
+ :DrawTriangleStrip3D => [:pointer, :int, Color.by_value],
1542
+ :DrawCube => [Vector3.by_value, :float, :float, :float, Color.by_value],
1543
+ :DrawCubeV => [Vector3.by_value, Vector3.by_value, Color.by_value],
1544
+ :DrawCubeWires => [Vector3.by_value, :float, :float, :float, Color.by_value],
1545
+ :DrawCubeWiresV => [Vector3.by_value, Vector3.by_value, Color.by_value],
1546
+ :DrawCubeTexture => [Texture2D.by_value, Vector3.by_value, :float, :float, :float, Color.by_value],
1547
+ :DrawCubeTextureRec => [Texture2D.by_value, Rectangle.by_value, Vector3.by_value, :float, :float, :float, Color.by_value],
1548
+ :DrawSphere => [Vector3.by_value, :float, Color.by_value],
1549
+ :DrawSphereEx => [Vector3.by_value, :float, :int, :int, Color.by_value],
1550
+ :DrawSphereWires => [Vector3.by_value, :float, :int, :int, Color.by_value],
1551
+ :DrawCylinder => [Vector3.by_value, :float, :float, :float, :int, Color.by_value],
1552
+ :DrawCylinderEx => [Vector3.by_value, Vector3.by_value, :float, :float, :int, Color.by_value],
1553
+ :DrawCylinderWires => [Vector3.by_value, :float, :float, :float, :int, Color.by_value],
1554
+ :DrawCylinderWiresEx => [Vector3.by_value, Vector3.by_value, :float, :float, :int, Color.by_value],
1555
+ :DrawPlane => [Vector3.by_value, Vector2.by_value, Color.by_value],
1556
+ :DrawRay => [Ray.by_value, Color.by_value],
1557
+ :DrawGrid => [:int, :float],
1558
+ :LoadModel => [:pointer],
1559
+ :LoadModelFromMesh => [Mesh.by_value],
1560
+ :UnloadModel => [Model.by_value],
1561
+ :UnloadModelKeepMeshes => [Model.by_value],
1562
+ :GetModelBoundingBox => [Model.by_value],
1563
+ :DrawModel => [Model.by_value, Vector3.by_value, :float, Color.by_value],
1564
+ :DrawModelEx => [Model.by_value, Vector3.by_value, Vector3.by_value, :float, Vector3.by_value, Color.by_value],
1565
+ :DrawModelWires => [Model.by_value, Vector3.by_value, :float, Color.by_value],
1566
+ :DrawModelWiresEx => [Model.by_value, Vector3.by_value, Vector3.by_value, :float, Vector3.by_value, Color.by_value],
1567
+ :DrawBoundingBox => [BoundingBox.by_value, Color.by_value],
1568
+ :DrawBillboard => [Camera.by_value, Texture2D.by_value, Vector3.by_value, :float, Color.by_value],
1569
+ :DrawBillboardRec => [Camera.by_value, Texture2D.by_value, Rectangle.by_value, Vector3.by_value, Vector2.by_value, Color.by_value],
1570
+ :DrawBillboardPro => [Camera.by_value, Texture2D.by_value, Rectangle.by_value, Vector3.by_value, Vector3.by_value, Vector2.by_value, Vector2.by_value, :float, Color.by_value],
1571
+ :UploadMesh => [:pointer, :bool],
1572
+ :UpdateMeshBuffer => [Mesh.by_value, :int, :pointer, :int, :int],
1573
+ :UnloadMesh => [Mesh.by_value],
1574
+ :DrawMesh => [Mesh.by_value, Material.by_value, Matrix.by_value],
1575
+ :DrawMeshInstanced => [Mesh.by_value, Material.by_value, :pointer, :int],
1576
+ :ExportMesh => [Mesh.by_value, :pointer],
1577
+ :GetMeshBoundingBox => [Mesh.by_value],
1578
+ :GenMeshTangents => [:pointer],
1579
+ :GenMeshBinormals => [:pointer],
1580
+ :GenMeshPoly => [:int, :float],
1581
+ :GenMeshPlane => [:float, :float, :int, :int],
1582
+ :GenMeshCube => [:float, :float, :float],
1583
+ :GenMeshSphere => [:float, :int, :int],
1584
+ :GenMeshHemiSphere => [:float, :int, :int],
1585
+ :GenMeshCylinder => [:float, :float, :int],
1586
+ :GenMeshCone => [:float, :float, :int],
1587
+ :GenMeshTorus => [:float, :float, :int, :int],
1588
+ :GenMeshKnot => [:float, :float, :int, :int],
1589
+ :GenMeshHeightmap => [Image.by_value, Vector3.by_value],
1590
+ :GenMeshCubicmap => [Image.by_value, Vector3.by_value],
1591
+ :LoadMaterials => [:pointer, :pointer],
1592
+ :LoadMaterialDefault => [],
1593
+ :UnloadMaterial => [Material.by_value],
1594
+ :SetMaterialTexture => [:pointer, :int, Texture2D.by_value],
1595
+ :SetModelMeshMaterial => [:pointer, :int, :int],
1596
+ :LoadModelAnimations => [:pointer, :pointer],
1597
+ :UpdateModelAnimation => [Model.by_value, ModelAnimation.by_value, :int],
1598
+ :UnloadModelAnimation => [ModelAnimation.by_value],
1599
+ :UnloadModelAnimations => [:pointer, :uint],
1600
+ :IsModelAnimationValid => [Model.by_value, ModelAnimation.by_value],
1601
+ :CheckCollisionSpheres => [Vector3.by_value, :float, Vector3.by_value, :float],
1602
+ :CheckCollisionBoxes => [BoundingBox.by_value, BoundingBox.by_value],
1603
+ :CheckCollisionBoxSphere => [BoundingBox.by_value, Vector3.by_value, :float],
1604
+ :GetRayCollisionSphere => [Ray.by_value, Vector3.by_value, :float],
1605
+ :GetRayCollisionBox => [Ray.by_value, BoundingBox.by_value],
1606
+ :GetRayCollisionMesh => [Ray.by_value, Mesh.by_value, Matrix.by_value],
1607
+ :GetRayCollisionTriangle => [Ray.by_value, Vector3.by_value, Vector3.by_value, Vector3.by_value],
1608
+ :GetRayCollisionQuad => [Ray.by_value, Vector3.by_value, Vector3.by_value, Vector3.by_value, Vector3.by_value],
1609
+ :InitAudioDevice => [],
1610
+ :CloseAudioDevice => [],
1611
+ :IsAudioDeviceReady => [],
1612
+ :SetMasterVolume => [:float],
1613
+ :LoadWave => [:pointer],
1614
+ :LoadWaveFromMemory => [:pointer, :pointer, :int],
1615
+ :LoadSound => [:pointer],
1616
+ :LoadSoundFromWave => [Wave.by_value],
1617
+ :UpdateSound => [Sound.by_value, :pointer, :int],
1618
+ :UnloadWave => [Wave.by_value],
1619
+ :UnloadSound => [Sound.by_value],
1620
+ :ExportWave => [Wave.by_value, :pointer],
1621
+ :ExportWaveAsCode => [Wave.by_value, :pointer],
1622
+ :PlaySound => [Sound.by_value],
1623
+ :StopSound => [Sound.by_value],
1624
+ :PauseSound => [Sound.by_value],
1625
+ :ResumeSound => [Sound.by_value],
1626
+ :PlaySoundMulti => [Sound.by_value],
1627
+ :StopSoundMulti => [],
1628
+ :GetSoundsPlaying => [],
1629
+ :IsSoundPlaying => [Sound.by_value],
1630
+ :SetSoundVolume => [Sound.by_value, :float],
1631
+ :SetSoundPitch => [Sound.by_value, :float],
1632
+ :SetSoundPan => [Sound.by_value, :float],
1633
+ :WaveCopy => [Wave.by_value],
1634
+ :WaveCrop => [:pointer, :int, :int],
1635
+ :WaveFormat => [:pointer, :int, :int, :int],
1636
+ :LoadWaveSamples => [Wave.by_value],
1637
+ :UnloadWaveSamples => [:pointer],
1638
+ :LoadMusicStream => [:pointer],
1639
+ :LoadMusicStreamFromMemory => [:pointer, :pointer, :int],
1640
+ :UnloadMusicStream => [Music.by_value],
1641
+ :PlayMusicStream => [Music.by_value],
1642
+ :IsMusicStreamPlaying => [Music.by_value],
1643
+ :UpdateMusicStream => [Music.by_value],
1644
+ :StopMusicStream => [Music.by_value],
1645
+ :PauseMusicStream => [Music.by_value],
1646
+ :ResumeMusicStream => [Music.by_value],
1647
+ :SeekMusicStream => [Music.by_value, :float],
1648
+ :SetMusicVolume => [Music.by_value, :float],
1649
+ :SetMusicPitch => [Music.by_value, :float],
1650
+ :SetMusicPan => [Music.by_value, :float],
1651
+ :GetMusicTimeLength => [Music.by_value],
1652
+ :GetMusicTimePlayed => [Music.by_value],
1653
+ :LoadAudioStream => [:uint, :uint, :uint],
1654
+ :UnloadAudioStream => [AudioStream.by_value],
1655
+ :UpdateAudioStream => [AudioStream.by_value, :pointer, :int],
1656
+ :IsAudioStreamProcessed => [AudioStream.by_value],
1657
+ :PlayAudioStream => [AudioStream.by_value],
1658
+ :PauseAudioStream => [AudioStream.by_value],
1659
+ :ResumeAudioStream => [AudioStream.by_value],
1660
+ :IsAudioStreamPlaying => [AudioStream.by_value],
1661
+ :StopAudioStream => [AudioStream.by_value],
1662
+ :SetAudioStreamVolume => [AudioStream.by_value, :float],
1663
+ :SetAudioStreamPitch => [AudioStream.by_value, :float],
1664
+ :SetAudioStreamPan => [AudioStream.by_value, :float],
1665
+ :SetAudioStreamBufferSizeDefault => [:int],
1666
+ :SetAudioStreamCallback => [AudioStream.by_value, :AudioCallback],
1667
+ :AttachAudioStreamProcessor => [AudioStream.by_value, :AudioCallback],
1668
+ :DetachAudioStreamProcessor => [AudioStream.by_value, :AudioCallback],
1669
+ }
1670
+ retvals = {
1671
+ :InitWindow => :void,
1672
+ :WindowShouldClose => :bool,
1673
+ :CloseWindow => :void,
1674
+ :IsWindowReady => :bool,
1675
+ :IsWindowFullscreen => :bool,
1676
+ :IsWindowHidden => :bool,
1677
+ :IsWindowMinimized => :bool,
1678
+ :IsWindowMaximized => :bool,
1679
+ :IsWindowFocused => :bool,
1680
+ :IsWindowResized => :bool,
1681
+ :IsWindowState => :bool,
1682
+ :SetWindowState => :void,
1683
+ :ClearWindowState => :void,
1684
+ :ToggleFullscreen => :void,
1685
+ :MaximizeWindow => :void,
1686
+ :MinimizeWindow => :void,
1687
+ :RestoreWindow => :void,
1688
+ :SetWindowIcon => :void,
1689
+ :SetWindowTitle => :void,
1690
+ :SetWindowPosition => :void,
1691
+ :SetWindowMonitor => :void,
1692
+ :SetWindowMinSize => :void,
1693
+ :SetWindowSize => :void,
1694
+ :SetWindowOpacity => :void,
1695
+ :GetWindowHandle => :pointer,
1696
+ :GetScreenWidth => :int,
1697
+ :GetScreenHeight => :int,
1698
+ :GetRenderWidth => :int,
1699
+ :GetRenderHeight => :int,
1700
+ :GetMonitorCount => :int,
1701
+ :GetCurrentMonitor => :int,
1702
+ :GetMonitorPosition => Vector2.by_value,
1703
+ :GetMonitorWidth => :int,
1704
+ :GetMonitorHeight => :int,
1705
+ :GetMonitorPhysicalWidth => :int,
1706
+ :GetMonitorPhysicalHeight => :int,
1707
+ :GetMonitorRefreshRate => :int,
1708
+ :GetWindowPosition => Vector2.by_value,
1709
+ :GetWindowScaleDPI => Vector2.by_value,
1710
+ :GetMonitorName => :pointer,
1711
+ :SetClipboardText => :void,
1712
+ :GetClipboardText => :pointer,
1713
+ :SwapScreenBuffer => :void,
1714
+ :PollInputEvents => :void,
1715
+ :WaitTime => :void,
1716
+ :ShowCursor => :void,
1717
+ :HideCursor => :void,
1718
+ :IsCursorHidden => :bool,
1719
+ :EnableCursor => :void,
1720
+ :DisableCursor => :void,
1721
+ :IsCursorOnScreen => :bool,
1722
+ :ClearBackground => :void,
1723
+ :BeginDrawing => :void,
1724
+ :EndDrawing => :void,
1725
+ :BeginMode2D => :void,
1726
+ :EndMode2D => :void,
1727
+ :BeginMode3D => :void,
1728
+ :EndMode3D => :void,
1729
+ :BeginTextureMode => :void,
1730
+ :EndTextureMode => :void,
1731
+ :BeginShaderMode => :void,
1732
+ :EndShaderMode => :void,
1733
+ :BeginBlendMode => :void,
1734
+ :EndBlendMode => :void,
1735
+ :BeginScissorMode => :void,
1736
+ :EndScissorMode => :void,
1737
+ :BeginVrStereoMode => :void,
1738
+ :EndVrStereoMode => :void,
1739
+ :LoadVrStereoConfig => VrStereoConfig.by_value,
1740
+ :UnloadVrStereoConfig => :void,
1741
+ :LoadShader => Shader.by_value,
1742
+ :LoadShaderFromMemory => Shader.by_value,
1743
+ :GetShaderLocation => :int,
1744
+ :GetShaderLocationAttrib => :int,
1745
+ :SetShaderValue => :void,
1746
+ :SetShaderValueV => :void,
1747
+ :SetShaderValueMatrix => :void,
1748
+ :SetShaderValueTexture => :void,
1749
+ :UnloadShader => :void,
1750
+ :GetMouseRay => Ray.by_value,
1751
+ :GetCameraMatrix => Matrix.by_value,
1752
+ :GetCameraMatrix2D => Matrix.by_value,
1753
+ :GetWorldToScreen => Vector2.by_value,
1754
+ :GetWorldToScreenEx => Vector2.by_value,
1755
+ :GetWorldToScreen2D => Vector2.by_value,
1756
+ :GetScreenToWorld2D => Vector2.by_value,
1757
+ :SetTargetFPS => :void,
1758
+ :GetFPS => :int,
1759
+ :GetFrameTime => :float,
1760
+ :GetTime => :double,
1761
+ :GetRandomValue => :int,
1762
+ :SetRandomSeed => :void,
1763
+ :TakeScreenshot => :void,
1764
+ :SetConfigFlags => :void,
1765
+ :TraceLog => :void,
1766
+ :SetTraceLogLevel => :void,
1767
+ :MemAlloc => :pointer,
1768
+ :MemRealloc => :pointer,
1769
+ :MemFree => :void,
1770
+ :SetTraceLogCallback => :void,
1771
+ :SetLoadFileDataCallback => :void,
1772
+ :SetSaveFileDataCallback => :void,
1773
+ :SetLoadFileTextCallback => :void,
1774
+ :SetSaveFileTextCallback => :void,
1775
+ :LoadFileData => :pointer,
1776
+ :UnloadFileData => :void,
1777
+ :SaveFileData => :bool,
1778
+ :LoadFileText => :pointer,
1779
+ :UnloadFileText => :void,
1780
+ :SaveFileText => :bool,
1781
+ :FileExists => :bool,
1782
+ :DirectoryExists => :bool,
1783
+ :IsFileExtension => :bool,
1784
+ :GetFileLength => :int,
1785
+ :GetFileExtension => :pointer,
1786
+ :GetFileName => :pointer,
1787
+ :GetFileNameWithoutExt => :pointer,
1788
+ :GetDirectoryPath => :pointer,
1789
+ :GetPrevDirectoryPath => :pointer,
1790
+ :GetWorkingDirectory => :pointer,
1791
+ :GetApplicationDirectory => :pointer,
1792
+ :GetDirectoryFiles => :pointer,
1793
+ :ClearDirectoryFiles => :void,
1794
+ :ChangeDirectory => :bool,
1795
+ :IsFileDropped => :bool,
1796
+ :GetDroppedFiles => :pointer,
1797
+ :ClearDroppedFiles => :void,
1798
+ :GetFileModTime => :long,
1799
+ :CompressData => :pointer,
1800
+ :DecompressData => :pointer,
1801
+ :EncodeDataBase64 => :pointer,
1802
+ :DecodeDataBase64 => :pointer,
1803
+ :SaveStorageValue => :bool,
1804
+ :LoadStorageValue => :int,
1805
+ :OpenURL => :void,
1806
+ :IsKeyPressed => :bool,
1807
+ :IsKeyDown => :bool,
1808
+ :IsKeyReleased => :bool,
1809
+ :IsKeyUp => :bool,
1810
+ :SetExitKey => :void,
1811
+ :GetKeyPressed => :int,
1812
+ :GetCharPressed => :int,
1813
+ :IsGamepadAvailable => :bool,
1814
+ :GetGamepadName => :pointer,
1815
+ :IsGamepadButtonPressed => :bool,
1816
+ :IsGamepadButtonDown => :bool,
1817
+ :IsGamepadButtonReleased => :bool,
1818
+ :IsGamepadButtonUp => :bool,
1819
+ :GetGamepadButtonPressed => :int,
1820
+ :GetGamepadAxisCount => :int,
1821
+ :GetGamepadAxisMovement => :float,
1822
+ :SetGamepadMappings => :int,
1823
+ :IsMouseButtonPressed => :bool,
1824
+ :IsMouseButtonDown => :bool,
1825
+ :IsMouseButtonReleased => :bool,
1826
+ :IsMouseButtonUp => :bool,
1827
+ :GetMouseX => :int,
1828
+ :GetMouseY => :int,
1829
+ :GetMousePosition => Vector2.by_value,
1830
+ :GetMouseDelta => Vector2.by_value,
1831
+ :SetMousePosition => :void,
1832
+ :SetMouseOffset => :void,
1833
+ :SetMouseScale => :void,
1834
+ :GetMouseWheelMove => :float,
1835
+ :SetMouseCursor => :void,
1836
+ :GetTouchX => :int,
1837
+ :GetTouchY => :int,
1838
+ :GetTouchPosition => Vector2.by_value,
1839
+ :GetTouchPointId => :int,
1840
+ :GetTouchPointCount => :int,
1841
+ :SetGesturesEnabled => :void,
1842
+ :IsGestureDetected => :bool,
1843
+ :GetGestureDetected => :int,
1844
+ :GetGestureHoldDuration => :float,
1845
+ :GetGestureDragVector => Vector2.by_value,
1846
+ :GetGestureDragAngle => :float,
1847
+ :GetGesturePinchVector => Vector2.by_value,
1848
+ :GetGesturePinchAngle => :float,
1849
+ :SetCameraMode => :void,
1850
+ :UpdateCamera => :void,
1851
+ :SetCameraPanControl => :void,
1852
+ :SetCameraAltControl => :void,
1853
+ :SetCameraSmoothZoomControl => :void,
1854
+ :SetCameraMoveControls => :void,
1855
+ :SetShapesTexture => :void,
1856
+ :DrawPixel => :void,
1857
+ :DrawPixelV => :void,
1858
+ :DrawLine => :void,
1859
+ :DrawLineV => :void,
1860
+ :DrawLineEx => :void,
1861
+ :DrawLineBezier => :void,
1862
+ :DrawLineBezierQuad => :void,
1863
+ :DrawLineBezierCubic => :void,
1864
+ :DrawLineStrip => :void,
1865
+ :DrawCircle => :void,
1866
+ :DrawCircleSector => :void,
1867
+ :DrawCircleSectorLines => :void,
1868
+ :DrawCircleGradient => :void,
1869
+ :DrawCircleV => :void,
1870
+ :DrawCircleLines => :void,
1871
+ :DrawEllipse => :void,
1872
+ :DrawEllipseLines => :void,
1873
+ :DrawRing => :void,
1874
+ :DrawRingLines => :void,
1875
+ :DrawRectangle => :void,
1876
+ :DrawRectangleV => :void,
1877
+ :DrawRectangleRec => :void,
1878
+ :DrawRectanglePro => :void,
1879
+ :DrawRectangleGradientV => :void,
1880
+ :DrawRectangleGradientH => :void,
1881
+ :DrawRectangleGradientEx => :void,
1882
+ :DrawRectangleLines => :void,
1883
+ :DrawRectangleLinesEx => :void,
1884
+ :DrawRectangleRounded => :void,
1885
+ :DrawRectangleRoundedLines => :void,
1886
+ :DrawTriangle => :void,
1887
+ :DrawTriangleLines => :void,
1888
+ :DrawTriangleFan => :void,
1889
+ :DrawTriangleStrip => :void,
1890
+ :DrawPoly => :void,
1891
+ :DrawPolyLines => :void,
1892
+ :DrawPolyLinesEx => :void,
1893
+ :CheckCollisionRecs => :bool,
1894
+ :CheckCollisionCircles => :bool,
1895
+ :CheckCollisionCircleRec => :bool,
1896
+ :CheckCollisionPointRec => :bool,
1897
+ :CheckCollisionPointCircle => :bool,
1898
+ :CheckCollisionPointTriangle => :bool,
1899
+ :CheckCollisionLines => :bool,
1900
+ :CheckCollisionPointLine => :bool,
1901
+ :GetCollisionRec => Rectangle.by_value,
1902
+ :LoadImage => Image.by_value,
1903
+ :LoadImageRaw => Image.by_value,
1904
+ :LoadImageAnim => Image.by_value,
1905
+ :LoadImageFromMemory => Image.by_value,
1906
+ :LoadImageFromTexture => Image.by_value,
1907
+ :LoadImageFromScreen => Image.by_value,
1908
+ :UnloadImage => :void,
1909
+ :ExportImage => :bool,
1910
+ :ExportImageAsCode => :bool,
1911
+ :GenImageColor => Image.by_value,
1912
+ :GenImageGradientV => Image.by_value,
1913
+ :GenImageGradientH => Image.by_value,
1914
+ :GenImageGradientRadial => Image.by_value,
1915
+ :GenImageChecked => Image.by_value,
1916
+ :GenImageWhiteNoise => Image.by_value,
1917
+ :GenImageCellular => Image.by_value,
1918
+ :ImageCopy => Image.by_value,
1919
+ :ImageFromImage => Image.by_value,
1920
+ :ImageText => Image.by_value,
1921
+ :ImageTextEx => Image.by_value,
1922
+ :ImageFormat => :void,
1923
+ :ImageToPOT => :void,
1924
+ :ImageCrop => :void,
1925
+ :ImageAlphaCrop => :void,
1926
+ :ImageAlphaClear => :void,
1927
+ :ImageAlphaMask => :void,
1928
+ :ImageAlphaPremultiply => :void,
1929
+ :ImageResize => :void,
1930
+ :ImageResizeNN => :void,
1931
+ :ImageResizeCanvas => :void,
1932
+ :ImageMipmaps => :void,
1933
+ :ImageDither => :void,
1934
+ :ImageFlipVertical => :void,
1935
+ :ImageFlipHorizontal => :void,
1936
+ :ImageRotateCW => :void,
1937
+ :ImageRotateCCW => :void,
1938
+ :ImageColorTint => :void,
1939
+ :ImageColorInvert => :void,
1940
+ :ImageColorGrayscale => :void,
1941
+ :ImageColorContrast => :void,
1942
+ :ImageColorBrightness => :void,
1943
+ :ImageColorReplace => :void,
1944
+ :LoadImageColors => :pointer,
1945
+ :LoadImagePalette => :pointer,
1946
+ :UnloadImageColors => :void,
1947
+ :UnloadImagePalette => :void,
1948
+ :GetImageAlphaBorder => Rectangle.by_value,
1949
+ :GetImageColor => Color.by_value,
1950
+ :ImageClearBackground => :void,
1951
+ :ImageDrawPixel => :void,
1952
+ :ImageDrawPixelV => :void,
1953
+ :ImageDrawLine => :void,
1954
+ :ImageDrawLineV => :void,
1955
+ :ImageDrawCircle => :void,
1956
+ :ImageDrawCircleV => :void,
1957
+ :ImageDrawRectangle => :void,
1958
+ :ImageDrawRectangleV => :void,
1959
+ :ImageDrawRectangleRec => :void,
1960
+ :ImageDrawRectangleLines => :void,
1961
+ :ImageDraw => :void,
1962
+ :ImageDrawText => :void,
1963
+ :ImageDrawTextEx => :void,
1964
+ :LoadTexture => Texture2D.by_value,
1965
+ :LoadTextureFromImage => Texture2D.by_value,
1966
+ :LoadTextureCubemap => TextureCubemap.by_value,
1967
+ :LoadRenderTexture => RenderTexture2D.by_value,
1968
+ :UnloadTexture => :void,
1969
+ :UnloadRenderTexture => :void,
1970
+ :UpdateTexture => :void,
1971
+ :UpdateTextureRec => :void,
1972
+ :GenTextureMipmaps => :void,
1973
+ :SetTextureFilter => :void,
1974
+ :SetTextureWrap => :void,
1975
+ :DrawTexture => :void,
1976
+ :DrawTextureV => :void,
1977
+ :DrawTextureEx => :void,
1978
+ :DrawTextureRec => :void,
1979
+ :DrawTextureQuad => :void,
1980
+ :DrawTextureTiled => :void,
1981
+ :DrawTexturePro => :void,
1982
+ :DrawTextureNPatch => :void,
1983
+ :DrawTexturePoly => :void,
1984
+ :Fade => Color.by_value,
1985
+ :ColorToInt => :int,
1986
+ :ColorNormalize => Vector4.by_value,
1987
+ :ColorFromNormalized => Color.by_value,
1988
+ :ColorToHSV => Vector3.by_value,
1989
+ :ColorFromHSV => Color.by_value,
1990
+ :ColorAlpha => Color.by_value,
1991
+ :ColorAlphaBlend => Color.by_value,
1992
+ :GetColor => Color.by_value,
1993
+ :GetPixelColor => Color.by_value,
1994
+ :SetPixelColor => :void,
1995
+ :GetPixelDataSize => :int,
1996
+ :GetFontDefault => Font.by_value,
1997
+ :LoadFont => Font.by_value,
1998
+ :LoadFontEx => Font.by_value,
1999
+ :LoadFontFromImage => Font.by_value,
2000
+ :LoadFontFromMemory => Font.by_value,
2001
+ :LoadFontData => :pointer,
2002
+ :GenImageFontAtlas => Image.by_value,
2003
+ :UnloadFontData => :void,
2004
+ :UnloadFont => :void,
2005
+ :ExportFontAsCode => :bool,
2006
+ :DrawFPS => :void,
2007
+ :DrawText => :void,
2008
+ :DrawTextEx => :void,
2009
+ :DrawTextPro => :void,
2010
+ :DrawTextCodepoint => :void,
2011
+ :DrawTextCodepoints => :void,
2012
+ :MeasureText => :int,
2013
+ :MeasureTextEx => Vector2.by_value,
2014
+ :GetGlyphIndex => :int,
2015
+ :GetGlyphInfo => GlyphInfo.by_value,
2016
+ :GetGlyphAtlasRec => Rectangle.by_value,
2017
+ :LoadCodepoints => :pointer,
2018
+ :UnloadCodepoints => :void,
2019
+ :GetCodepointCount => :int,
2020
+ :GetCodepoint => :int,
2021
+ :CodepointToUTF8 => :pointer,
2022
+ :TextCodepointsToUTF8 => :pointer,
2023
+ :TextCopy => :int,
2024
+ :TextIsEqual => :bool,
2025
+ :TextLength => :uint,
2026
+ :TextFormat => :pointer,
2027
+ :TextSubtext => :pointer,
2028
+ :TextReplace => :pointer,
2029
+ :TextInsert => :pointer,
2030
+ :TextJoin => :pointer,
2031
+ :TextSplit => :pointer,
2032
+ :TextAppend => :void,
2033
+ :TextFindIndex => :int,
2034
+ :TextToUpper => :pointer,
2035
+ :TextToLower => :pointer,
2036
+ :TextToPascal => :pointer,
2037
+ :TextToInteger => :int,
2038
+ :DrawLine3D => :void,
2039
+ :DrawPoint3D => :void,
2040
+ :DrawCircle3D => :void,
2041
+ :DrawTriangle3D => :void,
2042
+ :DrawTriangleStrip3D => :void,
2043
+ :DrawCube => :void,
2044
+ :DrawCubeV => :void,
2045
+ :DrawCubeWires => :void,
2046
+ :DrawCubeWiresV => :void,
2047
+ :DrawCubeTexture => :void,
2048
+ :DrawCubeTextureRec => :void,
2049
+ :DrawSphere => :void,
2050
+ :DrawSphereEx => :void,
2051
+ :DrawSphereWires => :void,
2052
+ :DrawCylinder => :void,
2053
+ :DrawCylinderEx => :void,
2054
+ :DrawCylinderWires => :void,
2055
+ :DrawCylinderWiresEx => :void,
2056
+ :DrawPlane => :void,
2057
+ :DrawRay => :void,
2058
+ :DrawGrid => :void,
2059
+ :LoadModel => Model.by_value,
2060
+ :LoadModelFromMesh => Model.by_value,
2061
+ :UnloadModel => :void,
2062
+ :UnloadModelKeepMeshes => :void,
2063
+ :GetModelBoundingBox => BoundingBox.by_value,
2064
+ :DrawModel => :void,
2065
+ :DrawModelEx => :void,
2066
+ :DrawModelWires => :void,
2067
+ :DrawModelWiresEx => :void,
2068
+ :DrawBoundingBox => :void,
2069
+ :DrawBillboard => :void,
2070
+ :DrawBillboardRec => :void,
2071
+ :DrawBillboardPro => :void,
2072
+ :UploadMesh => :void,
2073
+ :UpdateMeshBuffer => :void,
2074
+ :UnloadMesh => :void,
2075
+ :DrawMesh => :void,
2076
+ :DrawMeshInstanced => :void,
2077
+ :ExportMesh => :bool,
2078
+ :GetMeshBoundingBox => BoundingBox.by_value,
2079
+ :GenMeshTangents => :void,
2080
+ :GenMeshBinormals => :void,
2081
+ :GenMeshPoly => Mesh.by_value,
2082
+ :GenMeshPlane => Mesh.by_value,
2083
+ :GenMeshCube => Mesh.by_value,
2084
+ :GenMeshSphere => Mesh.by_value,
2085
+ :GenMeshHemiSphere => Mesh.by_value,
2086
+ :GenMeshCylinder => Mesh.by_value,
2087
+ :GenMeshCone => Mesh.by_value,
2088
+ :GenMeshTorus => Mesh.by_value,
2089
+ :GenMeshKnot => Mesh.by_value,
2090
+ :GenMeshHeightmap => Mesh.by_value,
2091
+ :GenMeshCubicmap => Mesh.by_value,
2092
+ :LoadMaterials => :pointer,
2093
+ :LoadMaterialDefault => Material.by_value,
2094
+ :UnloadMaterial => :void,
2095
+ :SetMaterialTexture => :void,
2096
+ :SetModelMeshMaterial => :void,
2097
+ :LoadModelAnimations => :pointer,
2098
+ :UpdateModelAnimation => :void,
2099
+ :UnloadModelAnimation => :void,
2100
+ :UnloadModelAnimations => :void,
2101
+ :IsModelAnimationValid => :bool,
2102
+ :CheckCollisionSpheres => :bool,
2103
+ :CheckCollisionBoxes => :bool,
2104
+ :CheckCollisionBoxSphere => :bool,
2105
+ :GetRayCollisionSphere => RayCollision.by_value,
2106
+ :GetRayCollisionBox => RayCollision.by_value,
2107
+ :GetRayCollisionMesh => RayCollision.by_value,
2108
+ :GetRayCollisionTriangle => RayCollision.by_value,
2109
+ :GetRayCollisionQuad => RayCollision.by_value,
2110
+ :InitAudioDevice => :void,
2111
+ :CloseAudioDevice => :void,
2112
+ :IsAudioDeviceReady => :bool,
2113
+ :SetMasterVolume => :void,
2114
+ :LoadWave => Wave.by_value,
2115
+ :LoadWaveFromMemory => Wave.by_value,
2116
+ :LoadSound => Sound.by_value,
2117
+ :LoadSoundFromWave => Sound.by_value,
2118
+ :UpdateSound => :void,
2119
+ :UnloadWave => :void,
2120
+ :UnloadSound => :void,
2121
+ :ExportWave => :bool,
2122
+ :ExportWaveAsCode => :bool,
2123
+ :PlaySound => :void,
2124
+ :StopSound => :void,
2125
+ :PauseSound => :void,
2126
+ :ResumeSound => :void,
2127
+ :PlaySoundMulti => :void,
2128
+ :StopSoundMulti => :void,
2129
+ :GetSoundsPlaying => :int,
2130
+ :IsSoundPlaying => :bool,
2131
+ :SetSoundVolume => :void,
2132
+ :SetSoundPitch => :void,
2133
+ :SetSoundPan => :void,
2134
+ :WaveCopy => Wave.by_value,
2135
+ :WaveCrop => :void,
2136
+ :WaveFormat => :void,
2137
+ :LoadWaveSamples => :pointer,
2138
+ :UnloadWaveSamples => :void,
2139
+ :LoadMusicStream => Music.by_value,
2140
+ :LoadMusicStreamFromMemory => Music.by_value,
2141
+ :UnloadMusicStream => :void,
2142
+ :PlayMusicStream => :void,
2143
+ :IsMusicStreamPlaying => :bool,
2144
+ :UpdateMusicStream => :void,
2145
+ :StopMusicStream => :void,
2146
+ :PauseMusicStream => :void,
2147
+ :ResumeMusicStream => :void,
2148
+ :SeekMusicStream => :void,
2149
+ :SetMusicVolume => :void,
2150
+ :SetMusicPitch => :void,
2151
+ :SetMusicPan => :void,
2152
+ :GetMusicTimeLength => :float,
2153
+ :GetMusicTimePlayed => :float,
2154
+ :LoadAudioStream => AudioStream.by_value,
2155
+ :UnloadAudioStream => :void,
2156
+ :UpdateAudioStream => :void,
2157
+ :IsAudioStreamProcessed => :bool,
2158
+ :PlayAudioStream => :void,
2159
+ :PauseAudioStream => :void,
2160
+ :ResumeAudioStream => :void,
2161
+ :IsAudioStreamPlaying => :bool,
2162
+ :StopAudioStream => :void,
2163
+ :SetAudioStreamVolume => :void,
2164
+ :SetAudioStreamPitch => :void,
2165
+ :SetAudioStreamPan => :void,
2166
+ :SetAudioStreamBufferSizeDefault => :void,
2167
+ :SetAudioStreamCallback => :void,
2168
+ :AttachAudioStreamProcessor => :void,
2169
+ :DetachAudioStreamProcessor => :void,
2170
+ }
2171
+ symbols.each do |sym|
2172
+ begin
2173
+ attach_function sym, args[sym], retvals[sym]
2174
+ rescue FFI::NotFoundError => error
2175
+ $stderr.puts("[Warning] Failed to import #{sym} (#{error}).")
2176
+ end
2177
+ end
2178
+ end
2179
+
2180
+ end
2181
+