raylib-bindings 0.0.3 → 0.0.4

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