/
Bindings.rakumod
1434 lines (1432 loc) · 114 KB
/
Bindings.rakumod
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# This Raku module is generated from raylib.h
unit module Raylib::Bindings:ver<0.0.17>:auth<zef:vushu>;
use NativeCall;
constant LIBRAYLIB = %?RESOURCES<libraries/raylib>;
class Vector2 is export is repr('CStruct') is rw {
has num32 $.x;
has num32 $.y;
method init(num32 $x,num32 $y) returns Vector2 {
malloc-Vector2($x,$y);
}
submethod DESTROY {
free-Vector2(self);
}
}
class Vector3 is export is repr('CStruct') is rw {
has num32 $.x;
has num32 $.y;
has num32 $.z;
method init(num32 $x,num32 $y,num32 $z) returns Vector3 {
malloc-Vector3($x,$y,$z);
}
submethod DESTROY {
free-Vector3(self);
}
}
class Vector4 is export is repr('CStruct') is rw {
has num32 $.x;
has num32 $.y;
has num32 $.z;
has num32 $.w;
method init(num32 $x,num32 $y,num32 $z,num32 $w) returns Vector4 {
malloc-Vector4($x,$y,$z,$w);
}
submethod DESTROY {
free-Vector4(self);
}
}
class Quaternion is Vector4 is export is repr('CStruct') {}
class Matrix is export is repr('CStruct') is rw {
has num32 $.m0;
has num32 $.m4;
has num32 $.m8;
has num32 $.m12;
has num32 $.m1;
has num32 $.m5;
has num32 $.m9;
has num32 $.m13;
has num32 $.m2;
has num32 $.m6;
has num32 $.m10;
has num32 $.m14;
has num32 $.m3;
has num32 $.m7;
has num32 $.m11;
has num32 $.m15;
method init(num32 $m0,num32 $m4,num32 $m8,num32 $m12,num32 $m1,num32 $m5,num32 $m9,num32 $m13,num32 $m2,num32 $m6,num32 $m10,num32 $m14,num32 $m3,num32 $m7,num32 $m11,num32 $m15) returns Matrix {
malloc-Matrix($m0,$m4,$m8,$m12,$m1,$m5,$m9,$m13,$m2,$m6,$m10,$m14,$m3,$m7,$m11,$m15);
}
submethod DESTROY {
free-Matrix(self);
}
}
class Color is export is repr('CStruct') is rw {
has uint8 $.r;
has uint8 $.g;
has uint8 $.b;
has uint8 $.a;
method init(uint8 $r,uint8 $g,uint8 $b,uint8 $a) returns Color {
malloc-Color($r,$g,$b,$a);
}
submethod DESTROY {
free-Color(self);
}
}
class Rectangle is export is repr('CStruct') is rw {
has num32 $.x;
has num32 $.y;
has num32 $.width;
has num32 $.height;
method init(num32 $x,num32 $y,num32 $width,num32 $height) returns Rectangle {
malloc-Rectangle($x,$y,$width,$height);
}
submethod DESTROY {
free-Rectangle(self);
}
}
class Image is export is repr('CStruct') is rw {
has Pointer[void] $.data;
has int32 $.width;
has int32 $.height;
has int32 $.mipmaps;
has int32 $.format;
method init(void $data,int32 $width,int32 $height,int32 $mipmaps,int32 $format) returns Image {
malloc-Image($data,$width,$height,$mipmaps,$format);
}
submethod DESTROY {
free-Image(self);
}
}
class Texture is export is repr('CStruct') is rw {
has uint32 $.id;
has int32 $.width;
has int32 $.height;
has int32 $.mipmaps;
has int32 $.format;
method init(int32 $id,int32 $width,int32 $height,int32 $mipmaps,int32 $format) returns Texture {
malloc-Texture($id,$width,$height,$mipmaps,$format);
}
submethod DESTROY {
free-Texture(self);
}
}
class Texture2D is Texture is export is repr('CStruct') {}
class TextureCubemap is Texture is export is repr('CStruct') {}
class RenderTexture is export is repr('CStruct') is rw {
has uint32 $.id;
HAS Texture $.texture;
HAS Texture $.depth;
method init(int32 $id,Texture $texture,Texture $depth) returns RenderTexture {
malloc-RenderTexture($id,$texture,$depth);
}
submethod DESTROY {
free-RenderTexture(self);
}
}
class RenderTexture2D is RenderTexture is export is repr('CStruct') {}
class NPatchInfo is export is repr('CStruct') is rw {
HAS Rectangle $.source;
has int32 $.left;
has int32 $.top;
has int32 $.right;
has int32 $.bottom;
has int32 $.layout;
method init(Rectangle $source,int32 $left,int32 $top,int32 $right,int32 $bottom,int32 $layout) returns NPatchInfo {
malloc-NPatchInfo($source,$left,$top,$right,$bottom,$layout);
}
submethod DESTROY {
free-NPatchInfo(self);
}
}
class GlyphInfo is export is repr('CStruct') is rw {
has int32 $.value;
has int32 $.offsetX;
has int32 $.offsetY;
has int32 $.advanceX;
HAS Image $.image;
method init(int32 $value,int32 $offsetX,int32 $offsetY,int32 $advanceX,Image $image) returns GlyphInfo {
malloc-GlyphInfo($value,$offsetX,$offsetY,$advanceX,$image);
}
submethod DESTROY {
free-GlyphInfo(self);
}
}
class Font is export is repr('CStruct') is rw {
has int32 $.baseSize;
has int32 $.glyphCount;
has int32 $.glyphPadding;
HAS Texture2D $.texture;
has Pointer[Rectangle] $.recs;
has Pointer[GlyphInfo] $.glyphs;
method init(int32 $baseSize,int32 $glyphCount,int32 $glyphPadding,Texture2D $texture,Pointer[Rectangle] $recs,Pointer[GlyphInfo] $glyphs) returns Font {
malloc-Font($baseSize,$glyphCount,$glyphPadding,$texture,$recs,$glyphs);
}
submethod DESTROY {
free-Font(self);
}
}
class Camera3D is export is repr('CStruct') is rw {
HAS Vector3 $.position;
HAS Vector3 $.target;
HAS Vector3 $.up;
has num32 $.fovy;
has int32 $.projection;
method init(Vector3 $position,Vector3 $target,Vector3 $up,num32 $fovy,int32 $projection) returns Camera3D {
malloc-Camera3D($position,$target,$up,$fovy,$projection);
}
submethod DESTROY {
free-Camera3D(self);
}
}
class Camera is Camera3D is export is repr('CStruct') {}
class Camera2D is export is repr('CStruct') is rw {
HAS Vector2 $.offset;
HAS Vector2 $.target;
has num32 $.rotation;
has num32 $.zoom;
method init(Vector2 $offset,Vector2 $target,num32 $rotation,num32 $zoom) returns Camera2D {
malloc-Camera2D($offset,$target,$rotation,$zoom);
}
submethod DESTROY {
free-Camera2D(self);
}
}
class Mesh is export is repr('CStruct') is rw {
has int32 $.vertexCount;
has int32 $.triangleCount;
has num32 $.vertices is rw;
has num32 $.texcoords is rw;
has num32 $.texcoords2 is rw;
has num32 $.normals is rw;
has num32 $.tangents is rw;
has uint8 $.colors is rw;
has uint16 $.indices is rw;
has num32 $.animVertices is rw;
has num32 $.animNormals is rw;
has uint8 $.boneIds is rw;
has num32 $.boneWeights is rw;
has uint32 $.vaoId;
has uint32 $.vboId is rw;
method init(int32 $vertexCount,int32 $triangleCount,num32 $vertices,num32 $texcoords,num32 $texcoords2,num32 $normals,num32 $tangents,uint8 $colors,int16 $indices,num32 $animVertices,num32 $animNormals,uint8 $boneIds,num32 $boneWeights,int32 $vaoId,int32 $vboId) returns Mesh {
malloc-Mesh($vertexCount,$triangleCount,$vertices,$texcoords,$texcoords2,$normals,$tangents,$colors,$indices,$animVertices,$animNormals,$boneIds,$boneWeights,$vaoId,$vboId);
}
submethod DESTROY {
free-Mesh(self);
}
}
class Shader is export is repr('CStruct') is rw {
has uint32 $.id;
has int32 $.locs is rw;
method init(int32 $id,int32 $locs) returns Shader {
malloc-Shader($id,$locs);
}
submethod DESTROY {
free-Shader(self);
}
}
class MaterialMap is export is repr('CStruct') is rw {
HAS Texture2D $.texture;
HAS Color $.color;
has num32 $.value;
method init(Texture2D $texture,Color $color,num32 $value) returns MaterialMap {
malloc-MaterialMap($texture,$color,$value);
}
submethod DESTROY {
free-MaterialMap(self);
}
}
class Material is export is repr('CStruct') is rw {
HAS Shader $.shader;
has Pointer[MaterialMap] $.maps;
has CArray[num32] $.params is rw;
method init(Shader $shader,Pointer[MaterialMap] $maps,CArray[num32] $params) returns Material {
malloc-Material($shader,$maps,$params);
}
submethod DESTROY {
free-Material(self);
}
}
class Transform is export is repr('CStruct') is rw {
HAS Vector3 $.translation;
HAS Quaternion $.rotation;
HAS Vector3 $.scale;
method init(Vector3 $translation,Quaternion $rotation,Vector3 $scale) returns Transform {
malloc-Transform($translation,$rotation,$scale);
}
submethod DESTROY {
free-Transform(self);
}
}
class BoneInfo is export is repr('CStruct') is rw {
has uint8 @.name[32] is CArray;
has int32 $.parent;
method init(Str $name,int32 $parent) returns BoneInfo {
malloc-BoneInfo($name,$parent);
}
submethod DESTROY {
free-BoneInfo(self);
}
}
class Model is export is repr('CStruct') is rw {
HAS Matrix $.transform;
has int32 $.meshCount;
has int32 $.materialCount;
has Pointer[Mesh] $.meshes;
has Pointer[Material] $.materials;
has int32 $.meshMaterial is rw;
has int32 $.boneCount;
has Pointer[BoneInfo] $.bones;
has Pointer[Transform] $.bindPose;
method init(Matrix $transform,int32 $meshCount,int32 $materialCount,Pointer[Mesh] $meshes,Pointer[Material] $materials,int32 $meshMaterial,int32 $boneCount,Pointer[BoneInfo] $bones,Pointer[Transform] $bindPose) returns Model {
malloc-Model($transform,$meshCount,$materialCount,$meshes,$materials,$meshMaterial,$boneCount,$bones,$bindPose);
}
submethod DESTROY {
free-Model(self);
}
}
class ModelAnimation is export is repr('CStruct') is rw {
has int32 $.boneCount;
has int32 $.frameCount;
has Pointer[BoneInfo] $.bones;
has Pointer $.framePoses;
has uint8 @.name[32] is CArray;
method init(int32 $boneCount,int32 $frameCount,Pointer[BoneInfo] $bones,Pointer $framePoses,Str $name) returns ModelAnimation {
malloc-ModelAnimation($boneCount,$frameCount,$bones,$framePoses,$name);
}
submethod DESTROY {
free-ModelAnimation(self);
}
}
class Ray is export is repr('CStruct') is rw {
HAS Vector3 $.position;
HAS Vector3 $.direction;
method init(Vector3 $position,Vector3 $direction) returns Ray {
malloc-Ray($position,$direction);
}
submethod DESTROY {
free-Ray(self);
}
}
class RayCollision is export is repr('CStruct') is rw {
has bool $.hit;
has num32 $.distance;
HAS Vector3 $.point;
HAS Vector3 $.normal;
method init(bool $hit,num32 $distance,Vector3 $point,Vector3 $normal) returns RayCollision {
malloc-RayCollision($hit,$distance,$point,$normal);
}
submethod DESTROY {
free-RayCollision(self);
}
}
class BoundingBox is export is repr('CStruct') is rw {
HAS Vector3 $.min;
HAS Vector3 $.max;
method init(Vector3 $min,Vector3 $max) returns BoundingBox {
malloc-BoundingBox($min,$max);
}
submethod DESTROY {
free-BoundingBox(self);
}
}
class Wave is export is repr('CStruct') is rw {
has uint32 $.frameCount;
has uint32 $.sampleRate;
has uint32 $.sampleSize;
has uint32 $.channels;
has Pointer[void] $.data;
method init(int32 $frameCount,int32 $sampleRate,int32 $sampleSize,int32 $channels,void $data) returns Wave {
malloc-Wave($frameCount,$sampleRate,$sampleSize,$channels,$data);
}
submethod DESTROY {
free-Wave(self);
}
}
class rAudioBuffer is export is repr('CStruct') { has int32 $.dummy;}
class rAudioProcessor is export is repr('CStruct') { has int32 $.dummy;}
class AudioStream is export is repr('CStruct') is rw {
has Pointer[rAudioBuffer] $.buffer;
has Pointer[rAudioProcessor] $.processor;
has uint32 $.sampleRate;
has uint32 $.sampleSize;
has uint32 $.channels;
}
class Sound is export is repr('CStruct') is rw {
HAS AudioStream $.stream;
has uint32 $.frameCount;
method init(AudioStream $stream,int32 $frameCount) returns Sound {
malloc-Sound($stream,$frameCount);
}
submethod DESTROY {
free-Sound(self);
}
}
class Music is export is repr('CStruct') is rw {
HAS AudioStream $.stream;
has uint32 $.frameCount;
has bool $.looping;
has int32 $.ctxType;
has Pointer[void] $.ctxData;
method init(AudioStream $stream,int32 $frameCount,bool $looping,int32 $ctxType,void $ctxData) returns Music {
malloc-Music($stream,$frameCount,$looping,$ctxType,$ctxData);
}
submethod DESTROY {
free-Music(self);
}
}
class VrDeviceInfo is export is repr('CStruct') is rw {
has int32 $.hResolution;
has int32 $.vResolution;
has num32 $.hScreenSize;
has num32 $.vScreenSize;
has num32 $.eyeToScreenDistance;
has num32 $.lensSeparationDistance;
has num32 $.interpupillaryDistance;
has CArray[num32] $.lensDistortionValues is rw;
has CArray[num32] $.chromaAbCorrection is rw;
method init(int32 $hResolution,int32 $vResolution,num32 $hScreenSize,num32 $vScreenSize,num32 $eyeToScreenDistance,num32 $lensSeparationDistance,num32 $interpupillaryDistance,CArray[num32] $lensDistortionValues,CArray[num32] $chromaAbCorrection) returns VrDeviceInfo {
malloc-VrDeviceInfo($hResolution,$vResolution,$hScreenSize,$vScreenSize,$eyeToScreenDistance,$lensSeparationDistance,$interpupillaryDistance,$lensDistortionValues,$chromaAbCorrection);
}
submethod DESTROY {
free-VrDeviceInfo(self);
}
}
class VrStereoConfig is export is repr('CStruct') is rw {
has CArray[Matrix] $.projection is rw;
has CArray[Matrix] $.viewOffset is rw;
has CArray[num32] $.leftLensCenter is rw;
has CArray[num32] $.rightLensCenter is rw;
has CArray[num32] $.leftScreenCenter is rw;
has CArray[num32] $.rightScreenCenter is rw;
has CArray[num32] $.scale is rw;
has CArray[num32] $.scaleIn is rw;
method init(CArray[Matrix] $projection,CArray[Matrix] $viewOffset,CArray[num32] $leftLensCenter,CArray[num32] $rightLensCenter,CArray[num32] $leftScreenCenter,CArray[num32] $rightScreenCenter,CArray[num32] $scale,CArray[num32] $scaleIn) returns VrStereoConfig {
malloc-VrStereoConfig($projection,$viewOffset,$leftLensCenter,$rightLensCenter,$leftScreenCenter,$rightScreenCenter,$scale,$scaleIn);
}
submethod DESTROY {
free-VrStereoConfig(self);
}
}
class FilePathList is export is repr('CStruct') is rw {
has uint32 $.capacity;
has uint32 $.count;
has Str $.paths is rw;
method init(int32 $capacity,int32 $count,Str $paths) returns FilePathList {
malloc-FilePathList($capacity,$count,$paths);
}
submethod DESTROY {
free-FilePathList(self);
}
}
class AutomationEvent is export is repr('CStruct') is rw {
has uint32 $.frame;
has uint32 $.type;
has CArray[int32] $.params is rw;
method init(int32 $frame,int32 $type,CArray[int32] $params) returns AutomationEvent {
malloc-AutomationEvent($frame,$type,$params);
}
submethod DESTROY {
free-AutomationEvent(self);
}
}
class AutomationEventList is export is repr('CStruct') is rw {
has uint32 $.capacity;
has uint32 $.count;
has Pointer[AutomationEvent] $.events;
method init(int32 $capacity,int32 $count,Pointer[AutomationEvent] $events) returns AutomationEventList {
malloc-AutomationEventList($capacity,$count,$events);
}
submethod DESTROY {
free-AutomationEventList(self);
}
}
enum ConfigFlags is export (
FLAG_VSYNC_HINT => 0x00000040,
FLAG_FULLSCREEN_MODE => 0x00000002,
FLAG_WINDOW_RESIZABLE => 0x00000004,
FLAG_WINDOW_UNDECORATED => 0x00000008,
FLAG_WINDOW_HIDDEN => 0x00000080,
FLAG_WINDOW_MINIMIZED => 0x00000200,
FLAG_WINDOW_MAXIMIZED => 0x00000400,
FLAG_WINDOW_UNFOCUSED => 0x00000800,
FLAG_WINDOW_TOPMOST => 0x00001000,
FLAG_WINDOW_ALWAYS_RUN => 0x00000100,
FLAG_WINDOW_TRANSPARENT => 0x00000010,
FLAG_WINDOW_HIGHDPI => 0x00002000,
FLAG_WINDOW_MOUSE_PASSTHROUGH => 0x00004000,
FLAG_BORDERLESS_WINDOWED_MODE => 0x00008000,
FLAG_MSAA_4X_HINT => 0x00000020,
FLAG_INTERLACED_HINT => 0x00010000,
);
enum TraceLogLevel is export (
LOG_ALL => 0,
LOG_TRACE => 1,
LOG_DEBUG => 2,
LOG_INFO => 3,
LOG_WARNING => 4,
LOG_ERROR => 5,
LOG_FATAL => 6,
LOG_NONE => 7,
);
enum KeyboardKey is export (
KEY_NULL => 0,
KEY_APOSTROPHE => 39,
KEY_COMMA => 44,
KEY_MINUS => 45,
KEY_PERIOD => 46,
KEY_SLASH => 47,
KEY_ZERO => 48,
KEY_ONE => 49,
KEY_TWO => 50,
KEY_THREE => 51,
KEY_FOUR => 52,
KEY_FIVE => 53,
KEY_SIX => 54,
KEY_SEVEN => 55,
KEY_EIGHT => 56,
KEY_NINE => 57,
KEY_SEMICOLON => 59,
KEY_EQUAL => 61,
KEY_A => 65,
KEY_B => 66,
KEY_C => 67,
KEY_D => 68,
KEY_E => 69,
KEY_F => 70,
KEY_G => 71,
KEY_H => 72,
KEY_I => 73,
KEY_J => 74,
KEY_K => 75,
KEY_L => 76,
KEY_M => 77,
KEY_N => 78,
KEY_O => 79,
KEY_P => 80,
KEY_Q => 81,
KEY_R => 82,
KEY_S => 83,
KEY_T => 84,
KEY_U => 85,
KEY_V => 86,
KEY_W => 87,
KEY_X => 88,
KEY_Y => 89,
KEY_Z => 90,
KEY_LEFT_BRACKET => 91,
KEY_BACKSLASH => 92,
KEY_RIGHT_BRACKET => 93,
KEY_GRAVE => 96,
KEY_SPACE => 32,
KEY_ESCAPE => 256,
KEY_ENTER => 257,
KEY_TAB => 258,
KEY_BACKSPACE => 259,
KEY_INSERT => 260,
KEY_DELETE => 261,
KEY_RIGHT => 262,
KEY_LEFT => 263,
KEY_DOWN => 264,
KEY_UP => 265,
KEY_PAGE_UP => 266,
KEY_PAGE_DOWN => 267,
KEY_HOME => 268,
KEY_END => 269,
KEY_CAPS_LOCK => 280,
KEY_SCROLL_LOCK => 281,
KEY_NUM_LOCK => 282,
KEY_PRINT_SCREEN => 283,
KEY_PAUSE => 284,
KEY_F1 => 290,
KEY_F2 => 291,
KEY_F3 => 292,
KEY_F4 => 293,
KEY_F5 => 294,
KEY_F6 => 295,
KEY_F7 => 296,
KEY_F8 => 297,
KEY_F9 => 298,
KEY_F10 => 299,
KEY_F11 => 300,
KEY_F12 => 301,
KEY_LEFT_SHIFT => 340,
KEY_LEFT_CONTROL => 341,
KEY_LEFT_ALT => 342,
KEY_LEFT_SUPER => 343,
KEY_RIGHT_SHIFT => 344,
KEY_RIGHT_CONTROL => 345,
KEY_RIGHT_ALT => 346,
KEY_RIGHT_SUPER => 347,
KEY_KB_MENU => 348,
KEY_KP_0 => 320,
KEY_KP_1 => 321,
KEY_KP_2 => 322,
KEY_KP_3 => 323,
KEY_KP_4 => 324,
KEY_KP_5 => 325,
KEY_KP_6 => 326,
KEY_KP_7 => 327,
KEY_KP_8 => 328,
KEY_KP_9 => 329,
KEY_KP_DECIMAL => 330,
KEY_KP_DIVIDE => 331,
KEY_KP_MULTIPLY => 332,
KEY_KP_SUBTRACT => 333,
KEY_KP_ADD => 334,
KEY_KP_ENTER => 335,
KEY_KP_EQUAL => 336,
KEY_BACK => 4,
KEY_MENU => 82,
KEY_VOLUME_UP => 24,
KEY_VOLUME_DOWN => 25,
);
enum MouseButton is export (
MOUSE_BUTTON_LEFT => 0,
MOUSE_BUTTON_RIGHT => 1,
MOUSE_BUTTON_MIDDLE => 2,
MOUSE_BUTTON_SIDE => 3,
MOUSE_BUTTON_EXTRA => 4,
MOUSE_BUTTON_FORWARD => 5,
MOUSE_BUTTON_BACK => 6,
);
enum MouseCursor is export (
MOUSE_CURSOR_DEFAULT => 0,
MOUSE_CURSOR_ARROW => 1,
MOUSE_CURSOR_IBEAM => 2,
MOUSE_CURSOR_CROSSHAIR => 3,
MOUSE_CURSOR_POINTING_HAND => 4,
MOUSE_CURSOR_RESIZE_EW => 5,
MOUSE_CURSOR_RESIZE_NS => 6,
MOUSE_CURSOR_RESIZE_NWSE => 7,
MOUSE_CURSOR_RESIZE_NESW => 8,
MOUSE_CURSOR_RESIZE_ALL => 9,
MOUSE_CURSOR_NOT_ALLOWED => 10,
);
enum GamepadButton is export (
GAMEPAD_BUTTON_UNKNOWN => 0,
GAMEPAD_BUTTON_LEFT_FACE_UP => 1,
GAMEPAD_BUTTON_LEFT_FACE_RIGHT => 2,
GAMEPAD_BUTTON_LEFT_FACE_DOWN => 3,
GAMEPAD_BUTTON_LEFT_FACE_LEFT => 4,
GAMEPAD_BUTTON_RIGHT_FACE_UP => 5,
GAMEPAD_BUTTON_RIGHT_FACE_RIGHT => 6,
GAMEPAD_BUTTON_RIGHT_FACE_DOWN => 7,
GAMEPAD_BUTTON_RIGHT_FACE_LEFT => 8,
GAMEPAD_BUTTON_LEFT_TRIGGER_1 => 9,
GAMEPAD_BUTTON_LEFT_TRIGGER_2 => 10,
GAMEPAD_BUTTON_RIGHT_TRIGGER_1 => 11,
GAMEPAD_BUTTON_RIGHT_TRIGGER_2 => 12,
GAMEPAD_BUTTON_MIDDLE_LEFT => 13,
GAMEPAD_BUTTON_MIDDLE => 14,
GAMEPAD_BUTTON_MIDDLE_RIGHT => 15,
GAMEPAD_BUTTON_LEFT_THUMB => 16,
GAMEPAD_BUTTON_RIGHT_THUMB => 17,
);
enum GamepadAxis is export (
GAMEPAD_AXIS_LEFT_X => 0,
GAMEPAD_AXIS_LEFT_Y => 1,
GAMEPAD_AXIS_RIGHT_X => 2,
GAMEPAD_AXIS_RIGHT_Y => 3,
GAMEPAD_AXIS_LEFT_TRIGGER => 4,
GAMEPAD_AXIS_RIGHT_TRIGGER => 5,
);
enum MaterialMapIndex is export (
MATERIAL_MAP_ALBEDO => 0,
MATERIAL_MAP_METALNESS => 1,
MATERIAL_MAP_NORMAL => 2,
MATERIAL_MAP_ROUGHNESS => 3,
MATERIAL_MAP_OCCLUSION => 4,
MATERIAL_MAP_EMISSION => 5,
MATERIAL_MAP_HEIGHT => 6,
MATERIAL_MAP_CUBEMAP => 7,
MATERIAL_MAP_IRRADIANCE => 8,
MATERIAL_MAP_PREFILTER => 9,
MATERIAL_MAP_BRDF => 10,
);
enum ShaderLocationIndex is export (
SHADER_LOC_VERTEX_POSITION => 0,
SHADER_LOC_VERTEX_TEXCOORD01 => 1,
SHADER_LOC_VERTEX_TEXCOORD02 => 2,
SHADER_LOC_VERTEX_NORMAL => 3,
SHADER_LOC_VERTEX_TANGENT => 4,
SHADER_LOC_VERTEX_COLOR => 5,
SHADER_LOC_MATRIX_MVP => 6,
SHADER_LOC_MATRIX_VIEW => 7,
SHADER_LOC_MATRIX_PROJECTION => 8,
SHADER_LOC_MATRIX_MODEL => 9,
SHADER_LOC_MATRIX_NORMAL => 10,
SHADER_LOC_VECTOR_VIEW => 11,
SHADER_LOC_COLOR_DIFFUSE => 12,
SHADER_LOC_COLOR_SPECULAR => 13,
SHADER_LOC_COLOR_AMBIENT => 14,
SHADER_LOC_MAP_ALBEDO => 15,
SHADER_LOC_MAP_METALNESS => 16,
SHADER_LOC_MAP_NORMAL => 17,
SHADER_LOC_MAP_ROUGHNESS => 18,
SHADER_LOC_MAP_OCCLUSION => 19,
SHADER_LOC_MAP_EMISSION => 20,
SHADER_LOC_MAP_HEIGHT => 21,
SHADER_LOC_MAP_CUBEMAP => 22,
SHADER_LOC_MAP_IRRADIANCE => 23,
SHADER_LOC_MAP_PREFILTER => 24,
SHADER_LOC_MAP_BRDF => 25,
);
enum ShaderUniformDataType is export (
SHADER_UNIFORM_FLOAT => 0,
SHADER_UNIFORM_VEC2 => 1,
SHADER_UNIFORM_VEC3 => 2,
SHADER_UNIFORM_VEC4 => 3,
SHADER_UNIFORM_INT => 4,
SHADER_UNIFORM_IVEC2 => 5,
SHADER_UNIFORM_IVEC3 => 6,
SHADER_UNIFORM_IVEC4 => 7,
SHADER_UNIFORM_SAMPLER2D => 8,
);
enum ShaderAttributeDataType is export (
SHADER_ATTRIB_FLOAT => 0,
SHADER_ATTRIB_VEC2 => 1,
SHADER_ATTRIB_VEC3 => 2,
SHADER_ATTRIB_VEC4 => 3,
);
enum PixelFormat is export (
PIXELFORMAT_UNCOMPRESSED_GRAYSCALE => 1,
PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA => 2,
PIXELFORMAT_UNCOMPRESSED_R5G6B5 => 3,
PIXELFORMAT_UNCOMPRESSED_R8G8B8 => 4,
PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 => 5,
PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 => 6,
PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 => 7,
PIXELFORMAT_UNCOMPRESSED_R32 => 8,
PIXELFORMAT_UNCOMPRESSED_R32G32B32 => 9,
PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 => 10,
PIXELFORMAT_UNCOMPRESSED_R16 => 11,
PIXELFORMAT_UNCOMPRESSED_R16G16B16 => 12,
PIXELFORMAT_UNCOMPRESSED_R16G16B16A16 => 13,
PIXELFORMAT_COMPRESSED_DXT1_RGB => 14,
PIXELFORMAT_COMPRESSED_DXT1_RGBA => 15,
PIXELFORMAT_COMPRESSED_DXT3_RGBA => 16,
PIXELFORMAT_COMPRESSED_DXT5_RGBA => 17,
PIXELFORMAT_COMPRESSED_ETC1_RGB => 18,
PIXELFORMAT_COMPRESSED_ETC2_RGB => 19,
PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA => 20,
PIXELFORMAT_COMPRESSED_PVRT_RGB => 21,
PIXELFORMAT_COMPRESSED_PVRT_RGBA => 22,
PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA => 23,
PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA => 24,
);
enum TextureFilter is export (
TEXTURE_FILTER_POINT => 0,
TEXTURE_FILTER_BILINEAR => 1,
TEXTURE_FILTER_TRILINEAR => 2,
TEXTURE_FILTER_ANISOTROPIC_4X => 3,
TEXTURE_FILTER_ANISOTROPIC_8X => 4,
TEXTURE_FILTER_ANISOTROPIC_16X => 5,
);
enum TextureWrap is export (
TEXTURE_WRAP_REPEAT => 0,
TEXTURE_WRAP_CLAMP => 1,
TEXTURE_WRAP_MIRROR_REPEAT => 2,
TEXTURE_WRAP_MIRROR_CLAMP => 3,
);
enum CubemapLayout is export (
CUBEMAP_LAYOUT_AUTO_DETECT => 0,
CUBEMAP_LAYOUT_LINE_VERTICAL => 1,
CUBEMAP_LAYOUT_LINE_HORIZONTAL => 2,
CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR => 3,
CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE => 4,
CUBEMAP_LAYOUT_PANORAMA => 5,
);
enum FontType is export (
FONT_DEFAULT => 0,
FONT_BITMAP => 1,
FONT_SDF => 2,
);
enum BlendMode is export (
BLEND_ALPHA => 0,
BLEND_ADDITIVE => 1,
BLEND_MULTIPLIED => 2,
BLEND_ADD_COLORS => 3,
BLEND_SUBTRACT_COLORS => 4,
BLEND_ALPHA_PREMULTIPLY => 5,
BLEND_CUSTOM => 6,
BLEND_CUSTOM_SEPARATE => 7,
);
enum Gesture is export (
GESTURE_NONE => 0,
GESTURE_TAP => 1,
GESTURE_DOUBLETAP => 2,
GESTURE_HOLD => 4,
GESTURE_DRAG => 8,
GESTURE_SWIPE_RIGHT => 16,
GESTURE_SWIPE_LEFT => 32,
GESTURE_SWIPE_UP => 64,
GESTURE_SWIPE_DOWN => 128,
GESTURE_PINCH_IN => 256,
GESTURE_PINCH_OUT => 512,
);
enum CameraMode is export (
CAMERA_CUSTOM => 0,
CAMERA_FREE => 1,
CAMERA_ORBITAL => 2,
CAMERA_FIRST_PERSON => 3,
CAMERA_THIRD_PERSON => 4,
);
enum CameraProjection is export (
CAMERA_PERSPECTIVE => 0,
CAMERA_ORTHOGRAPHIC => 1,
);
enum NPatchLayout is export (
NPATCH_NINE_PATCH => 0,
NPATCH_THREE_PATCH_VERTICAL => 1,
NPATCH_THREE_PATCH_HORIZONTAL => 2,
);
our sub init-window (int32 $width, int32 $height, Str $title) is export is native(LIBRAYLIB) is symbol('InitWindow'){ * }
our sub term:<close-window> () is export is native(LIBRAYLIB) is symbol('CloseWindow'){ * }
our sub term:<window-should-close> () returns bool is export is native(LIBRAYLIB) is symbol('WindowShouldClose'){ * }
our sub term:<is-window-ready> () returns bool is export is native(LIBRAYLIB) is symbol('IsWindowReady'){ * }
our sub term:<is-window-fullscreen> () returns bool is export is native(LIBRAYLIB) is symbol('IsWindowFullscreen'){ * }
our sub term:<is-window-hidden> () returns bool is export is native(LIBRAYLIB) is symbol('IsWindowHidden'){ * }
our sub term:<is-window-minimized> () returns bool is export is native(LIBRAYLIB) is symbol('IsWindowMinimized'){ * }
our sub term:<is-window-maximized> () returns bool is export is native(LIBRAYLIB) is symbol('IsWindowMaximized'){ * }
our sub term:<is-window-focused> () returns bool is export is native(LIBRAYLIB) is symbol('IsWindowFocused'){ * }
our sub term:<is-window-resized> () returns bool is export is native(LIBRAYLIB) is symbol('IsWindowResized'){ * }
our sub is-window-state (uint32 $flag) returns bool is export is native(LIBRAYLIB) is symbol('IsWindowState'){ * }
our sub set-window-state (uint32 $flags) is export is native(LIBRAYLIB) is symbol('SetWindowState'){ * }
our sub clear-window-state (uint32 $flags) is export is native(LIBRAYLIB) is symbol('ClearWindowState'){ * }
our sub term:<toggle-fullscreen> () is export is native(LIBRAYLIB) is symbol('ToggleFullscreen'){ * }
our sub term:<toggle-borderless-windowed> () is export is native(LIBRAYLIB) is symbol('ToggleBorderlessWindowed'){ * }
our sub term:<maximize-window> () is export is native(LIBRAYLIB) is symbol('MaximizeWindow'){ * }
our sub term:<minimize-window> () is export is native(LIBRAYLIB) is symbol('MinimizeWindow'){ * }
our sub term:<restore-window> () is export is native(LIBRAYLIB) is symbol('RestoreWindow'){ * }
our sub set-window-icons (Image $images is rw, int32 $count) is export is native(LIBRAYLIB) is symbol('SetWindowIcons'){ * }
our sub set-window-title (Str $title) is export is native(LIBRAYLIB) is symbol('SetWindowTitle'){ * }
our sub set-window-position (int32 $x, int32 $y) is export is native(LIBRAYLIB) is symbol('SetWindowPosition'){ * }
our sub set-window-monitor (int32 $monitor) is export is native(LIBRAYLIB) is symbol('SetWindowMonitor'){ * }
our sub set-window-min-size (int32 $width, int32 $height) is export is native(LIBRAYLIB) is symbol('SetWindowMinSize'){ * }
our sub set-window-max-size (int32 $width, int32 $height) is export is native(LIBRAYLIB) is symbol('SetWindowMaxSize'){ * }
our sub set-window-size (int32 $width, int32 $height) is export is native(LIBRAYLIB) is symbol('SetWindowSize'){ * }
our sub set-window-opacity (num32 $opacity) is export is native(LIBRAYLIB) is symbol('SetWindowOpacity'){ * }
our sub term:<set-window-focused> () is export is native(LIBRAYLIB) is symbol('SetWindowFocused'){ * }
our sub term:<get-window-handle> () is export is native(LIBRAYLIB) is symbol('GetWindowHandle'){ * }
our sub term:<get-screen-width> () returns int32 is export is native(LIBRAYLIB) is symbol('GetScreenWidth'){ * }
our sub term:<get-screen-height> () returns int32 is export is native(LIBRAYLIB) is symbol('GetScreenHeight'){ * }
our sub term:<get-render-width> () returns int32 is export is native(LIBRAYLIB) is symbol('GetRenderWidth'){ * }
our sub term:<get-render-height> () returns int32 is export is native(LIBRAYLIB) is symbol('GetRenderHeight'){ * }
our sub term:<get-monitor-count> () returns int32 is export is native(LIBRAYLIB) is symbol('GetMonitorCount'){ * }
our sub term:<get-current-monitor> () returns int32 is export is native(LIBRAYLIB) is symbol('GetCurrentMonitor'){ * }
our sub get-monitor-width (int32 $monitor) returns int32 is export is native(LIBRAYLIB) is symbol('GetMonitorWidth'){ * }
our sub get-monitor-height (int32 $monitor) returns int32 is export is native(LIBRAYLIB) is symbol('GetMonitorHeight'){ * }
our sub get-monitor-physical-width (int32 $monitor) returns int32 is export is native(LIBRAYLIB) is symbol('GetMonitorPhysicalWidth'){ * }
our sub get-monitor-physical-height (int32 $monitor) returns int32 is export is native(LIBRAYLIB) is symbol('GetMonitorPhysicalHeight'){ * }
our sub get-monitor-refresh-rate (int32 $monitor) returns int32 is export is native(LIBRAYLIB) is symbol('GetMonitorRefreshRate'){ * }
our sub get-monitor-name (int32 $monitor) returns Str is export is native(LIBRAYLIB) is symbol('GetMonitorName'){ * }
our sub set-clipboard-text (Str $text) is export is native(LIBRAYLIB) is symbol('SetClipboardText'){ * }
our sub term:<get-clipboard-text> () returns Str is export is native(LIBRAYLIB) is symbol('GetClipboardText'){ * }
our sub term:<enable-event-waiting> () is export is native(LIBRAYLIB) is symbol('EnableEventWaiting'){ * }
our sub term:<disable-event-waiting> () is export is native(LIBRAYLIB) is symbol('DisableEventWaiting'){ * }
our sub term:<show-cursor> () is export is native(LIBRAYLIB) is symbol('ShowCursor'){ * }
our sub term:<hide-cursor> () is export is native(LIBRAYLIB) is symbol('HideCursor'){ * }
our sub term:<is-cursor-hidden> () returns bool is export is native(LIBRAYLIB) is symbol('IsCursorHidden'){ * }
our sub term:<enable-cursor> () is export is native(LIBRAYLIB) is symbol('EnableCursor'){ * }
our sub term:<disable-cursor> () is export is native(LIBRAYLIB) is symbol('DisableCursor'){ * }
our sub term:<is-cursor-on-screen> () returns bool is export is native(LIBRAYLIB) is symbol('IsCursorOnScreen'){ * }
our sub term:<begin-drawing> () is export is native(LIBRAYLIB) is symbol('BeginDrawing'){ * }
our sub term:<end-drawing> () is export is native(LIBRAYLIB) is symbol('EndDrawing'){ * }
our sub term:<end-mode2d> () is export is native(LIBRAYLIB) is symbol('EndMode2D'){ * }
our sub term:<end-mode3d> () is export is native(LIBRAYLIB) is symbol('EndMode3D'){ * }
our sub term:<end-texture-mode> () is export is native(LIBRAYLIB) is symbol('EndTextureMode'){ * }
our sub term:<end-shader-mode> () is export is native(LIBRAYLIB) is symbol('EndShaderMode'){ * }
our sub begin-blend-mode (int32 $mode) is export is native(LIBRAYLIB) is symbol('BeginBlendMode'){ * }
our sub term:<end-blend-mode> () is export is native(LIBRAYLIB) is symbol('EndBlendMode'){ * }
our sub begin-scissor-mode (int32 $x, int32 $y, int32 $width, int32 $height) is export is native(LIBRAYLIB) is symbol('BeginScissorMode'){ * }
our sub term:<end-scissor-mode> () is export is native(LIBRAYLIB) is symbol('EndScissorMode'){ * }
our sub term:<end-vr-stereo-mode> () is export is native(LIBRAYLIB) is symbol('EndVrStereoMode'){ * }
our sub set-target-fps (int32 $fps) is export is native(LIBRAYLIB) is symbol('SetTargetFPS'){ * }
our sub term:<get-frame-time> () returns num32 is export is native(LIBRAYLIB) is symbol('GetFrameTime'){ * }
our sub term:<get-time> () returns num64 is export is native(LIBRAYLIB) is symbol('GetTime'){ * }
our sub term:<get-fps> () returns int32 is export is native(LIBRAYLIB) is symbol('GetFPS'){ * }
our sub term:<swap-screen-buffer> () is export is native(LIBRAYLIB) is symbol('SwapScreenBuffer'){ * }
our sub term:<poll-input-events> () is export is native(LIBRAYLIB) is symbol('PollInputEvents'){ * }
our sub wait-time (num64 $seconds) is export is native(LIBRAYLIB) is symbol('WaitTime'){ * }
our sub set-random-seed (uint32 $seed) is export is native(LIBRAYLIB) is symbol('SetRandomSeed'){ * }
our sub get-random-value (int32 $min, int32 $max) returns int32 is export is native(LIBRAYLIB) is symbol('GetRandomValue'){ * }
our sub load-random-sequence (uint32 $count, int32 $min, int32 $max) returns int32 is export is native(LIBRAYLIB) is symbol('LoadRandomSequence'){ * }
our sub unload-random-sequence (int32 $sequence is rw, ) is export is native(LIBRAYLIB) is symbol('UnloadRandomSequence'){ * }
our sub take-screenshot (Str $fileName) is export is native(LIBRAYLIB) is symbol('TakeScreenshot'){ * }
our sub set-config-flags (uint32 $flags) is export is native(LIBRAYLIB) is symbol('SetConfigFlags'){ * }
our sub open-url (Str $url) is export is native(LIBRAYLIB) is symbol('OpenURL'){ * }
our sub trace-log (int32 $logLevel, Str $text, ) is export is native(LIBRAYLIB) is symbol('TraceLog'){ * }
our sub set-trace-log-level (int32 $logLevel) is export is native(LIBRAYLIB) is symbol('SetTraceLogLevel'){ * }
our sub mem-alloc (uint32 $size) is export is native(LIBRAYLIB) is symbol('MemAlloc'){ * }
our sub mem-realloc (Pointer[void] $ptr, uint32 $size) is export is native(LIBRAYLIB) is symbol('MemRealloc'){ * }
our sub mem-free (Pointer[void] $ptr, ) is export is native(LIBRAYLIB) is symbol('MemFree'){ * }
our sub set-trace-log-callback (&trace-log-callback (int32 $logLevel, Str $text, Str $args)) is export is native(LIBRAYLIB) is symbol('SetTraceLogCallback'){ * }
our sub set-load-file-data-callback (&load-file-data-callback (Str $fileName, int32 $dataSize is rw, --> Str)) is export is native(LIBRAYLIB) is symbol('SetLoadFileDataCallback'){ * }
our sub set-save-file-data-callback (&save-file-data-callback (Str $fileName, Pointer[void] $data, int32 $dataSize --> bool)) is export is native(LIBRAYLIB) is symbol('SetSaveFileDataCallback'){ * }
our sub set-load-file-text-callback (&load-file-text-callback (Str $fileName --> Str)) is export is native(LIBRAYLIB) is symbol('SetLoadFileTextCallback'){ * }
our sub set-save-file-text-callback (&save-file-text-callback (Str $fileName, CArray[uint8] $text, --> bool)) is export is native(LIBRAYLIB) is symbol('SetSaveFileTextCallback'){ * }
our sub load-file-data (Str $fileName, int32 $dataSize is rw, ) returns Str is export is native(LIBRAYLIB) is symbol('LoadFileData'){ * }
our sub unload-file-data (CArray[uint8] $data, ) is export is native(LIBRAYLIB) is symbol('UnloadFileData'){ * }
our sub save-file-data (Str $fileName, Pointer[void] $data, int32 $dataSize) returns bool is export is native(LIBRAYLIB) is symbol('SaveFileData'){ * }
our sub export-data-as-code (uint8 $data is rw, int32 $dataSize, Str $fileName) returns bool is export is native(LIBRAYLIB) is symbol('ExportDataAsCode'){ * }
our sub load-file-text (Str $fileName) returns Str is export is native(LIBRAYLIB) is symbol('LoadFileText'){ * }
our sub unload-file-text (CArray[uint8] $text, ) is export is native(LIBRAYLIB) is symbol('UnloadFileText'){ * }
our sub save-file-text (Str $fileName, CArray[uint8] $text, ) returns bool is export is native(LIBRAYLIB) is symbol('SaveFileText'){ * }
our sub file-exists (Str $fileName) returns bool is export is native(LIBRAYLIB) is symbol('FileExists'){ * }
our sub directory-exists (Str $dirPath) returns bool is export is native(LIBRAYLIB) is symbol('DirectoryExists'){ * }
our sub is-file-extension (Str $fileName, Str $ext) returns bool is export is native(LIBRAYLIB) is symbol('IsFileExtension'){ * }
our sub get-file-length (Str $fileName) returns int32 is export is native(LIBRAYLIB) is symbol('GetFileLength'){ * }
our sub get-file-extension (Str $fileName) returns Str is export is native(LIBRAYLIB) is symbol('GetFileExtension'){ * }
our sub get-file-name (Str $filePath) returns Str is export is native(LIBRAYLIB) is symbol('GetFileName'){ * }
our sub get-file-name-without-ext (Str $filePath) returns Str is export is native(LIBRAYLIB) is symbol('GetFileNameWithoutExt'){ * }
our sub get-directory-path (Str $filePath) returns Str is export is native(LIBRAYLIB) is symbol('GetDirectoryPath'){ * }
our sub get-prev-directory-path (Str $dirPath) returns Str is export is native(LIBRAYLIB) is symbol('GetPrevDirectoryPath'){ * }
our sub term:<get-working-directory> () returns Str is export is native(LIBRAYLIB) is symbol('GetWorkingDirectory'){ * }
our sub term:<get-application-directory> () returns Str is export is native(LIBRAYLIB) is symbol('GetApplicationDirectory'){ * }
our sub change-directory (Str $dir) returns bool is export is native(LIBRAYLIB) is symbol('ChangeDirectory'){ * }
our sub is-path-file (Str $path) returns bool is export is native(LIBRAYLIB) is symbol('IsPathFile'){ * }
our sub term:<is-file-dropped> () returns bool is export is native(LIBRAYLIB) is symbol('IsFileDropped'){ * }
our sub compress-data (uint8 $data is rw, int32 $dataSize, int32 $compDataSize is rw, ) returns Str is export is native(LIBRAYLIB) is symbol('CompressData'){ * }
our sub decompress-data (uint8 $compData is rw, int32 $compDataSize, int32 $dataSize is rw, ) returns Str is export is native(LIBRAYLIB) is symbol('DecompressData'){ * }
our sub encode-data-base64 (uint8 $data is rw, int32 $dataSize, int32 $outputSize is rw, ) returns Str is export is native(LIBRAYLIB) is symbol('EncodeDataBase64'){ * }
our sub decode-data-base64 (uint8 $data is rw, int32 $outputSize is rw, ) returns Str is export is native(LIBRAYLIB) is symbol('DecodeDataBase64'){ * }
our sub unload-automation-event-list (AutomationEventList $list is rw) is export is native(LIBRAYLIB) is symbol('UnloadAutomationEventList'){ * }
our sub set-automation-event-list (AutomationEventList $list is rw) is export is native(LIBRAYLIB) is symbol('SetAutomationEventList'){ * }
our sub set-automation-event-base-frame (int32 $frame) is export is native(LIBRAYLIB) is symbol('SetAutomationEventBaseFrame'){ * }
our sub term:<start-automation-event-recording> () is export is native(LIBRAYLIB) is symbol('StartAutomationEventRecording'){ * }
our sub term:<stop-automation-event-recording> () is export is native(LIBRAYLIB) is symbol('StopAutomationEventRecording'){ * }
our sub is-key-pressed (int32 $key) returns bool is export is native(LIBRAYLIB) is symbol('IsKeyPressed'){ * }
our sub is-key-pressed-repeat (int32 $key) returns bool is export is native(LIBRAYLIB) is symbol('IsKeyPressedRepeat'){ * }
our sub is-key-down (int32 $key) returns bool is export is native(LIBRAYLIB) is symbol('IsKeyDown'){ * }
our sub is-key-released (int32 $key) returns bool is export is native(LIBRAYLIB) is symbol('IsKeyReleased'){ * }
our sub is-key-up (int32 $key) returns bool is export is native(LIBRAYLIB) is symbol('IsKeyUp'){ * }
our sub term:<get-key-pressed> () returns int32 is export is native(LIBRAYLIB) is symbol('GetKeyPressed'){ * }
our sub term:<get-char-pressed> () returns int32 is export is native(LIBRAYLIB) is symbol('GetCharPressed'){ * }
our sub set-exit-key (int32 $key) is export is native(LIBRAYLIB) is symbol('SetExitKey'){ * }
our sub is-gamepad-available (int32 $gamepad) returns bool is export is native(LIBRAYLIB) is symbol('IsGamepadAvailable'){ * }
our sub get-gamepad-name (int32 $gamepad) returns Str is export is native(LIBRAYLIB) is symbol('GetGamepadName'){ * }
our sub is-gamepad-button-pressed (int32 $gamepad, int32 $button) returns bool is export is native(LIBRAYLIB) is symbol('IsGamepadButtonPressed'){ * }
our sub is-gamepad-button-down (int32 $gamepad, int32 $button) returns bool is export is native(LIBRAYLIB) is symbol('IsGamepadButtonDown'){ * }
our sub is-gamepad-button-released (int32 $gamepad, int32 $button) returns bool is export is native(LIBRAYLIB) is symbol('IsGamepadButtonReleased'){ * }
our sub is-gamepad-button-up (int32 $gamepad, int32 $button) returns bool is export is native(LIBRAYLIB) is symbol('IsGamepadButtonUp'){ * }
our sub term:<get-gamepad-button-pressed> () returns int32 is export is native(LIBRAYLIB) is symbol('GetGamepadButtonPressed'){ * }
our sub get-gamepad-axis-count (int32 $gamepad) returns int32 is export is native(LIBRAYLIB) is symbol('GetGamepadAxisCount'){ * }
our sub get-gamepad-axis-movement (int32 $gamepad, int32 $axis) returns num32 is export is native(LIBRAYLIB) is symbol('GetGamepadAxisMovement'){ * }
our sub set-gamepad-mappings (Str $mappings) returns int32 is export is native(LIBRAYLIB) is symbol('SetGamepadMappings'){ * }
our sub is-mouse-button-pressed (int32 $button) returns bool is export is native(LIBRAYLIB) is symbol('IsMouseButtonPressed'){ * }
our sub is-mouse-button-down (int32 $button) returns bool is export is native(LIBRAYLIB) is symbol('IsMouseButtonDown'){ * }
our sub is-mouse-button-released (int32 $button) returns bool is export is native(LIBRAYLIB) is symbol('IsMouseButtonReleased'){ * }
our sub is-mouse-button-up (int32 $button) returns bool is export is native(LIBRAYLIB) is symbol('IsMouseButtonUp'){ * }
our sub term:<get-mouse-x> () returns int32 is export is native(LIBRAYLIB) is symbol('GetMouseX'){ * }
our sub term:<get-mouse-y> () returns int32 is export is native(LIBRAYLIB) is symbol('GetMouseY'){ * }
our sub set-mouse-position (int32 $x, int32 $y) is export is native(LIBRAYLIB) is symbol('SetMousePosition'){ * }
our sub set-mouse-offset (int32 $offsetX, int32 $offsetY) is export is native(LIBRAYLIB) is symbol('SetMouseOffset'){ * }
our sub set-mouse-scale (num32 $scaleX, num32 $scaleY) is export is native(LIBRAYLIB) is symbol('SetMouseScale'){ * }
our sub term:<get-mouse-wheel-move> () returns num32 is export is native(LIBRAYLIB) is symbol('GetMouseWheelMove'){ * }
our sub set-mouse-cursor (int32 $cursor) is export is native(LIBRAYLIB) is symbol('SetMouseCursor'){ * }
our sub term:<get-touch-x> () returns int32 is export is native(LIBRAYLIB) is symbol('GetTouchX'){ * }
our sub term:<get-touch-y> () returns int32 is export is native(LIBRAYLIB) is symbol('GetTouchY'){ * }
our sub get-touch-point-id (int32 $index) returns int32 is export is native(LIBRAYLIB) is symbol('GetTouchPointId'){ * }
our sub term:<get-touch-point-count> () returns int32 is export is native(LIBRAYLIB) is symbol('GetTouchPointCount'){ * }
our sub set-gestures-enabled (uint32 $flags) is export is native(LIBRAYLIB) is symbol('SetGesturesEnabled'){ * }
our sub is-gesture-detected (uint32 $gesture) returns bool is export is native(LIBRAYLIB) is symbol('IsGestureDetected'){ * }
our sub term:<get-gesture-detected> () returns int32 is export is native(LIBRAYLIB) is symbol('GetGestureDetected'){ * }
our sub term:<get-gesture-hold-duration> () returns num32 is export is native(LIBRAYLIB) is symbol('GetGestureHoldDuration'){ * }
our sub term:<get-gesture-drag-angle> () returns num32 is export is native(LIBRAYLIB) is symbol('GetGestureDragAngle'){ * }
our sub term:<get-gesture-pinch-angle> () returns num32 is export is native(LIBRAYLIB) is symbol('GetGesturePinchAngle'){ * }
our sub update-camera (Camera $camera is rw, int32 $mode) is export is native(LIBRAYLIB) is symbol('UpdateCamera'){ * }
our sub image-format (Image $image is rw, int32 $newFormat) is export is native(LIBRAYLIB) is symbol('ImageFormat'){ * }
our sub image-alpha-crop (Image $image is rw, num32 $threshold) is export is native(LIBRAYLIB) is symbol('ImageAlphaCrop'){ * }
our sub image-alpha-premultiply (Image $image is rw) is export is native(LIBRAYLIB) is symbol('ImageAlphaPremultiply'){ * }
our sub image-blur-gaussian (Image $image is rw, int32 $blurSize) is export is native(LIBRAYLIB) is symbol('ImageBlurGaussian'){ * }
our sub image-kernel-convolution (Image $image is rw, num32 $kernel is rw, int32 $kernelSize) is export is native(LIBRAYLIB) is symbol('ImageKernelConvolution'){ * }
our sub image-resize (Image $image is rw, int32 $newWidth, int32 $newHeight) is export is native(LIBRAYLIB) is symbol('ImageResize'){ * }
our sub image-resize-nn (Image $image is rw, int32 $newWidth, int32 $newHeight) is export is native(LIBRAYLIB) is symbol('ImageResizeNN'){ * }
our sub image-mipmaps (Image $image is rw) is export is native(LIBRAYLIB) is symbol('ImageMipmaps'){ * }
our sub image-dither (Image $image is rw, int32 $rBpp, int32 $gBpp, int32 $bBpp, int32 $aBpp) is export is native(LIBRAYLIB) is symbol('ImageDither'){ * }
our sub image-flip-vertical (Image $image is rw) is export is native(LIBRAYLIB) is symbol('ImageFlipVertical'){ * }
our sub image-flip-horizontal (Image $image is rw) is export is native(LIBRAYLIB) is symbol('ImageFlipHorizontal'){ * }
our sub image-rotate (Image $image is rw, int32 $degrees) is export is native(LIBRAYLIB) is symbol('ImageRotate'){ * }
our sub image-rotate-cw (Image $image is rw) is export is native(LIBRAYLIB) is symbol('ImageRotateCW'){ * }
our sub image-rotate-ccw (Image $image is rw) is export is native(LIBRAYLIB) is symbol('ImageRotateCCW'){ * }
our sub image-color-invert (Image $image is rw) is export is native(LIBRAYLIB) is symbol('ImageColorInvert'){ * }
our sub image-color-grayscale (Image $image is rw) is export is native(LIBRAYLIB) is symbol('ImageColorGrayscale'){ * }
our sub image-color-contrast (Image $image is rw, num32 $contrast) is export is native(LIBRAYLIB) is symbol('ImageColorContrast'){ * }
our sub image-color-brightness (Image $image is rw, int32 $brightness) is export is native(LIBRAYLIB) is symbol('ImageColorBrightness'){ * }
our sub unload-image-colors (Color $colors is rw) is export is native(LIBRAYLIB) is symbol('UnloadImageColors'){ * }
our sub unload-image-palette (Color $colors is rw) is export is native(LIBRAYLIB) is symbol('UnloadImagePalette'){ * }
our sub gen-texture-mipmaps (Texture2D $texture is rw) is export is native(LIBRAYLIB) is symbol('GenTextureMipmaps'){ * }
our sub get-pixel-data-size (int32 $width, int32 $height, int32 $format) returns int32 is export is native(LIBRAYLIB) is symbol('GetPixelDataSize'){ * }
our sub load-font-data (uint8 $fileData is rw, int32 $dataSize, int32 $fontSize, int32 $codepoints is rw, int32 $codepointCount, int32 $type) returns GlyphInfo is export is native(LIBRAYLIB) is symbol('LoadFontData'){ * }
our sub unload-font-data (GlyphInfo $glyphs is rw, int32 $glyphCount) is export is native(LIBRAYLIB) is symbol('UnloadFontData'){ * }
our sub draw-fps (int32 $posX, int32 $posY) is export is native(LIBRAYLIB) is symbol('DrawFPS'){ * }
our sub set-text-line-spacing (int32 $spacing) is export is native(LIBRAYLIB) is symbol('SetTextLineSpacing'){ * }
our sub measure-text (Str $text, int32 $fontSize) returns int32 is export is native(LIBRAYLIB) is symbol('MeasureText'){ * }
our sub load-utf8 (int32 $codepoints is rw, int32 $length) returns Str is export is native(LIBRAYLIB) is symbol('LoadUTF8'){ * }
our sub unload-utf8 (CArray[uint8] $text, ) is export is native(LIBRAYLIB) is symbol('UnloadUTF8'){ * }
our sub load-codepoints (Str $text, int32 $count is rw, ) returns int32 is export is native(LIBRAYLIB) is symbol('LoadCodepoints'){ * }
our sub unload-codepoints (int32 $codepoints is rw, ) is export is native(LIBRAYLIB) is symbol('UnloadCodepoints'){ * }
our sub get-codepoint-count (Str $text) returns int32 is export is native(LIBRAYLIB) is symbol('GetCodepointCount'){ * }
our sub get-codepoint (Str $text, int32 $codepointSize is rw, ) returns int32 is export is native(LIBRAYLIB) is symbol('GetCodepoint'){ * }
our sub get-codepoint-next (Str $text, int32 $codepointSize is rw, ) returns int32 is export is native(LIBRAYLIB) is symbol('GetCodepointNext'){ * }
our sub get-codepoint-previous (Str $text, int32 $codepointSize is rw, ) returns int32 is export is native(LIBRAYLIB) is symbol('GetCodepointPrevious'){ * }
our sub codepoint-to-utf8 (int32 $codepoint, int32 $utf8Size is rw, ) returns Str is export is native(LIBRAYLIB) is symbol('CodepointToUTF8'){ * }
our sub text-copy (CArray[uint8] $dst, Str $src) returns int32 is export is native(LIBRAYLIB) is symbol('TextCopy'){ * }
our sub text-is-equal (Str $text1, Str $text2) returns bool is export is native(LIBRAYLIB) is symbol('TextIsEqual'){ * }
our sub text-length (Str $text) returns int32 is export is native(LIBRAYLIB) is symbol('TextLength'){ * }
our sub text-format (Str $text, ) returns Str is export is native(LIBRAYLIB) is symbol('TextFormat'){ * }
our sub text-subtext (Str $text, int32 $position, int32 $length) returns Str is export is native(LIBRAYLIB) is symbol('TextSubtext'){ * }
our sub text-replace (CArray[uint8] $text, Str $replace, Str $by) returns Str is export is native(LIBRAYLIB) is symbol('TextReplace'){ * }
our sub text-insert (Str $text, Str $insert, int32 $position) returns Str is export is native(LIBRAYLIB) is symbol('TextInsert'){ * }
our sub text-join (Str $textList, int32 $count, Str $delimiter) returns Str is export is native(LIBRAYLIB) is symbol('TextJoin'){ * }
our sub text-split (Str $text, Str $delimiter, int32 $count is rw, ) returns Str is export is native(LIBRAYLIB) is symbol('TextSplit'){ * }
our sub text-append (CArray[uint8] $text, Str $append, int32 $position is rw, ) is export is native(LIBRAYLIB) is symbol('TextAppend'){ * }
our sub text-find-index (Str $text, Str $find) returns int32 is export is native(LIBRAYLIB) is symbol('TextFindIndex'){ * }
our sub text-to-upper (Str $text) returns Str is export is native(LIBRAYLIB) is symbol('TextToUpper'){ * }
our sub text-to-lower (Str $text) returns Str is export is native(LIBRAYLIB) is symbol('TextToLower'){ * }
our sub text-to-pascal (Str $text) returns Str is export is native(LIBRAYLIB) is symbol('TextToPascal'){ * }
our sub text-to-integer (Str $text) returns int32 is export is native(LIBRAYLIB) is symbol('TextToInteger'){ * }
our sub text-to-float (Str $text) returns num32 is export is native(LIBRAYLIB) is symbol('TextToFloat'){ * }
our sub draw-grid (int32 $slices, num32 $spacing) is export is native(LIBRAYLIB) is symbol('DrawGrid'){ * }
our sub upload-mesh (Mesh $mesh is rw, bool $dynamic) is export is native(LIBRAYLIB) is symbol('UploadMesh'){ * }
our sub gen-mesh-tangents (Mesh $mesh is rw) is export is native(LIBRAYLIB) is symbol('GenMeshTangents'){ * }
our sub load-materials (Str $fileName, int32 $materialCount is rw, ) returns Material is export is native(LIBRAYLIB) is symbol('LoadMaterials'){ * }
our sub set-model-mesh-material (Model $model is rw, int32 $meshId, int32 $materialId) is export is native(LIBRAYLIB) is symbol('SetModelMeshMaterial'){ * }
our sub load-model-animations (Str $fileName, int32 $animCount is rw, ) returns ModelAnimation is export is native(LIBRAYLIB) is symbol('LoadModelAnimations'){ * }
our sub unload-model-animations (ModelAnimation $animations is rw, int32 $animCount) is export is native(LIBRAYLIB) is symbol('UnloadModelAnimations'){ * }
our sub term:<init-audio-device> () is export is native(LIBRAYLIB) is symbol('InitAudioDevice'){ * }
our sub term:<close-audio-device> () is export is native(LIBRAYLIB) is symbol('CloseAudioDevice'){ * }