raylib-bindings 0.0.7 → 0.0.8

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,2190 @@
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-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_PREMULTIPLY = 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
+ :EnableEventWaiting,
712
+ :DisableEventWaiting,
713
+ :SwapScreenBuffer,
714
+ :PollInputEvents,
715
+ :WaitTime,
716
+ :ShowCursor,
717
+ :HideCursor,
718
+ :IsCursorHidden,
719
+ :EnableCursor,
720
+ :DisableCursor,
721
+ :IsCursorOnScreen,
722
+ :ClearBackground,
723
+ :BeginDrawing,
724
+ :EndDrawing,
725
+ :BeginMode2D,
726
+ :EndMode2D,
727
+ :BeginMode3D,
728
+ :EndMode3D,
729
+ :BeginTextureMode,
730
+ :EndTextureMode,
731
+ :BeginShaderMode,
732
+ :EndShaderMode,
733
+ :BeginBlendMode,
734
+ :EndBlendMode,
735
+ :BeginScissorMode,
736
+ :EndScissorMode,
737
+ :BeginVrStereoMode,
738
+ :EndVrStereoMode,
739
+ :LoadVrStereoConfig,
740
+ :UnloadVrStereoConfig,
741
+ :LoadShader,
742
+ :LoadShaderFromMemory,
743
+ :GetShaderLocation,
744
+ :GetShaderLocationAttrib,
745
+ :SetShaderValue,
746
+ :SetShaderValueV,
747
+ :SetShaderValueMatrix,
748
+ :SetShaderValueTexture,
749
+ :UnloadShader,
750
+ :GetMouseRay,
751
+ :GetCameraMatrix,
752
+ :GetCameraMatrix2D,
753
+ :GetWorldToScreen,
754
+ :GetScreenToWorld2D,
755
+ :GetWorldToScreenEx,
756
+ :GetWorldToScreen2D,
757
+ :SetTargetFPS,
758
+ :GetFPS,
759
+ :GetFrameTime,
760
+ :GetTime,
761
+ :GetRandomValue,
762
+ :SetRandomSeed,
763
+ :TakeScreenshot,
764
+ :SetConfigFlags,
765
+ :TraceLog,
766
+ :SetTraceLogLevel,
767
+ :MemAlloc,
768
+ :MemRealloc,
769
+ :MemFree,
770
+ :SetTraceLogCallback,
771
+ :SetLoadFileDataCallback,
772
+ :SetSaveFileDataCallback,
773
+ :SetLoadFileTextCallback,
774
+ :SetSaveFileTextCallback,
775
+ :LoadFileData,
776
+ :UnloadFileData,
777
+ :SaveFileData,
778
+ :ExportDataAsCode,
779
+ :LoadFileText,
780
+ :UnloadFileText,
781
+ :SaveFileText,
782
+ :FileExists,
783
+ :DirectoryExists,
784
+ :IsFileExtension,
785
+ :GetFileLength,
786
+ :GetFileExtension,
787
+ :GetFileName,
788
+ :GetFileNameWithoutExt,
789
+ :GetDirectoryPath,
790
+ :GetPrevDirectoryPath,
791
+ :GetWorkingDirectory,
792
+ :GetApplicationDirectory,
793
+ :ChangeDirectory,
794
+ :LoadDirectoryFiles,
795
+ :UnloadDirectoryFiles,
796
+ :IsFileDropped,
797
+ :LoadDroppedFiles,
798
+ :UnloadDroppedFiles,
799
+ :GetFileModTime,
800
+ :CompressData,
801
+ :DecompressData,
802
+ :EncodeDataBase64,
803
+ :DecodeDataBase64,
804
+ :SaveStorageValue,
805
+ :LoadStorageValue,
806
+ :OpenURL,
807
+ :IsKeyPressed,
808
+ :IsKeyDown,
809
+ :IsKeyReleased,
810
+ :IsKeyUp,
811
+ :SetExitKey,
812
+ :GetKeyPressed,
813
+ :GetCharPressed,
814
+ :IsGamepadAvailable,
815
+ :GetGamepadName,
816
+ :IsGamepadButtonPressed,
817
+ :IsGamepadButtonDown,
818
+ :IsGamepadButtonReleased,
819
+ :IsGamepadButtonUp,
820
+ :GetGamepadButtonPressed,
821
+ :GetGamepadAxisCount,
822
+ :GetGamepadAxisMovement,
823
+ :SetGamepadMappings,
824
+ :IsMouseButtonPressed,
825
+ :IsMouseButtonDown,
826
+ :IsMouseButtonReleased,
827
+ :IsMouseButtonUp,
828
+ :GetMouseX,
829
+ :GetMouseY,
830
+ :GetMousePosition,
831
+ :GetMouseDelta,
832
+ :SetMousePosition,
833
+ :SetMouseOffset,
834
+ :SetMouseScale,
835
+ :GetMouseWheelMove,
836
+ :SetMouseCursor,
837
+ :GetTouchX,
838
+ :GetTouchY,
839
+ :GetTouchPosition,
840
+ :GetTouchPointId,
841
+ :GetTouchPointCount,
842
+ :SetGesturesEnabled,
843
+ :IsGestureDetected,
844
+ :GetGestureDetected,
845
+ :GetGestureHoldDuration,
846
+ :GetGestureDragVector,
847
+ :GetGestureDragAngle,
848
+ :GetGesturePinchVector,
849
+ :GetGesturePinchAngle,
850
+ :SetCameraMode,
851
+ :UpdateCamera,
852
+ :SetCameraPanControl,
853
+ :SetCameraAltControl,
854
+ :SetCameraSmoothZoomControl,
855
+ :SetCameraMoveControls,
856
+ :SetShapesTexture,
857
+ :DrawPixel,
858
+ :DrawPixelV,
859
+ :DrawLine,
860
+ :DrawLineV,
861
+ :DrawLineEx,
862
+ :DrawLineBezier,
863
+ :DrawLineBezierQuad,
864
+ :DrawLineBezierCubic,
865
+ :DrawLineStrip,
866
+ :DrawCircle,
867
+ :DrawCircleSector,
868
+ :DrawCircleSectorLines,
869
+ :DrawCircleGradient,
870
+ :DrawCircleV,
871
+ :DrawCircleLines,
872
+ :DrawEllipse,
873
+ :DrawEllipseLines,
874
+ :DrawRing,
875
+ :DrawRingLines,
876
+ :DrawRectangle,
877
+ :DrawRectangleV,
878
+ :DrawRectangleRec,
879
+ :DrawRectanglePro,
880
+ :DrawRectangleGradientV,
881
+ :DrawRectangleGradientH,
882
+ :DrawRectangleGradientEx,
883
+ :DrawRectangleLines,
884
+ :DrawRectangleLinesEx,
885
+ :DrawRectangleRounded,
886
+ :DrawRectangleRoundedLines,
887
+ :DrawTriangle,
888
+ :DrawTriangleLines,
889
+ :DrawTriangleFan,
890
+ :DrawTriangleStrip,
891
+ :DrawPoly,
892
+ :DrawPolyLines,
893
+ :DrawPolyLinesEx,
894
+ :CheckCollisionRecs,
895
+ :CheckCollisionCircles,
896
+ :CheckCollisionCircleRec,
897
+ :CheckCollisionPointRec,
898
+ :CheckCollisionPointCircle,
899
+ :CheckCollisionPointTriangle,
900
+ :CheckCollisionLines,
901
+ :CheckCollisionPointLine,
902
+ :GetCollisionRec,
903
+ :LoadImage,
904
+ :LoadImageRaw,
905
+ :LoadImageAnim,
906
+ :LoadImageFromMemory,
907
+ :LoadImageFromTexture,
908
+ :LoadImageFromScreen,
909
+ :UnloadImage,
910
+ :ExportImage,
911
+ :ExportImageAsCode,
912
+ :GenImageColor,
913
+ :GenImageGradientV,
914
+ :GenImageGradientH,
915
+ :GenImageGradientRadial,
916
+ :GenImageChecked,
917
+ :GenImageWhiteNoise,
918
+ :GenImageCellular,
919
+ :ImageCopy,
920
+ :ImageFromImage,
921
+ :ImageText,
922
+ :ImageTextEx,
923
+ :ImageFormat,
924
+ :ImageToPOT,
925
+ :ImageCrop,
926
+ :ImageAlphaCrop,
927
+ :ImageAlphaClear,
928
+ :ImageAlphaMask,
929
+ :ImageAlphaPremultiply,
930
+ :ImageResize,
931
+ :ImageResizeNN,
932
+ :ImageResizeCanvas,
933
+ :ImageMipmaps,
934
+ :ImageDither,
935
+ :ImageFlipVertical,
936
+ :ImageFlipHorizontal,
937
+ :ImageRotateCW,
938
+ :ImageRotateCCW,
939
+ :ImageColorTint,
940
+ :ImageColorInvert,
941
+ :ImageColorGrayscale,
942
+ :ImageColorContrast,
943
+ :ImageColorBrightness,
944
+ :ImageColorReplace,
945
+ :LoadImageColors,
946
+ :LoadImagePalette,
947
+ :UnloadImageColors,
948
+ :UnloadImagePalette,
949
+ :GetImageAlphaBorder,
950
+ :GetImageColor,
951
+ :ImageClearBackground,
952
+ :ImageDrawPixel,
953
+ :ImageDrawPixelV,
954
+ :ImageDrawLine,
955
+ :ImageDrawLineV,
956
+ :ImageDrawCircle,
957
+ :ImageDrawCircleV,
958
+ :ImageDrawRectangle,
959
+ :ImageDrawRectangleV,
960
+ :ImageDrawRectangleRec,
961
+ :ImageDrawRectangleLines,
962
+ :ImageDraw,
963
+ :ImageDrawText,
964
+ :ImageDrawTextEx,
965
+ :LoadTexture,
966
+ :LoadTextureFromImage,
967
+ :LoadTextureCubemap,
968
+ :LoadRenderTexture,
969
+ :UnloadTexture,
970
+ :UnloadRenderTexture,
971
+ :UpdateTexture,
972
+ :UpdateTextureRec,
973
+ :GenTextureMipmaps,
974
+ :SetTextureFilter,
975
+ :SetTextureWrap,
976
+ :DrawTexture,
977
+ :DrawTextureV,
978
+ :DrawTextureEx,
979
+ :DrawTextureRec,
980
+ :DrawTextureQuad,
981
+ :DrawTextureTiled,
982
+ :DrawTexturePro,
983
+ :DrawTextureNPatch,
984
+ :DrawTexturePoly,
985
+ :Fade,
986
+ :ColorToInt,
987
+ :ColorNormalize,
988
+ :ColorFromNormalized,
989
+ :ColorToHSV,
990
+ :ColorFromHSV,
991
+ :ColorAlpha,
992
+ :ColorAlphaBlend,
993
+ :GetColor,
994
+ :GetPixelColor,
995
+ :SetPixelColor,
996
+ :GetPixelDataSize,
997
+ :GetFontDefault,
998
+ :LoadFont,
999
+ :LoadFontEx,
1000
+ :LoadFontFromImage,
1001
+ :LoadFontFromMemory,
1002
+ :LoadFontData,
1003
+ :GenImageFontAtlas,
1004
+ :UnloadFontData,
1005
+ :UnloadFont,
1006
+ :ExportFontAsCode,
1007
+ :DrawFPS,
1008
+ :DrawText,
1009
+ :DrawTextEx,
1010
+ :DrawTextPro,
1011
+ :DrawTextCodepoint,
1012
+ :DrawTextCodepoints,
1013
+ :MeasureText,
1014
+ :MeasureTextEx,
1015
+ :GetGlyphIndex,
1016
+ :GetGlyphInfo,
1017
+ :GetGlyphAtlasRec,
1018
+ :LoadCodepoints,
1019
+ :UnloadCodepoints,
1020
+ :GetCodepointCount,
1021
+ :GetCodepoint,
1022
+ :CodepointToUTF8,
1023
+ :TextCodepointsToUTF8,
1024
+ :TextCopy,
1025
+ :TextIsEqual,
1026
+ :TextLength,
1027
+ :TextFormat,
1028
+ :TextSubtext,
1029
+ :TextReplace,
1030
+ :TextInsert,
1031
+ :TextJoin,
1032
+ :TextSplit,
1033
+ :TextAppend,
1034
+ :TextFindIndex,
1035
+ :TextToUpper,
1036
+ :TextToLower,
1037
+ :TextToPascal,
1038
+ :TextToInteger,
1039
+ :DrawLine3D,
1040
+ :DrawPoint3D,
1041
+ :DrawCircle3D,
1042
+ :DrawTriangle3D,
1043
+ :DrawTriangleStrip3D,
1044
+ :DrawCube,
1045
+ :DrawCubeV,
1046
+ :DrawCubeWires,
1047
+ :DrawCubeWiresV,
1048
+ :DrawCubeTexture,
1049
+ :DrawCubeTextureRec,
1050
+ :DrawSphere,
1051
+ :DrawSphereEx,
1052
+ :DrawSphereWires,
1053
+ :DrawCylinder,
1054
+ :DrawCylinderEx,
1055
+ :DrawCylinderWires,
1056
+ :DrawCylinderWiresEx,
1057
+ :DrawPlane,
1058
+ :DrawRay,
1059
+ :DrawGrid,
1060
+ :LoadModel,
1061
+ :LoadModelFromMesh,
1062
+ :UnloadModel,
1063
+ :UnloadModelKeepMeshes,
1064
+ :GetModelBoundingBox,
1065
+ :DrawModel,
1066
+ :DrawModelEx,
1067
+ :DrawModelWires,
1068
+ :DrawModelWiresEx,
1069
+ :DrawBoundingBox,
1070
+ :DrawBillboard,
1071
+ :DrawBillboardRec,
1072
+ :DrawBillboardPro,
1073
+ :UploadMesh,
1074
+ :UpdateMeshBuffer,
1075
+ :UnloadMesh,
1076
+ :DrawMesh,
1077
+ :DrawMeshInstanced,
1078
+ :ExportMesh,
1079
+ :GetMeshBoundingBox,
1080
+ :GenMeshTangents,
1081
+ :GenMeshBinormals,
1082
+ :GenMeshPoly,
1083
+ :GenMeshPlane,
1084
+ :GenMeshCube,
1085
+ :GenMeshSphere,
1086
+ :GenMeshHemiSphere,
1087
+ :GenMeshCylinder,
1088
+ :GenMeshCone,
1089
+ :GenMeshTorus,
1090
+ :GenMeshKnot,
1091
+ :GenMeshHeightmap,
1092
+ :GenMeshCubicmap,
1093
+ :LoadMaterials,
1094
+ :LoadMaterialDefault,
1095
+ :UnloadMaterial,
1096
+ :SetMaterialTexture,
1097
+ :SetModelMeshMaterial,
1098
+ :LoadModelAnimations,
1099
+ :UpdateModelAnimation,
1100
+ :UnloadModelAnimation,
1101
+ :UnloadModelAnimations,
1102
+ :IsModelAnimationValid,
1103
+ :CheckCollisionSpheres,
1104
+ :CheckCollisionBoxes,
1105
+ :CheckCollisionBoxSphere,
1106
+ :GetRayCollisionSphere,
1107
+ :GetRayCollisionBox,
1108
+ :GetRayCollisionMesh,
1109
+ :GetRayCollisionTriangle,
1110
+ :GetRayCollisionQuad,
1111
+ :InitAudioDevice,
1112
+ :CloseAudioDevice,
1113
+ :IsAudioDeviceReady,
1114
+ :SetMasterVolume,
1115
+ :LoadWave,
1116
+ :LoadWaveFromMemory,
1117
+ :LoadSound,
1118
+ :LoadSoundFromWave,
1119
+ :UpdateSound,
1120
+ :UnloadWave,
1121
+ :UnloadSound,
1122
+ :ExportWave,
1123
+ :ExportWaveAsCode,
1124
+ :PlaySound,
1125
+ :StopSound,
1126
+ :PauseSound,
1127
+ :ResumeSound,
1128
+ :PlaySoundMulti,
1129
+ :StopSoundMulti,
1130
+ :GetSoundsPlaying,
1131
+ :IsSoundPlaying,
1132
+ :SetSoundVolume,
1133
+ :SetSoundPitch,
1134
+ :SetSoundPan,
1135
+ :WaveCopy,
1136
+ :WaveCrop,
1137
+ :WaveFormat,
1138
+ :LoadWaveSamples,
1139
+ :UnloadWaveSamples,
1140
+ :LoadMusicStream,
1141
+ :LoadMusicStreamFromMemory,
1142
+ :UnloadMusicStream,
1143
+ :PlayMusicStream,
1144
+ :IsMusicStreamPlaying,
1145
+ :UpdateMusicStream,
1146
+ :StopMusicStream,
1147
+ :PauseMusicStream,
1148
+ :ResumeMusicStream,
1149
+ :SeekMusicStream,
1150
+ :SetMusicVolume,
1151
+ :SetMusicPitch,
1152
+ :SetMusicPan,
1153
+ :GetMusicTimeLength,
1154
+ :GetMusicTimePlayed,
1155
+ :LoadAudioStream,
1156
+ :UnloadAudioStream,
1157
+ :UpdateAudioStream,
1158
+ :IsAudioStreamProcessed,
1159
+ :PlayAudioStream,
1160
+ :PauseAudioStream,
1161
+ :ResumeAudioStream,
1162
+ :IsAudioStreamPlaying,
1163
+ :StopAudioStream,
1164
+ :SetAudioStreamVolume,
1165
+ :SetAudioStreamPitch,
1166
+ :SetAudioStreamPan,
1167
+ :SetAudioStreamBufferSizeDefault,
1168
+ :SetAudioStreamCallback,
1169
+ :AttachAudioStreamProcessor,
1170
+ :DetachAudioStreamProcessor,
1171
+ ]
1172
+ args = {
1173
+ :InitWindow => [:int, :int, :pointer],
1174
+ :WindowShouldClose => [],
1175
+ :CloseWindow => [],
1176
+ :IsWindowReady => [],
1177
+ :IsWindowFullscreen => [],
1178
+ :IsWindowHidden => [],
1179
+ :IsWindowMinimized => [],
1180
+ :IsWindowMaximized => [],
1181
+ :IsWindowFocused => [],
1182
+ :IsWindowResized => [],
1183
+ :IsWindowState => [:uint],
1184
+ :SetWindowState => [:uint],
1185
+ :ClearWindowState => [:uint],
1186
+ :ToggleFullscreen => [],
1187
+ :MaximizeWindow => [],
1188
+ :MinimizeWindow => [],
1189
+ :RestoreWindow => [],
1190
+ :SetWindowIcon => [Image.by_value],
1191
+ :SetWindowTitle => [:pointer],
1192
+ :SetWindowPosition => [:int, :int],
1193
+ :SetWindowMonitor => [:int],
1194
+ :SetWindowMinSize => [:int, :int],
1195
+ :SetWindowSize => [:int, :int],
1196
+ :SetWindowOpacity => [:float],
1197
+ :GetWindowHandle => [],
1198
+ :GetScreenWidth => [],
1199
+ :GetScreenHeight => [],
1200
+ :GetRenderWidth => [],
1201
+ :GetRenderHeight => [],
1202
+ :GetMonitorCount => [],
1203
+ :GetCurrentMonitor => [],
1204
+ :GetMonitorPosition => [:int],
1205
+ :GetMonitorWidth => [:int],
1206
+ :GetMonitorHeight => [:int],
1207
+ :GetMonitorPhysicalWidth => [:int],
1208
+ :GetMonitorPhysicalHeight => [:int],
1209
+ :GetMonitorRefreshRate => [:int],
1210
+ :GetWindowPosition => [],
1211
+ :GetWindowScaleDPI => [],
1212
+ :GetMonitorName => [:int],
1213
+ :SetClipboardText => [:pointer],
1214
+ :GetClipboardText => [],
1215
+ :EnableEventWaiting => [],
1216
+ :DisableEventWaiting => [],
1217
+ :SwapScreenBuffer => [],
1218
+ :PollInputEvents => [],
1219
+ :WaitTime => [:double],
1220
+ :ShowCursor => [],
1221
+ :HideCursor => [],
1222
+ :IsCursorHidden => [],
1223
+ :EnableCursor => [],
1224
+ :DisableCursor => [],
1225
+ :IsCursorOnScreen => [],
1226
+ :ClearBackground => [Color.by_value],
1227
+ :BeginDrawing => [],
1228
+ :EndDrawing => [],
1229
+ :BeginMode2D => [Camera2D.by_value],
1230
+ :EndMode2D => [],
1231
+ :BeginMode3D => [Camera3D.by_value],
1232
+ :EndMode3D => [],
1233
+ :BeginTextureMode => [RenderTexture2D.by_value],
1234
+ :EndTextureMode => [],
1235
+ :BeginShaderMode => [Shader.by_value],
1236
+ :EndShaderMode => [],
1237
+ :BeginBlendMode => [:int],
1238
+ :EndBlendMode => [],
1239
+ :BeginScissorMode => [:int, :int, :int, :int],
1240
+ :EndScissorMode => [],
1241
+ :BeginVrStereoMode => [VrStereoConfig.by_value],
1242
+ :EndVrStereoMode => [],
1243
+ :LoadVrStereoConfig => [VrDeviceInfo.by_value],
1244
+ :UnloadVrStereoConfig => [VrStereoConfig.by_value],
1245
+ :LoadShader => [:pointer, :pointer],
1246
+ :LoadShaderFromMemory => [:pointer, :pointer],
1247
+ :GetShaderLocation => [Shader.by_value, :pointer],
1248
+ :GetShaderLocationAttrib => [Shader.by_value, :pointer],
1249
+ :SetShaderValue => [Shader.by_value, :int, :pointer, :int],
1250
+ :SetShaderValueV => [Shader.by_value, :int, :pointer, :int, :int],
1251
+ :SetShaderValueMatrix => [Shader.by_value, :int, Matrix.by_value],
1252
+ :SetShaderValueTexture => [Shader.by_value, :int, Texture2D.by_value],
1253
+ :UnloadShader => [Shader.by_value],
1254
+ :GetMouseRay => [Vector2.by_value, Camera.by_value],
1255
+ :GetCameraMatrix => [Camera.by_value],
1256
+ :GetCameraMatrix2D => [Camera2D.by_value],
1257
+ :GetWorldToScreen => [Vector3.by_value, Camera.by_value],
1258
+ :GetScreenToWorld2D => [Vector2.by_value, Camera2D.by_value],
1259
+ :GetWorldToScreenEx => [Vector3.by_value, Camera.by_value, :int, :int],
1260
+ :GetWorldToScreen2D => [Vector2.by_value, Camera2D.by_value],
1261
+ :SetTargetFPS => [:int],
1262
+ :GetFPS => [],
1263
+ :GetFrameTime => [],
1264
+ :GetTime => [],
1265
+ :GetRandomValue => [:int, :int],
1266
+ :SetRandomSeed => [:uint],
1267
+ :TakeScreenshot => [:pointer],
1268
+ :SetConfigFlags => [:uint],
1269
+ :TraceLog => [:int, :pointer, :varargs],
1270
+ :SetTraceLogLevel => [:int],
1271
+ :MemAlloc => [:int],
1272
+ :MemRealloc => [:pointer, :int],
1273
+ :MemFree => [:pointer],
1274
+ :SetTraceLogCallback => [:TraceLogCallback],
1275
+ :SetLoadFileDataCallback => [:LoadFileDataCallback],
1276
+ :SetSaveFileDataCallback => [:SaveFileDataCallback],
1277
+ :SetLoadFileTextCallback => [:LoadFileTextCallback],
1278
+ :SetSaveFileTextCallback => [:SaveFileTextCallback],
1279
+ :LoadFileData => [:pointer, :pointer],
1280
+ :UnloadFileData => [:pointer],
1281
+ :SaveFileData => [:pointer, :pointer, :uint],
1282
+ :ExportDataAsCode => [:pointer, :uint, :pointer],
1283
+ :LoadFileText => [:pointer],
1284
+ :UnloadFileText => [:pointer],
1285
+ :SaveFileText => [:pointer, :pointer],
1286
+ :FileExists => [:pointer],
1287
+ :DirectoryExists => [:pointer],
1288
+ :IsFileExtension => [:pointer, :pointer],
1289
+ :GetFileLength => [:pointer],
1290
+ :GetFileExtension => [:pointer],
1291
+ :GetFileName => [:pointer],
1292
+ :GetFileNameWithoutExt => [:pointer],
1293
+ :GetDirectoryPath => [:pointer],
1294
+ :GetPrevDirectoryPath => [:pointer],
1295
+ :GetWorkingDirectory => [],
1296
+ :GetApplicationDirectory => [],
1297
+ :ChangeDirectory => [:pointer],
1298
+ :LoadDirectoryFiles => [:pointer, :pointer],
1299
+ :UnloadDirectoryFiles => [],
1300
+ :IsFileDropped => [],
1301
+ :LoadDroppedFiles => [:pointer],
1302
+ :UnloadDroppedFiles => [],
1303
+ :GetFileModTime => [:pointer],
1304
+ :CompressData => [:pointer, :int, :pointer],
1305
+ :DecompressData => [:pointer, :int, :pointer],
1306
+ :EncodeDataBase64 => [:pointer, :int, :pointer],
1307
+ :DecodeDataBase64 => [:pointer, :pointer],
1308
+ :SaveStorageValue => [:uint, :int],
1309
+ :LoadStorageValue => [:uint],
1310
+ :OpenURL => [:pointer],
1311
+ :IsKeyPressed => [:int],
1312
+ :IsKeyDown => [:int],
1313
+ :IsKeyReleased => [:int],
1314
+ :IsKeyUp => [:int],
1315
+ :SetExitKey => [:int],
1316
+ :GetKeyPressed => [],
1317
+ :GetCharPressed => [],
1318
+ :IsGamepadAvailable => [:int],
1319
+ :GetGamepadName => [:int],
1320
+ :IsGamepadButtonPressed => [:int, :int],
1321
+ :IsGamepadButtonDown => [:int, :int],
1322
+ :IsGamepadButtonReleased => [:int, :int],
1323
+ :IsGamepadButtonUp => [:int, :int],
1324
+ :GetGamepadButtonPressed => [],
1325
+ :GetGamepadAxisCount => [:int],
1326
+ :GetGamepadAxisMovement => [:int, :int],
1327
+ :SetGamepadMappings => [:pointer],
1328
+ :IsMouseButtonPressed => [:int],
1329
+ :IsMouseButtonDown => [:int],
1330
+ :IsMouseButtonReleased => [:int],
1331
+ :IsMouseButtonUp => [:int],
1332
+ :GetMouseX => [],
1333
+ :GetMouseY => [],
1334
+ :GetMousePosition => [],
1335
+ :GetMouseDelta => [],
1336
+ :SetMousePosition => [:int, :int],
1337
+ :SetMouseOffset => [:int, :int],
1338
+ :SetMouseScale => [:float, :float],
1339
+ :GetMouseWheelMove => [],
1340
+ :SetMouseCursor => [:int],
1341
+ :GetTouchX => [],
1342
+ :GetTouchY => [],
1343
+ :GetTouchPosition => [:int],
1344
+ :GetTouchPointId => [:int],
1345
+ :GetTouchPointCount => [],
1346
+ :SetGesturesEnabled => [:uint],
1347
+ :IsGestureDetected => [:int],
1348
+ :GetGestureDetected => [],
1349
+ :GetGestureHoldDuration => [],
1350
+ :GetGestureDragVector => [],
1351
+ :GetGestureDragAngle => [],
1352
+ :GetGesturePinchVector => [],
1353
+ :GetGesturePinchAngle => [],
1354
+ :SetCameraMode => [Camera.by_value, :int],
1355
+ :UpdateCamera => [:pointer],
1356
+ :SetCameraPanControl => [:int],
1357
+ :SetCameraAltControl => [:int],
1358
+ :SetCameraSmoothZoomControl => [:int],
1359
+ :SetCameraMoveControls => [:int, :int, :int, :int, :int, :int],
1360
+ :SetShapesTexture => [Texture2D.by_value, Rectangle.by_value],
1361
+ :DrawPixel => [:int, :int, Color.by_value],
1362
+ :DrawPixelV => [Vector2.by_value, Color.by_value],
1363
+ :DrawLine => [:int, :int, :int, :int, Color.by_value],
1364
+ :DrawLineV => [Vector2.by_value, Vector2.by_value, Color.by_value],
1365
+ :DrawLineEx => [Vector2.by_value, Vector2.by_value, :float, Color.by_value],
1366
+ :DrawLineBezier => [Vector2.by_value, Vector2.by_value, :float, Color.by_value],
1367
+ :DrawLineBezierQuad => [Vector2.by_value, Vector2.by_value, Vector2.by_value, :float, Color.by_value],
1368
+ :DrawLineBezierCubic => [Vector2.by_value, Vector2.by_value, Vector2.by_value, Vector2.by_value, :float, Color.by_value],
1369
+ :DrawLineStrip => [:pointer, :int, Color.by_value],
1370
+ :DrawCircle => [:int, :int, :float, Color.by_value],
1371
+ :DrawCircleSector => [Vector2.by_value, :float, :float, :float, :int, Color.by_value],
1372
+ :DrawCircleSectorLines => [Vector2.by_value, :float, :float, :float, :int, Color.by_value],
1373
+ :DrawCircleGradient => [:int, :int, :float, Color.by_value, Color.by_value],
1374
+ :DrawCircleV => [Vector2.by_value, :float, Color.by_value],
1375
+ :DrawCircleLines => [:int, :int, :float, Color.by_value],
1376
+ :DrawEllipse => [:int, :int, :float, :float, Color.by_value],
1377
+ :DrawEllipseLines => [:int, :int, :float, :float, Color.by_value],
1378
+ :DrawRing => [Vector2.by_value, :float, :float, :float, :float, :int, Color.by_value],
1379
+ :DrawRingLines => [Vector2.by_value, :float, :float, :float, :float, :int, Color.by_value],
1380
+ :DrawRectangle => [:int, :int, :int, :int, Color.by_value],
1381
+ :DrawRectangleV => [Vector2.by_value, Vector2.by_value, Color.by_value],
1382
+ :DrawRectangleRec => [Rectangle.by_value, Color.by_value],
1383
+ :DrawRectanglePro => [Rectangle.by_value, Vector2.by_value, :float, Color.by_value],
1384
+ :DrawRectangleGradientV => [:int, :int, :int, :int, Color.by_value, Color.by_value],
1385
+ :DrawRectangleGradientH => [:int, :int, :int, :int, Color.by_value, Color.by_value],
1386
+ :DrawRectangleGradientEx => [Rectangle.by_value, Color.by_value, Color.by_value, Color.by_value, Color.by_value],
1387
+ :DrawRectangleLines => [:int, :int, :int, :int, Color.by_value],
1388
+ :DrawRectangleLinesEx => [Rectangle.by_value, :float, Color.by_value],
1389
+ :DrawRectangleRounded => [Rectangle.by_value, :float, :int, Color.by_value],
1390
+ :DrawRectangleRoundedLines => [Rectangle.by_value, :float, :int, :float, Color.by_value],
1391
+ :DrawTriangle => [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value],
1392
+ :DrawTriangleLines => [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value],
1393
+ :DrawTriangleFan => [:pointer, :int, Color.by_value],
1394
+ :DrawTriangleStrip => [:pointer, :int, Color.by_value],
1395
+ :DrawPoly => [Vector2.by_value, :int, :float, :float, Color.by_value],
1396
+ :DrawPolyLines => [Vector2.by_value, :int, :float, :float, Color.by_value],
1397
+ :DrawPolyLinesEx => [Vector2.by_value, :int, :float, :float, :float, Color.by_value],
1398
+ :CheckCollisionRecs => [Rectangle.by_value, Rectangle.by_value],
1399
+ :CheckCollisionCircles => [Vector2.by_value, :float, Vector2.by_value, :float],
1400
+ :CheckCollisionCircleRec => [Vector2.by_value, :float, Rectangle.by_value],
1401
+ :CheckCollisionPointRec => [Vector2.by_value, Rectangle.by_value],
1402
+ :CheckCollisionPointCircle => [Vector2.by_value, Vector2.by_value, :float],
1403
+ :CheckCollisionPointTriangle => [Vector2.by_value, Vector2.by_value, Vector2.by_value, Vector2.by_value],
1404
+ :CheckCollisionLines => [Vector2.by_value, Vector2.by_value, Vector2.by_value, Vector2.by_value, :pointer],
1405
+ :CheckCollisionPointLine => [Vector2.by_value, Vector2.by_value, Vector2.by_value, :int],
1406
+ :GetCollisionRec => [Rectangle.by_value, Rectangle.by_value],
1407
+ :LoadImage => [:pointer],
1408
+ :LoadImageRaw => [:pointer, :int, :int, :int, :int],
1409
+ :LoadImageAnim => [:pointer, :pointer],
1410
+ :LoadImageFromMemory => [:pointer, :pointer, :int],
1411
+ :LoadImageFromTexture => [Texture2D.by_value],
1412
+ :LoadImageFromScreen => [],
1413
+ :UnloadImage => [Image.by_value],
1414
+ :ExportImage => [Image.by_value, :pointer],
1415
+ :ExportImageAsCode => [Image.by_value, :pointer],
1416
+ :GenImageColor => [:int, :int, Color.by_value],
1417
+ :GenImageGradientV => [:int, :int, Color.by_value, Color.by_value],
1418
+ :GenImageGradientH => [:int, :int, Color.by_value, Color.by_value],
1419
+ :GenImageGradientRadial => [:int, :int, :float, Color.by_value, Color.by_value],
1420
+ :GenImageChecked => [:int, :int, :int, :int, Color.by_value, Color.by_value],
1421
+ :GenImageWhiteNoise => [:int, :int, :float],
1422
+ :GenImageCellular => [:int, :int, :int],
1423
+ :ImageCopy => [Image.by_value],
1424
+ :ImageFromImage => [Image.by_value, Rectangle.by_value],
1425
+ :ImageText => [:pointer, :int, Color.by_value],
1426
+ :ImageTextEx => [Font.by_value, :pointer, :float, :float, Color.by_value],
1427
+ :ImageFormat => [:pointer, :int],
1428
+ :ImageToPOT => [:pointer, Color.by_value],
1429
+ :ImageCrop => [:pointer, Rectangle.by_value],
1430
+ :ImageAlphaCrop => [:pointer, :float],
1431
+ :ImageAlphaClear => [:pointer, Color.by_value, :float],
1432
+ :ImageAlphaMask => [:pointer, Image.by_value],
1433
+ :ImageAlphaPremultiply => [:pointer],
1434
+ :ImageResize => [:pointer, :int, :int],
1435
+ :ImageResizeNN => [:pointer, :int, :int],
1436
+ :ImageResizeCanvas => [:pointer, :int, :int, :int, :int, Color.by_value],
1437
+ :ImageMipmaps => [:pointer],
1438
+ :ImageDither => [:pointer, :int, :int, :int, :int],
1439
+ :ImageFlipVertical => [:pointer],
1440
+ :ImageFlipHorizontal => [:pointer],
1441
+ :ImageRotateCW => [:pointer],
1442
+ :ImageRotateCCW => [:pointer],
1443
+ :ImageColorTint => [:pointer, Color.by_value],
1444
+ :ImageColorInvert => [:pointer],
1445
+ :ImageColorGrayscale => [:pointer],
1446
+ :ImageColorContrast => [:pointer, :float],
1447
+ :ImageColorBrightness => [:pointer, :int],
1448
+ :ImageColorReplace => [:pointer, Color.by_value, Color.by_value],
1449
+ :LoadImageColors => [Image.by_value],
1450
+ :LoadImagePalette => [Image.by_value, :int, :pointer],
1451
+ :UnloadImageColors => [:pointer],
1452
+ :UnloadImagePalette => [:pointer],
1453
+ :GetImageAlphaBorder => [Image.by_value, :float],
1454
+ :GetImageColor => [Image.by_value, :int, :int],
1455
+ :ImageClearBackground => [:pointer, Color.by_value],
1456
+ :ImageDrawPixel => [:pointer, :int, :int, Color.by_value],
1457
+ :ImageDrawPixelV => [:pointer, Vector2.by_value, Color.by_value],
1458
+ :ImageDrawLine => [:pointer, :int, :int, :int, :int, Color.by_value],
1459
+ :ImageDrawLineV => [:pointer, Vector2.by_value, Vector2.by_value, Color.by_value],
1460
+ :ImageDrawCircle => [:pointer, :int, :int, :int, Color.by_value],
1461
+ :ImageDrawCircleV => [:pointer, Vector2.by_value, :int, Color.by_value],
1462
+ :ImageDrawRectangle => [:pointer, :int, :int, :int, :int, Color.by_value],
1463
+ :ImageDrawRectangleV => [:pointer, Vector2.by_value, Vector2.by_value, Color.by_value],
1464
+ :ImageDrawRectangleRec => [:pointer, Rectangle.by_value, Color.by_value],
1465
+ :ImageDrawRectangleLines => [:pointer, Rectangle.by_value, :int, Color.by_value],
1466
+ :ImageDraw => [:pointer, Image.by_value, Rectangle.by_value, Rectangle.by_value, Color.by_value],
1467
+ :ImageDrawText => [:pointer, :pointer, :int, :int, :int, Color.by_value],
1468
+ :ImageDrawTextEx => [:pointer, Font.by_value, :pointer, Vector2.by_value, :float, :float, Color.by_value],
1469
+ :LoadTexture => [:pointer],
1470
+ :LoadTextureFromImage => [Image.by_value],
1471
+ :LoadTextureCubemap => [Image.by_value, :int],
1472
+ :LoadRenderTexture => [:int, :int],
1473
+ :UnloadTexture => [Texture2D.by_value],
1474
+ :UnloadRenderTexture => [RenderTexture2D.by_value],
1475
+ :UpdateTexture => [Texture2D.by_value, :pointer],
1476
+ :UpdateTextureRec => [Texture2D.by_value, Rectangle.by_value, :pointer],
1477
+ :GenTextureMipmaps => [:pointer],
1478
+ :SetTextureFilter => [Texture2D.by_value, :int],
1479
+ :SetTextureWrap => [Texture2D.by_value, :int],
1480
+ :DrawTexture => [Texture2D.by_value, :int, :int, Color.by_value],
1481
+ :DrawTextureV => [Texture2D.by_value, Vector2.by_value, Color.by_value],
1482
+ :DrawTextureEx => [Texture2D.by_value, Vector2.by_value, :float, :float, Color.by_value],
1483
+ :DrawTextureRec => [Texture2D.by_value, Rectangle.by_value, Vector2.by_value, Color.by_value],
1484
+ :DrawTextureQuad => [Texture2D.by_value, Vector2.by_value, Vector2.by_value, Rectangle.by_value, Color.by_value],
1485
+ :DrawTextureTiled => [Texture2D.by_value, Rectangle.by_value, Rectangle.by_value, Vector2.by_value, :float, :float, Color.by_value],
1486
+ :DrawTexturePro => [Texture2D.by_value, Rectangle.by_value, Rectangle.by_value, Vector2.by_value, :float, Color.by_value],
1487
+ :DrawTextureNPatch => [Texture2D.by_value, NPatchInfo.by_value, Rectangle.by_value, Vector2.by_value, :float, Color.by_value],
1488
+ :DrawTexturePoly => [Texture2D.by_value, Vector2.by_value, :pointer, :pointer, :int, Color.by_value],
1489
+ :Fade => [Color.by_value, :float],
1490
+ :ColorToInt => [Color.by_value],
1491
+ :ColorNormalize => [Color.by_value],
1492
+ :ColorFromNormalized => [Vector4.by_value],
1493
+ :ColorToHSV => [Color.by_value],
1494
+ :ColorFromHSV => [:float, :float, :float],
1495
+ :ColorAlpha => [Color.by_value, :float],
1496
+ :ColorAlphaBlend => [Color.by_value, Color.by_value, Color.by_value],
1497
+ :GetColor => [:uint],
1498
+ :GetPixelColor => [:pointer, :int],
1499
+ :SetPixelColor => [:pointer, Color.by_value, :int],
1500
+ :GetPixelDataSize => [:int, :int, :int],
1501
+ :GetFontDefault => [],
1502
+ :LoadFont => [:pointer],
1503
+ :LoadFontEx => [:pointer, :int, :pointer, :int],
1504
+ :LoadFontFromImage => [Image.by_value, Color.by_value, :int],
1505
+ :LoadFontFromMemory => [:pointer, :pointer, :int, :int, :pointer, :int],
1506
+ :LoadFontData => [:pointer, :int, :int, :pointer, :int, :int],
1507
+ :GenImageFontAtlas => [:pointer, :pointer, :int, :int, :int, :int],
1508
+ :UnloadFontData => [:pointer, :int],
1509
+ :UnloadFont => [Font.by_value],
1510
+ :ExportFontAsCode => [Font.by_value, :pointer],
1511
+ :DrawFPS => [:int, :int],
1512
+ :DrawText => [:pointer, :int, :int, :int, Color.by_value],
1513
+ :DrawTextEx => [Font.by_value, :pointer, Vector2.by_value, :float, :float, Color.by_value],
1514
+ :DrawTextPro => [Font.by_value, :pointer, Vector2.by_value, Vector2.by_value, :float, :float, :float, Color.by_value],
1515
+ :DrawTextCodepoint => [Font.by_value, :int, Vector2.by_value, :float, Color.by_value],
1516
+ :DrawTextCodepoints => [Font.by_value, :pointer, :int, Vector2.by_value, :float, :float, Color.by_value],
1517
+ :MeasureText => [:pointer, :int],
1518
+ :MeasureTextEx => [Font.by_value, :pointer, :float, :float],
1519
+ :GetGlyphIndex => [Font.by_value, :int],
1520
+ :GetGlyphInfo => [Font.by_value, :int],
1521
+ :GetGlyphAtlasRec => [Font.by_value, :int],
1522
+ :LoadCodepoints => [:pointer, :pointer],
1523
+ :UnloadCodepoints => [:pointer],
1524
+ :GetCodepointCount => [:pointer],
1525
+ :GetCodepoint => [:pointer, :pointer],
1526
+ :CodepointToUTF8 => [:int, :pointer],
1527
+ :TextCodepointsToUTF8 => [:pointer, :int],
1528
+ :TextCopy => [:pointer, :pointer],
1529
+ :TextIsEqual => [:pointer, :pointer],
1530
+ :TextLength => [:pointer],
1531
+ :TextFormat => [:pointer, :varargs],
1532
+ :TextSubtext => [:pointer, :int, :int],
1533
+ :TextReplace => [:pointer, :pointer, :pointer],
1534
+ :TextInsert => [:pointer, :pointer, :int],
1535
+ :TextJoin => [:pointer, :int, :pointer],
1536
+ :TextSplit => [:pointer, :char, :pointer],
1537
+ :TextAppend => [:pointer, :pointer, :pointer],
1538
+ :TextFindIndex => [:pointer, :pointer],
1539
+ :TextToUpper => [:pointer],
1540
+ :TextToLower => [:pointer],
1541
+ :TextToPascal => [:pointer],
1542
+ :TextToInteger => [:pointer],
1543
+ :DrawLine3D => [Vector3.by_value, Vector3.by_value, Color.by_value],
1544
+ :DrawPoint3D => [Vector3.by_value, Color.by_value],
1545
+ :DrawCircle3D => [Vector3.by_value, :float, Vector3.by_value, :float, Color.by_value],
1546
+ :DrawTriangle3D => [Vector3.by_value, Vector3.by_value, Vector3.by_value, Color.by_value],
1547
+ :DrawTriangleStrip3D => [:pointer, :int, Color.by_value],
1548
+ :DrawCube => [Vector3.by_value, :float, :float, :float, Color.by_value],
1549
+ :DrawCubeV => [Vector3.by_value, Vector3.by_value, Color.by_value],
1550
+ :DrawCubeWires => [Vector3.by_value, :float, :float, :float, Color.by_value],
1551
+ :DrawCubeWiresV => [Vector3.by_value, Vector3.by_value, Color.by_value],
1552
+ :DrawCubeTexture => [Texture2D.by_value, Vector3.by_value, :float, :float, :float, Color.by_value],
1553
+ :DrawCubeTextureRec => [Texture2D.by_value, Rectangle.by_value, Vector3.by_value, :float, :float, :float, Color.by_value],
1554
+ :DrawSphere => [Vector3.by_value, :float, Color.by_value],
1555
+ :DrawSphereEx => [Vector3.by_value, :float, :int, :int, Color.by_value],
1556
+ :DrawSphereWires => [Vector3.by_value, :float, :int, :int, Color.by_value],
1557
+ :DrawCylinder => [Vector3.by_value, :float, :float, :float, :int, Color.by_value],
1558
+ :DrawCylinderEx => [Vector3.by_value, Vector3.by_value, :float, :float, :int, Color.by_value],
1559
+ :DrawCylinderWires => [Vector3.by_value, :float, :float, :float, :int, Color.by_value],
1560
+ :DrawCylinderWiresEx => [Vector3.by_value, Vector3.by_value, :float, :float, :int, Color.by_value],
1561
+ :DrawPlane => [Vector3.by_value, Vector2.by_value, Color.by_value],
1562
+ :DrawRay => [Ray.by_value, Color.by_value],
1563
+ :DrawGrid => [:int, :float],
1564
+ :LoadModel => [:pointer],
1565
+ :LoadModelFromMesh => [Mesh.by_value],
1566
+ :UnloadModel => [Model.by_value],
1567
+ :UnloadModelKeepMeshes => [Model.by_value],
1568
+ :GetModelBoundingBox => [Model.by_value],
1569
+ :DrawModel => [Model.by_value, Vector3.by_value, :float, Color.by_value],
1570
+ :DrawModelEx => [Model.by_value, Vector3.by_value, Vector3.by_value, :float, Vector3.by_value, Color.by_value],
1571
+ :DrawModelWires => [Model.by_value, Vector3.by_value, :float, Color.by_value],
1572
+ :DrawModelWiresEx => [Model.by_value, Vector3.by_value, Vector3.by_value, :float, Vector3.by_value, Color.by_value],
1573
+ :DrawBoundingBox => [BoundingBox.by_value, Color.by_value],
1574
+ :DrawBillboard => [Camera.by_value, Texture2D.by_value, Vector3.by_value, :float, Color.by_value],
1575
+ :DrawBillboardRec => [Camera.by_value, Texture2D.by_value, Rectangle.by_value, Vector3.by_value, Vector2.by_value, Color.by_value],
1576
+ :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],
1577
+ :UploadMesh => [:pointer, :bool],
1578
+ :UpdateMeshBuffer => [Mesh.by_value, :int, :pointer, :int, :int],
1579
+ :UnloadMesh => [Mesh.by_value],
1580
+ :DrawMesh => [Mesh.by_value, Material.by_value, Matrix.by_value],
1581
+ :DrawMeshInstanced => [Mesh.by_value, Material.by_value, :pointer, :int],
1582
+ :ExportMesh => [Mesh.by_value, :pointer],
1583
+ :GetMeshBoundingBox => [Mesh.by_value],
1584
+ :GenMeshTangents => [:pointer],
1585
+ :GenMeshBinormals => [:pointer],
1586
+ :GenMeshPoly => [:int, :float],
1587
+ :GenMeshPlane => [:float, :float, :int, :int],
1588
+ :GenMeshCube => [:float, :float, :float],
1589
+ :GenMeshSphere => [:float, :int, :int],
1590
+ :GenMeshHemiSphere => [:float, :int, :int],
1591
+ :GenMeshCylinder => [:float, :float, :int],
1592
+ :GenMeshCone => [:float, :float, :int],
1593
+ :GenMeshTorus => [:float, :float, :int, :int],
1594
+ :GenMeshKnot => [:float, :float, :int, :int],
1595
+ :GenMeshHeightmap => [Image.by_value, Vector3.by_value],
1596
+ :GenMeshCubicmap => [Image.by_value, Vector3.by_value],
1597
+ :LoadMaterials => [:pointer, :pointer],
1598
+ :LoadMaterialDefault => [],
1599
+ :UnloadMaterial => [Material.by_value],
1600
+ :SetMaterialTexture => [:pointer, :int, Texture2D.by_value],
1601
+ :SetModelMeshMaterial => [:pointer, :int, :int],
1602
+ :LoadModelAnimations => [:pointer, :pointer],
1603
+ :UpdateModelAnimation => [Model.by_value, ModelAnimation.by_value, :int],
1604
+ :UnloadModelAnimation => [ModelAnimation.by_value],
1605
+ :UnloadModelAnimations => [:pointer, :uint],
1606
+ :IsModelAnimationValid => [Model.by_value, ModelAnimation.by_value],
1607
+ :CheckCollisionSpheres => [Vector3.by_value, :float, Vector3.by_value, :float],
1608
+ :CheckCollisionBoxes => [BoundingBox.by_value, BoundingBox.by_value],
1609
+ :CheckCollisionBoxSphere => [BoundingBox.by_value, Vector3.by_value, :float],
1610
+ :GetRayCollisionSphere => [Ray.by_value, Vector3.by_value, :float],
1611
+ :GetRayCollisionBox => [Ray.by_value, BoundingBox.by_value],
1612
+ :GetRayCollisionMesh => [Ray.by_value, Mesh.by_value, Matrix.by_value],
1613
+ :GetRayCollisionTriangle => [Ray.by_value, Vector3.by_value, Vector3.by_value, Vector3.by_value],
1614
+ :GetRayCollisionQuad => [Ray.by_value, Vector3.by_value, Vector3.by_value, Vector3.by_value, Vector3.by_value],
1615
+ :InitAudioDevice => [],
1616
+ :CloseAudioDevice => [],
1617
+ :IsAudioDeviceReady => [],
1618
+ :SetMasterVolume => [:float],
1619
+ :LoadWave => [:pointer],
1620
+ :LoadWaveFromMemory => [:pointer, :pointer, :int],
1621
+ :LoadSound => [:pointer],
1622
+ :LoadSoundFromWave => [Wave.by_value],
1623
+ :UpdateSound => [Sound.by_value, :pointer, :int],
1624
+ :UnloadWave => [Wave.by_value],
1625
+ :UnloadSound => [Sound.by_value],
1626
+ :ExportWave => [Wave.by_value, :pointer],
1627
+ :ExportWaveAsCode => [Wave.by_value, :pointer],
1628
+ :PlaySound => [Sound.by_value],
1629
+ :StopSound => [Sound.by_value],
1630
+ :PauseSound => [Sound.by_value],
1631
+ :ResumeSound => [Sound.by_value],
1632
+ :PlaySoundMulti => [Sound.by_value],
1633
+ :StopSoundMulti => [],
1634
+ :GetSoundsPlaying => [],
1635
+ :IsSoundPlaying => [Sound.by_value],
1636
+ :SetSoundVolume => [Sound.by_value, :float],
1637
+ :SetSoundPitch => [Sound.by_value, :float],
1638
+ :SetSoundPan => [Sound.by_value, :float],
1639
+ :WaveCopy => [Wave.by_value],
1640
+ :WaveCrop => [:pointer, :int, :int],
1641
+ :WaveFormat => [:pointer, :int, :int, :int],
1642
+ :LoadWaveSamples => [Wave.by_value],
1643
+ :UnloadWaveSamples => [:pointer],
1644
+ :LoadMusicStream => [:pointer],
1645
+ :LoadMusicStreamFromMemory => [:pointer, :pointer, :int],
1646
+ :UnloadMusicStream => [Music.by_value],
1647
+ :PlayMusicStream => [Music.by_value],
1648
+ :IsMusicStreamPlaying => [Music.by_value],
1649
+ :UpdateMusicStream => [Music.by_value],
1650
+ :StopMusicStream => [Music.by_value],
1651
+ :PauseMusicStream => [Music.by_value],
1652
+ :ResumeMusicStream => [Music.by_value],
1653
+ :SeekMusicStream => [Music.by_value, :float],
1654
+ :SetMusicVolume => [Music.by_value, :float],
1655
+ :SetMusicPitch => [Music.by_value, :float],
1656
+ :SetMusicPan => [Music.by_value, :float],
1657
+ :GetMusicTimeLength => [Music.by_value],
1658
+ :GetMusicTimePlayed => [Music.by_value],
1659
+ :LoadAudioStream => [:uint, :uint, :uint],
1660
+ :UnloadAudioStream => [AudioStream.by_value],
1661
+ :UpdateAudioStream => [AudioStream.by_value, :pointer, :int],
1662
+ :IsAudioStreamProcessed => [AudioStream.by_value],
1663
+ :PlayAudioStream => [AudioStream.by_value],
1664
+ :PauseAudioStream => [AudioStream.by_value],
1665
+ :ResumeAudioStream => [AudioStream.by_value],
1666
+ :IsAudioStreamPlaying => [AudioStream.by_value],
1667
+ :StopAudioStream => [AudioStream.by_value],
1668
+ :SetAudioStreamVolume => [AudioStream.by_value, :float],
1669
+ :SetAudioStreamPitch => [AudioStream.by_value, :float],
1670
+ :SetAudioStreamPan => [AudioStream.by_value, :float],
1671
+ :SetAudioStreamBufferSizeDefault => [:int],
1672
+ :SetAudioStreamCallback => [AudioStream.by_value, :AudioCallback],
1673
+ :AttachAudioStreamProcessor => [AudioStream.by_value, :AudioCallback],
1674
+ :DetachAudioStreamProcessor => [AudioStream.by_value, :AudioCallback],
1675
+ }
1676
+ retvals = {
1677
+ :InitWindow => :void,
1678
+ :WindowShouldClose => :bool,
1679
+ :CloseWindow => :void,
1680
+ :IsWindowReady => :bool,
1681
+ :IsWindowFullscreen => :bool,
1682
+ :IsWindowHidden => :bool,
1683
+ :IsWindowMinimized => :bool,
1684
+ :IsWindowMaximized => :bool,
1685
+ :IsWindowFocused => :bool,
1686
+ :IsWindowResized => :bool,
1687
+ :IsWindowState => :bool,
1688
+ :SetWindowState => :void,
1689
+ :ClearWindowState => :void,
1690
+ :ToggleFullscreen => :void,
1691
+ :MaximizeWindow => :void,
1692
+ :MinimizeWindow => :void,
1693
+ :RestoreWindow => :void,
1694
+ :SetWindowIcon => :void,
1695
+ :SetWindowTitle => :void,
1696
+ :SetWindowPosition => :void,
1697
+ :SetWindowMonitor => :void,
1698
+ :SetWindowMinSize => :void,
1699
+ :SetWindowSize => :void,
1700
+ :SetWindowOpacity => :void,
1701
+ :GetWindowHandle => :pointer,
1702
+ :GetScreenWidth => :int,
1703
+ :GetScreenHeight => :int,
1704
+ :GetRenderWidth => :int,
1705
+ :GetRenderHeight => :int,
1706
+ :GetMonitorCount => :int,
1707
+ :GetCurrentMonitor => :int,
1708
+ :GetMonitorPosition => Vector2.by_value,
1709
+ :GetMonitorWidth => :int,
1710
+ :GetMonitorHeight => :int,
1711
+ :GetMonitorPhysicalWidth => :int,
1712
+ :GetMonitorPhysicalHeight => :int,
1713
+ :GetMonitorRefreshRate => :int,
1714
+ :GetWindowPosition => Vector2.by_value,
1715
+ :GetWindowScaleDPI => Vector2.by_value,
1716
+ :GetMonitorName => :pointer,
1717
+ :SetClipboardText => :void,
1718
+ :GetClipboardText => :pointer,
1719
+ :EnableEventWaiting => :void,
1720
+ :DisableEventWaiting => :void,
1721
+ :SwapScreenBuffer => :void,
1722
+ :PollInputEvents => :void,
1723
+ :WaitTime => :void,
1724
+ :ShowCursor => :void,
1725
+ :HideCursor => :void,
1726
+ :IsCursorHidden => :bool,
1727
+ :EnableCursor => :void,
1728
+ :DisableCursor => :void,
1729
+ :IsCursorOnScreen => :bool,
1730
+ :ClearBackground => :void,
1731
+ :BeginDrawing => :void,
1732
+ :EndDrawing => :void,
1733
+ :BeginMode2D => :void,
1734
+ :EndMode2D => :void,
1735
+ :BeginMode3D => :void,
1736
+ :EndMode3D => :void,
1737
+ :BeginTextureMode => :void,
1738
+ :EndTextureMode => :void,
1739
+ :BeginShaderMode => :void,
1740
+ :EndShaderMode => :void,
1741
+ :BeginBlendMode => :void,
1742
+ :EndBlendMode => :void,
1743
+ :BeginScissorMode => :void,
1744
+ :EndScissorMode => :void,
1745
+ :BeginVrStereoMode => :void,
1746
+ :EndVrStereoMode => :void,
1747
+ :LoadVrStereoConfig => VrStereoConfig.by_value,
1748
+ :UnloadVrStereoConfig => :void,
1749
+ :LoadShader => Shader.by_value,
1750
+ :LoadShaderFromMemory => Shader.by_value,
1751
+ :GetShaderLocation => :int,
1752
+ :GetShaderLocationAttrib => :int,
1753
+ :SetShaderValue => :void,
1754
+ :SetShaderValueV => :void,
1755
+ :SetShaderValueMatrix => :void,
1756
+ :SetShaderValueTexture => :void,
1757
+ :UnloadShader => :void,
1758
+ :GetMouseRay => Ray.by_value,
1759
+ :GetCameraMatrix => Matrix.by_value,
1760
+ :GetCameraMatrix2D => Matrix.by_value,
1761
+ :GetWorldToScreen => Vector2.by_value,
1762
+ :GetScreenToWorld2D => Vector2.by_value,
1763
+ :GetWorldToScreenEx => Vector2.by_value,
1764
+ :GetWorldToScreen2D => Vector2.by_value,
1765
+ :SetTargetFPS => :void,
1766
+ :GetFPS => :int,
1767
+ :GetFrameTime => :float,
1768
+ :GetTime => :double,
1769
+ :GetRandomValue => :int,
1770
+ :SetRandomSeed => :void,
1771
+ :TakeScreenshot => :void,
1772
+ :SetConfigFlags => :void,
1773
+ :TraceLog => :void,
1774
+ :SetTraceLogLevel => :void,
1775
+ :MemAlloc => :pointer,
1776
+ :MemRealloc => :pointer,
1777
+ :MemFree => :void,
1778
+ :SetTraceLogCallback => :void,
1779
+ :SetLoadFileDataCallback => :void,
1780
+ :SetSaveFileDataCallback => :void,
1781
+ :SetLoadFileTextCallback => :void,
1782
+ :SetSaveFileTextCallback => :void,
1783
+ :LoadFileData => :pointer,
1784
+ :UnloadFileData => :void,
1785
+ :SaveFileData => :bool,
1786
+ :ExportDataAsCode => :bool,
1787
+ :LoadFileText => :pointer,
1788
+ :UnloadFileText => :void,
1789
+ :SaveFileText => :bool,
1790
+ :FileExists => :bool,
1791
+ :DirectoryExists => :bool,
1792
+ :IsFileExtension => :bool,
1793
+ :GetFileLength => :int,
1794
+ :GetFileExtension => :pointer,
1795
+ :GetFileName => :pointer,
1796
+ :GetFileNameWithoutExt => :pointer,
1797
+ :GetDirectoryPath => :pointer,
1798
+ :GetPrevDirectoryPath => :pointer,
1799
+ :GetWorkingDirectory => :pointer,
1800
+ :GetApplicationDirectory => :pointer,
1801
+ :ChangeDirectory => :bool,
1802
+ :LoadDirectoryFiles => :pointer,
1803
+ :UnloadDirectoryFiles => :void,
1804
+ :IsFileDropped => :bool,
1805
+ :LoadDroppedFiles => :pointer,
1806
+ :UnloadDroppedFiles => :void,
1807
+ :GetFileModTime => :long,
1808
+ :CompressData => :pointer,
1809
+ :DecompressData => :pointer,
1810
+ :EncodeDataBase64 => :pointer,
1811
+ :DecodeDataBase64 => :pointer,
1812
+ :SaveStorageValue => :bool,
1813
+ :LoadStorageValue => :int,
1814
+ :OpenURL => :void,
1815
+ :IsKeyPressed => :bool,
1816
+ :IsKeyDown => :bool,
1817
+ :IsKeyReleased => :bool,
1818
+ :IsKeyUp => :bool,
1819
+ :SetExitKey => :void,
1820
+ :GetKeyPressed => :int,
1821
+ :GetCharPressed => :int,
1822
+ :IsGamepadAvailable => :bool,
1823
+ :GetGamepadName => :pointer,
1824
+ :IsGamepadButtonPressed => :bool,
1825
+ :IsGamepadButtonDown => :bool,
1826
+ :IsGamepadButtonReleased => :bool,
1827
+ :IsGamepadButtonUp => :bool,
1828
+ :GetGamepadButtonPressed => :int,
1829
+ :GetGamepadAxisCount => :int,
1830
+ :GetGamepadAxisMovement => :float,
1831
+ :SetGamepadMappings => :int,
1832
+ :IsMouseButtonPressed => :bool,
1833
+ :IsMouseButtonDown => :bool,
1834
+ :IsMouseButtonReleased => :bool,
1835
+ :IsMouseButtonUp => :bool,
1836
+ :GetMouseX => :int,
1837
+ :GetMouseY => :int,
1838
+ :GetMousePosition => Vector2.by_value,
1839
+ :GetMouseDelta => Vector2.by_value,
1840
+ :SetMousePosition => :void,
1841
+ :SetMouseOffset => :void,
1842
+ :SetMouseScale => :void,
1843
+ :GetMouseWheelMove => :float,
1844
+ :SetMouseCursor => :void,
1845
+ :GetTouchX => :int,
1846
+ :GetTouchY => :int,
1847
+ :GetTouchPosition => Vector2.by_value,
1848
+ :GetTouchPointId => :int,
1849
+ :GetTouchPointCount => :int,
1850
+ :SetGesturesEnabled => :void,
1851
+ :IsGestureDetected => :bool,
1852
+ :GetGestureDetected => :int,
1853
+ :GetGestureHoldDuration => :float,
1854
+ :GetGestureDragVector => Vector2.by_value,
1855
+ :GetGestureDragAngle => :float,
1856
+ :GetGesturePinchVector => Vector2.by_value,
1857
+ :GetGesturePinchAngle => :float,
1858
+ :SetCameraMode => :void,
1859
+ :UpdateCamera => :void,
1860
+ :SetCameraPanControl => :void,
1861
+ :SetCameraAltControl => :void,
1862
+ :SetCameraSmoothZoomControl => :void,
1863
+ :SetCameraMoveControls => :void,
1864
+ :SetShapesTexture => :void,
1865
+ :DrawPixel => :void,
1866
+ :DrawPixelV => :void,
1867
+ :DrawLine => :void,
1868
+ :DrawLineV => :void,
1869
+ :DrawLineEx => :void,
1870
+ :DrawLineBezier => :void,
1871
+ :DrawLineBezierQuad => :void,
1872
+ :DrawLineBezierCubic => :void,
1873
+ :DrawLineStrip => :void,
1874
+ :DrawCircle => :void,
1875
+ :DrawCircleSector => :void,
1876
+ :DrawCircleSectorLines => :void,
1877
+ :DrawCircleGradient => :void,
1878
+ :DrawCircleV => :void,
1879
+ :DrawCircleLines => :void,
1880
+ :DrawEllipse => :void,
1881
+ :DrawEllipseLines => :void,
1882
+ :DrawRing => :void,
1883
+ :DrawRingLines => :void,
1884
+ :DrawRectangle => :void,
1885
+ :DrawRectangleV => :void,
1886
+ :DrawRectangleRec => :void,
1887
+ :DrawRectanglePro => :void,
1888
+ :DrawRectangleGradientV => :void,
1889
+ :DrawRectangleGradientH => :void,
1890
+ :DrawRectangleGradientEx => :void,
1891
+ :DrawRectangleLines => :void,
1892
+ :DrawRectangleLinesEx => :void,
1893
+ :DrawRectangleRounded => :void,
1894
+ :DrawRectangleRoundedLines => :void,
1895
+ :DrawTriangle => :void,
1896
+ :DrawTriangleLines => :void,
1897
+ :DrawTriangleFan => :void,
1898
+ :DrawTriangleStrip => :void,
1899
+ :DrawPoly => :void,
1900
+ :DrawPolyLines => :void,
1901
+ :DrawPolyLinesEx => :void,
1902
+ :CheckCollisionRecs => :bool,
1903
+ :CheckCollisionCircles => :bool,
1904
+ :CheckCollisionCircleRec => :bool,
1905
+ :CheckCollisionPointRec => :bool,
1906
+ :CheckCollisionPointCircle => :bool,
1907
+ :CheckCollisionPointTriangle => :bool,
1908
+ :CheckCollisionLines => :bool,
1909
+ :CheckCollisionPointLine => :bool,
1910
+ :GetCollisionRec => Rectangle.by_value,
1911
+ :LoadImage => Image.by_value,
1912
+ :LoadImageRaw => Image.by_value,
1913
+ :LoadImageAnim => Image.by_value,
1914
+ :LoadImageFromMemory => Image.by_value,
1915
+ :LoadImageFromTexture => Image.by_value,
1916
+ :LoadImageFromScreen => Image.by_value,
1917
+ :UnloadImage => :void,
1918
+ :ExportImage => :bool,
1919
+ :ExportImageAsCode => :bool,
1920
+ :GenImageColor => Image.by_value,
1921
+ :GenImageGradientV => Image.by_value,
1922
+ :GenImageGradientH => Image.by_value,
1923
+ :GenImageGradientRadial => Image.by_value,
1924
+ :GenImageChecked => Image.by_value,
1925
+ :GenImageWhiteNoise => Image.by_value,
1926
+ :GenImageCellular => Image.by_value,
1927
+ :ImageCopy => Image.by_value,
1928
+ :ImageFromImage => Image.by_value,
1929
+ :ImageText => Image.by_value,
1930
+ :ImageTextEx => Image.by_value,
1931
+ :ImageFormat => :void,
1932
+ :ImageToPOT => :void,
1933
+ :ImageCrop => :void,
1934
+ :ImageAlphaCrop => :void,
1935
+ :ImageAlphaClear => :void,
1936
+ :ImageAlphaMask => :void,
1937
+ :ImageAlphaPremultiply => :void,
1938
+ :ImageResize => :void,
1939
+ :ImageResizeNN => :void,
1940
+ :ImageResizeCanvas => :void,
1941
+ :ImageMipmaps => :void,
1942
+ :ImageDither => :void,
1943
+ :ImageFlipVertical => :void,
1944
+ :ImageFlipHorizontal => :void,
1945
+ :ImageRotateCW => :void,
1946
+ :ImageRotateCCW => :void,
1947
+ :ImageColorTint => :void,
1948
+ :ImageColorInvert => :void,
1949
+ :ImageColorGrayscale => :void,
1950
+ :ImageColorContrast => :void,
1951
+ :ImageColorBrightness => :void,
1952
+ :ImageColorReplace => :void,
1953
+ :LoadImageColors => :pointer,
1954
+ :LoadImagePalette => :pointer,
1955
+ :UnloadImageColors => :void,
1956
+ :UnloadImagePalette => :void,
1957
+ :GetImageAlphaBorder => Rectangle.by_value,
1958
+ :GetImageColor => Color.by_value,
1959
+ :ImageClearBackground => :void,
1960
+ :ImageDrawPixel => :void,
1961
+ :ImageDrawPixelV => :void,
1962
+ :ImageDrawLine => :void,
1963
+ :ImageDrawLineV => :void,
1964
+ :ImageDrawCircle => :void,
1965
+ :ImageDrawCircleV => :void,
1966
+ :ImageDrawRectangle => :void,
1967
+ :ImageDrawRectangleV => :void,
1968
+ :ImageDrawRectangleRec => :void,
1969
+ :ImageDrawRectangleLines => :void,
1970
+ :ImageDraw => :void,
1971
+ :ImageDrawText => :void,
1972
+ :ImageDrawTextEx => :void,
1973
+ :LoadTexture => Texture2D.by_value,
1974
+ :LoadTextureFromImage => Texture2D.by_value,
1975
+ :LoadTextureCubemap => TextureCubemap.by_value,
1976
+ :LoadRenderTexture => RenderTexture2D.by_value,
1977
+ :UnloadTexture => :void,
1978
+ :UnloadRenderTexture => :void,
1979
+ :UpdateTexture => :void,
1980
+ :UpdateTextureRec => :void,
1981
+ :GenTextureMipmaps => :void,
1982
+ :SetTextureFilter => :void,
1983
+ :SetTextureWrap => :void,
1984
+ :DrawTexture => :void,
1985
+ :DrawTextureV => :void,
1986
+ :DrawTextureEx => :void,
1987
+ :DrawTextureRec => :void,
1988
+ :DrawTextureQuad => :void,
1989
+ :DrawTextureTiled => :void,
1990
+ :DrawTexturePro => :void,
1991
+ :DrawTextureNPatch => :void,
1992
+ :DrawTexturePoly => :void,
1993
+ :Fade => Color.by_value,
1994
+ :ColorToInt => :int,
1995
+ :ColorNormalize => Vector4.by_value,
1996
+ :ColorFromNormalized => Color.by_value,
1997
+ :ColorToHSV => Vector3.by_value,
1998
+ :ColorFromHSV => Color.by_value,
1999
+ :ColorAlpha => Color.by_value,
2000
+ :ColorAlphaBlend => Color.by_value,
2001
+ :GetColor => Color.by_value,
2002
+ :GetPixelColor => Color.by_value,
2003
+ :SetPixelColor => :void,
2004
+ :GetPixelDataSize => :int,
2005
+ :GetFontDefault => Font.by_value,
2006
+ :LoadFont => Font.by_value,
2007
+ :LoadFontEx => Font.by_value,
2008
+ :LoadFontFromImage => Font.by_value,
2009
+ :LoadFontFromMemory => Font.by_value,
2010
+ :LoadFontData => :pointer,
2011
+ :GenImageFontAtlas => Image.by_value,
2012
+ :UnloadFontData => :void,
2013
+ :UnloadFont => :void,
2014
+ :ExportFontAsCode => :bool,
2015
+ :DrawFPS => :void,
2016
+ :DrawText => :void,
2017
+ :DrawTextEx => :void,
2018
+ :DrawTextPro => :void,
2019
+ :DrawTextCodepoint => :void,
2020
+ :DrawTextCodepoints => :void,
2021
+ :MeasureText => :int,
2022
+ :MeasureTextEx => Vector2.by_value,
2023
+ :GetGlyphIndex => :int,
2024
+ :GetGlyphInfo => GlyphInfo.by_value,
2025
+ :GetGlyphAtlasRec => Rectangle.by_value,
2026
+ :LoadCodepoints => :pointer,
2027
+ :UnloadCodepoints => :void,
2028
+ :GetCodepointCount => :int,
2029
+ :GetCodepoint => :int,
2030
+ :CodepointToUTF8 => :pointer,
2031
+ :TextCodepointsToUTF8 => :pointer,
2032
+ :TextCopy => :int,
2033
+ :TextIsEqual => :bool,
2034
+ :TextLength => :uint,
2035
+ :TextFormat => :pointer,
2036
+ :TextSubtext => :pointer,
2037
+ :TextReplace => :pointer,
2038
+ :TextInsert => :pointer,
2039
+ :TextJoin => :pointer,
2040
+ :TextSplit => :pointer,
2041
+ :TextAppend => :void,
2042
+ :TextFindIndex => :int,
2043
+ :TextToUpper => :pointer,
2044
+ :TextToLower => :pointer,
2045
+ :TextToPascal => :pointer,
2046
+ :TextToInteger => :int,
2047
+ :DrawLine3D => :void,
2048
+ :DrawPoint3D => :void,
2049
+ :DrawCircle3D => :void,
2050
+ :DrawTriangle3D => :void,
2051
+ :DrawTriangleStrip3D => :void,
2052
+ :DrawCube => :void,
2053
+ :DrawCubeV => :void,
2054
+ :DrawCubeWires => :void,
2055
+ :DrawCubeWiresV => :void,
2056
+ :DrawCubeTexture => :void,
2057
+ :DrawCubeTextureRec => :void,
2058
+ :DrawSphere => :void,
2059
+ :DrawSphereEx => :void,
2060
+ :DrawSphereWires => :void,
2061
+ :DrawCylinder => :void,
2062
+ :DrawCylinderEx => :void,
2063
+ :DrawCylinderWires => :void,
2064
+ :DrawCylinderWiresEx => :void,
2065
+ :DrawPlane => :void,
2066
+ :DrawRay => :void,
2067
+ :DrawGrid => :void,
2068
+ :LoadModel => Model.by_value,
2069
+ :LoadModelFromMesh => Model.by_value,
2070
+ :UnloadModel => :void,
2071
+ :UnloadModelKeepMeshes => :void,
2072
+ :GetModelBoundingBox => BoundingBox.by_value,
2073
+ :DrawModel => :void,
2074
+ :DrawModelEx => :void,
2075
+ :DrawModelWires => :void,
2076
+ :DrawModelWiresEx => :void,
2077
+ :DrawBoundingBox => :void,
2078
+ :DrawBillboard => :void,
2079
+ :DrawBillboardRec => :void,
2080
+ :DrawBillboardPro => :void,
2081
+ :UploadMesh => :void,
2082
+ :UpdateMeshBuffer => :void,
2083
+ :UnloadMesh => :void,
2084
+ :DrawMesh => :void,
2085
+ :DrawMeshInstanced => :void,
2086
+ :ExportMesh => :bool,
2087
+ :GetMeshBoundingBox => BoundingBox.by_value,
2088
+ :GenMeshTangents => :void,
2089
+ :GenMeshBinormals => :void,
2090
+ :GenMeshPoly => Mesh.by_value,
2091
+ :GenMeshPlane => Mesh.by_value,
2092
+ :GenMeshCube => Mesh.by_value,
2093
+ :GenMeshSphere => Mesh.by_value,
2094
+ :GenMeshHemiSphere => Mesh.by_value,
2095
+ :GenMeshCylinder => Mesh.by_value,
2096
+ :GenMeshCone => Mesh.by_value,
2097
+ :GenMeshTorus => Mesh.by_value,
2098
+ :GenMeshKnot => Mesh.by_value,
2099
+ :GenMeshHeightmap => Mesh.by_value,
2100
+ :GenMeshCubicmap => Mesh.by_value,
2101
+ :LoadMaterials => :pointer,
2102
+ :LoadMaterialDefault => Material.by_value,
2103
+ :UnloadMaterial => :void,
2104
+ :SetMaterialTexture => :void,
2105
+ :SetModelMeshMaterial => :void,
2106
+ :LoadModelAnimations => :pointer,
2107
+ :UpdateModelAnimation => :void,
2108
+ :UnloadModelAnimation => :void,
2109
+ :UnloadModelAnimations => :void,
2110
+ :IsModelAnimationValid => :bool,
2111
+ :CheckCollisionSpheres => :bool,
2112
+ :CheckCollisionBoxes => :bool,
2113
+ :CheckCollisionBoxSphere => :bool,
2114
+ :GetRayCollisionSphere => RayCollision.by_value,
2115
+ :GetRayCollisionBox => RayCollision.by_value,
2116
+ :GetRayCollisionMesh => RayCollision.by_value,
2117
+ :GetRayCollisionTriangle => RayCollision.by_value,
2118
+ :GetRayCollisionQuad => RayCollision.by_value,
2119
+ :InitAudioDevice => :void,
2120
+ :CloseAudioDevice => :void,
2121
+ :IsAudioDeviceReady => :bool,
2122
+ :SetMasterVolume => :void,
2123
+ :LoadWave => Wave.by_value,
2124
+ :LoadWaveFromMemory => Wave.by_value,
2125
+ :LoadSound => Sound.by_value,
2126
+ :LoadSoundFromWave => Sound.by_value,
2127
+ :UpdateSound => :void,
2128
+ :UnloadWave => :void,
2129
+ :UnloadSound => :void,
2130
+ :ExportWave => :bool,
2131
+ :ExportWaveAsCode => :bool,
2132
+ :PlaySound => :void,
2133
+ :StopSound => :void,
2134
+ :PauseSound => :void,
2135
+ :ResumeSound => :void,
2136
+ :PlaySoundMulti => :void,
2137
+ :StopSoundMulti => :void,
2138
+ :GetSoundsPlaying => :int,
2139
+ :IsSoundPlaying => :bool,
2140
+ :SetSoundVolume => :void,
2141
+ :SetSoundPitch => :void,
2142
+ :SetSoundPan => :void,
2143
+ :WaveCopy => Wave.by_value,
2144
+ :WaveCrop => :void,
2145
+ :WaveFormat => :void,
2146
+ :LoadWaveSamples => :pointer,
2147
+ :UnloadWaveSamples => :void,
2148
+ :LoadMusicStream => Music.by_value,
2149
+ :LoadMusicStreamFromMemory => Music.by_value,
2150
+ :UnloadMusicStream => :void,
2151
+ :PlayMusicStream => :void,
2152
+ :IsMusicStreamPlaying => :bool,
2153
+ :UpdateMusicStream => :void,
2154
+ :StopMusicStream => :void,
2155
+ :PauseMusicStream => :void,
2156
+ :ResumeMusicStream => :void,
2157
+ :SeekMusicStream => :void,
2158
+ :SetMusicVolume => :void,
2159
+ :SetMusicPitch => :void,
2160
+ :SetMusicPan => :void,
2161
+ :GetMusicTimeLength => :float,
2162
+ :GetMusicTimePlayed => :float,
2163
+ :LoadAudioStream => AudioStream.by_value,
2164
+ :UnloadAudioStream => :void,
2165
+ :UpdateAudioStream => :void,
2166
+ :IsAudioStreamProcessed => :bool,
2167
+ :PlayAudioStream => :void,
2168
+ :PauseAudioStream => :void,
2169
+ :ResumeAudioStream => :void,
2170
+ :IsAudioStreamPlaying => :bool,
2171
+ :StopAudioStream => :void,
2172
+ :SetAudioStreamVolume => :void,
2173
+ :SetAudioStreamPitch => :void,
2174
+ :SetAudioStreamPan => :void,
2175
+ :SetAudioStreamBufferSizeDefault => :void,
2176
+ :SetAudioStreamCallback => :void,
2177
+ :AttachAudioStreamProcessor => :void,
2178
+ :DetachAudioStreamProcessor => :void,
2179
+ }
2180
+ symbols.each do |sym|
2181
+ begin
2182
+ attach_function sym, args[sym], retvals[sym]
2183
+ rescue FFI::NotFoundError => error
2184
+ $stderr.puts("[Warning] Failed to import #{sym} (#{error}).")
2185
+ end
2186
+ end
2187
+ end
2188
+
2189
+ end
2190
+