raylib-bindings 0.0.7 → 0.0.10

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