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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
|
-- Put this file into your project folder to provide annotations when using Lua language server.
RL={}
-- Functions.
---This function will be called first when 'main.lua' is found
function RL.init() end
---This function will be called every frame during execution. It will get time duration from last frame on argument 'delta'
---@param delta number
function RL.process( delta ) end
---This function will be called every frame after process and it should have all rendering related functions. Note: Engine will call Raylib functions 'BeginDrawing()' before this function call and 'EndDrawing()' after it. You can still use RL.BeginDrawing() and RL.EndDrawing() manually from anywhere.
function RL.draw() end
---This function will be called on events input. Content of event table is determined by event type.
---@param event table
function RL.event( event ) end
---This function can be used for custom log message handling.
---@param logLevel integer
---@param message string
function RL.log( logLevel, message ) end
---This function will be called on program close. Cleanup could be done here.
function RL.exit() end
-- Defines - System/Window config flags
---Set to try enabling V-Sync on GPU
RL.FLAG_VSYNC_HINT=64
---Set to run program in fullscreen
RL.FLAG_FULLSCREEN_MODE=2
---Set to allow resizable window
RL.FLAG_WINDOW_RESIZABLE=4
---Set to disable window decoration (frame and buttons)
RL.FLAG_WINDOW_UNDECORATED=8
---Set to hide window
RL.FLAG_WINDOW_HIDDEN=128
---Set to minimize window (iconify)
RL.FLAG_WINDOW_MINIMIZED=512
---Set to maximize window (expanded to monitor)
RL.FLAG_WINDOW_MAXIMIZED=1024
---Set to window non focused
RL.FLAG_WINDOW_UNFOCUSED=2048
---Set to window always on top
RL.FLAG_WINDOW_TOPMOST=4096
---Set to allow windows running while minimized
RL.FLAG_WINDOW_ALWAYS_RUN=256
---Set to allow transparent framebuffer
RL.FLAG_WINDOW_TRANSPARENT=16
---Set to support HighDPI
RL.FLAG_WINDOW_HIGHDPI=8192
---Set to support mouse passthrough, only supported when FLAG_WINDOW_UNDECORATED
RL.FLAG_WINDOW_MOUSE_PASSTHROUGH=16384
---Set to try enabling MSAA 4X
RL.FLAG_MSAA_4X_HINT=32
---Set to try enabling interlaced video format (for V3D)
RL.FLAG_INTERLACED_HINT=65536
-- Defines - Trace log level
---Display all logs
RL.LOG_ALL=0
---Trace logging, intended for internal use only
RL.LOG_TRACE=1
---Debug logging, used for internal debugging, it should be disabled on release builds
RL.LOG_DEBUG=2
---Info logging, used for program execution info
RL.LOG_INFO=3
---Warning logging, used on recoverable failures
RL.LOG_WARNING=4
---Error logging, used on unrecoverable failures
RL.LOG_ERROR=5
---Fatal logging, used to abort program: exit(EXIT_FAILURE)
RL.LOG_FATAL=6
---Disable logging
RL.LOG_NONE=7
-- Defines - Keyboard keys (US keyboard layout)
---Key: NULL, used for no key pressed
RL.KEY_NULL=0
---Key: '
RL.KEY_APOSTROPHE=39
---Key: ,
RL.KEY_COMMA=44
---Key: -
RL.KEY_MINUS=45
---Key: .
RL.KEY_PERIOD=46
---Key: /
RL.KEY_SLASH=47
---Key: 0
RL.KEY_ZERO=48
---Key: 1
RL.KEY_ONE=49
---Key: 2
RL.KEY_TWO=50
---Key: 3
RL.KEY_THREE=51
---Key: 4
RL.KEY_FOUR=52
---Key: 5
RL.KEY_FIVE=53
---Key: 6
RL.KEY_SIX=54
---Key: 7
RL.KEY_SEVEN=55
---Key: 8
RL.KEY_EIGHT=56
---Key: 9
RL.KEY_NINE=57
---Key: ;
RL.KEY_SEMICOLON=59
---Key: =
RL.KEY_EQUAL=61
---Key: A | a
RL.KEY_A=65
---Key: B | b
RL.KEY_B=66
---Key: C | c
RL.KEY_C=67
---Key: D | d
RL.KEY_D=68
---Key: E | e
RL.KEY_E=69
---Key: F | f
RL.KEY_F=70
---Key: G | g
RL.KEY_G=71
---Key: H | h
RL.KEY_H=72
---Key: I | i
RL.KEY_I=73
---Key: J | j
RL.KEY_J=74
---Key: K | k
RL.KEY_K=75
---Key: L | l
RL.KEY_L=76
---Key: M | m
RL.KEY_M=77
---Key: N | n
RL.KEY_N=78
---Key: O | o
RL.KEY_O=79
---Key: P | p
RL.KEY_P=80
---Key: Q | q
RL.KEY_Q=81
---Key: R | r
RL.KEY_R=82
---Key: S | s
RL.KEY_S=83
---Key: T | t
RL.KEY_T=84
---Key: U | u
RL.KEY_U=85
---Key: V | v
RL.KEY_V=86
---Key: W | w
RL.KEY_W=87
---Key: X | x
RL.KEY_X=88
---Key: Y | y
RL.KEY_Y=89
---Key: Z | z
RL.KEY_Z=90
---Key: [
RL.KEY_LEFT_BRACKET=91
---Key: '\'
RL.KEY_BACKSLASH=92
---Key: ]
RL.KEY_RIGHT_BRACKET=93
---Key: `
RL.KEY_GRAVE=96
---Key: Space
RL.KEY_SPACE=32
---Key: Esc
RL.KEY_ESCAPE=256
---Key: Enter
RL.KEY_ENTER=257
---Key: Tab
RL.KEY_TAB=258
---Key: Backspace
RL.KEY_BACKSPACE=259
---Key: Ins
RL.KEY_INSERT=260
---Key: Del
RL.KEY_DELETE=261
---Key: Cursor right
RL.KEY_RIGHT=262
---Key: Cursor left
RL.KEY_LEFT=263
---Key: Cursor down
RL.KEY_DOWN=264
---Key: Cursor up
RL.KEY_UP=265
---Key: Page up
RL.KEY_PAGE_UP=266
---Key: Page down
RL.KEY_PAGE_DOWN=267
---Key: Home
RL.KEY_HOME=268
---Key: End
RL.KEY_END=269
---Key: Caps lock
RL.KEY_CAPS_LOCK=280
---Key: Scroll down
RL.KEY_SCROLL_LOCK=281
---Key: Num lock
RL.KEY_NUM_LOCK=282
---Key: Print screen
RL.KEY_PRINT_SCREEN=283
---Key: Pause
RL.KEY_PAUSE=284
---Key: F1
RL.KEY_F1=290
---Key: F2
RL.KEY_F2=291
---Key: F3
RL.KEY_F3=292
---Key: F4
RL.KEY_F4=293
---Key: F5
RL.KEY_F5=294
---Key: F6
RL.KEY_F6=295
---Key: F7
RL.KEY_F7=296
---Key: F8
RL.KEY_F8=297
---Key: F9
RL.KEY_F9=298
---Key: F10
RL.KEY_F10=299
---Key: F11
RL.KEY_F11=300
---Key: F12
RL.KEY_F12=301
---Key: Shift left
RL.KEY_LEFT_SHIFT=340
---Key: Control left
RL.KEY_LEFT_CONTROL=341
---Key: Alt left
RL.KEY_LEFT_ALT=342
---Key: Super left
RL.KEY_LEFT_SUPER=343
---Key: Shift right
RL.KEY_RIGHT_SHIFT=344
---Key: Control right
RL.KEY_RIGHT_CONTROL=345
---Key: Alt right
RL.KEY_RIGHT_ALT=346
---Key: Super right
RL.KEY_RIGHT_SUPER=347
---Key: KB menu
RL.KEY_KB_MENU=348
---Key: Keypad 0
RL.KEY_KP_0=320
---Key: Keypad 1
RL.KEY_KP_1=321
---Key: Keypad 2
RL.KEY_KP_2=322
---Key: Keypad 3
RL.KEY_KP_3=323
---Key: Keypad 4
RL.KEY_KP_4=324
---Key: Keypad 5
RL.KEY_KP_5=325
---Key: Keypad 6
RL.KEY_KP_6=326
---Key: Keypad 7
RL.KEY_KP_7=327
---Key: Keypad 8
RL.KEY_KP_8=328
---Key: Keypad 9
RL.KEY_KP_9=329
---Key: Keypad .
RL.KEY_KP_DECIMAL=330
---Key: Keypad /
RL.KEY_KP_DIVIDE=331
---Key: Keypad *
RL.KEY_KP_MULTIPLY=332
---Key: Keypad -
RL.KEY_KP_SUBTRACT=333
---Key: Keypad +
RL.KEY_KP_ADD=334
---Key: Keypad Enter
RL.KEY_KP_ENTER=335
---Key: Keypad =
RL.KEY_KP_EQUAL=336
---Key: Android back button
RL.KEY_BACK=4
---Key: Android menu button
RL.KEY_MENU=82
---Key: Android volume up button
RL.KEY_VOLUME_UP=24
---Key: Android volume down button
RL.KEY_VOLUME_DOWN=25
-- Defines - Mouse buttons
---Mouse button left
RL.MOUSE_BUTTON_LEFT=0
---Mouse button right
RL.MOUSE_BUTTON_RIGHT=1
---Mouse button middle (pressed wheel)
RL.MOUSE_BUTTON_MIDDLE=2
---Mouse button side (advanced mouse device)
RL.MOUSE_BUTTON_SIDE=3
---Mouse button extra (advanced mouse device)
RL.MOUSE_BUTTON_EXTRA=4
---Mouse button forward (advanced mouse device)
RL.MOUSE_BUTTON_FORWARD=5
---Mouse button back (advanced mouse device)
RL.MOUSE_BUTTON_BACK=6
-- Defines - Mouse cursor
---Default pointer shape
RL.MOUSE_CURSOR_DEFAULT=0
---Arrow shape
RL.MOUSE_CURSOR_ARROW=1
---Text writing cursor shape
RL.MOUSE_CURSOR_IBEAM=2
---Cross shape
RL.MOUSE_CURSOR_CROSSHAIR=3
---Pointing hand cursor
RL.MOUSE_CURSOR_POINTING_HAND=4
---Horizontal resize/move arrow shape
RL.MOUSE_CURSOR_RESIZE_EW=5
---Vertical resize/move arrow shape
RL.MOUSE_CURSOR_RESIZE_NS=6
---Top-left to bottom-right diagonal resize/move arrow shape
RL.MOUSE_CURSOR_RESIZE_NWSE=7
---The top-right to bottom-left diagonal resize/move arrow shape
RL.MOUSE_CURSOR_RESIZE_NESW=8
---The omnidirectional resize/move cursor shape
RL.MOUSE_CURSOR_RESIZE_ALL=9
---The operation-not-allowed shape
RL.MOUSE_CURSOR_NOT_ALLOWED=10
-- Defines - Gamepad buttons
---Unknown button, just for error checking
RL.GAMEPAD_BUTTON_UNKNOWN=0
---Gamepad left DPAD up button
RL.GAMEPAD_BUTTON_LEFT_FACE_UP=1
---Gamepad left DPAD right button
RL.GAMEPAD_BUTTON_LEFT_FACE_RIGHT=2
---Gamepad left DPAD down button
RL.GAMEPAD_BUTTON_LEFT_FACE_DOWN=3
---Gamepad left DPAD left button
RL.GAMEPAD_BUTTON_LEFT_FACE_LEFT=4
---Gamepad right button up (i.e. PS3: Triangle, Xbox: Y)
RL.GAMEPAD_BUTTON_RIGHT_FACE_UP=5
---Gamepad right button right (i.e. PS3: Square, Xbox: X)
RL.GAMEPAD_BUTTON_RIGHT_FACE_RIGHT=6
---Gamepad right button down (i.e. PS3: Cross, Xbox: A)
RL.GAMEPAD_BUTTON_RIGHT_FACE_DOWN=7
---Gamepad right button left (i.e. PS3: Circle, Xbox: B)
RL.GAMEPAD_BUTTON_RIGHT_FACE_LEFT=8
---Gamepad top/back trigger left (first), it could be a trailing button
RL.GAMEPAD_BUTTON_LEFT_TRIGGER_1=9
---Gamepad top/back trigger left (second), it could be a trailing button
RL.GAMEPAD_BUTTON_LEFT_TRIGGER_2=10
---Gamepad top/back trigger right (one), it could be a trailing button
RL.GAMEPAD_BUTTON_RIGHT_TRIGGER_1=11
---Gamepad top/back trigger right (second), it could be a trailing button
RL.GAMEPAD_BUTTON_RIGHT_TRIGGER_2=12
---Gamepad center buttons, left one (i.e. PS3: Select)
RL.GAMEPAD_BUTTON_MIDDLE_LEFT=13
---Gamepad center buttons, middle one (i.e. PS3: PS, Xbox: XBOX)
RL.GAMEPAD_BUTTON_MIDDLE=14
---Gamepad center buttons, right one (i.e. PS3: Start)
RL.GAMEPAD_BUTTON_MIDDLE_RIGHT=15
---Gamepad joystick pressed button left
RL.GAMEPAD_BUTTON_LEFT_THUMB=16
---Gamepad joystick pressed button right
RL.GAMEPAD_BUTTON_RIGHT_THUMB=17
-- Defines - Gamepad axis
---Gamepad left stick X axis
RL.GAMEPAD_AXIS_LEFT_X=0
---Gamepad left stick Y axis
RL.GAMEPAD_AXIS_LEFT_Y=1
---Gamepad right stick X axis
RL.GAMEPAD_AXIS_RIGHT_X=2
---Gamepad right stick Y axis
RL.GAMEPAD_AXIS_RIGHT_Y=3
---Gamepad back trigger left, pressure level: [1..-1]
RL.GAMEPAD_AXIS_LEFT_TRIGGER=4
---Gamepad back trigger right, pressure level: [1..-1]
RL.GAMEPAD_AXIS_RIGHT_TRIGGER=5
-- Defines - Material map index
---Albedo material (same as: MATERIAL_MAP_DIFFUSE)
RL.MATERIAL_MAP_ALBEDO=0
---Metalness material (same as: MATERIAL_MAP_SPECULAR)
RL.MATERIAL_MAP_METALNESS=1
---Normal material
RL.MATERIAL_MAP_NORMAL=2
---Roughness material
RL.MATERIAL_MAP_ROUGHNESS=3
---Ambient occlusion material
RL.MATERIAL_MAP_OCCLUSION=4
---Emission material
RL.MATERIAL_MAP_EMISSION=5
---Heightmap material
RL.MATERIAL_MAP_HEIGHT=6
---Cubemap material (NOTE: Uses GL_TEXTURE_CUBE_MAP)
RL.MATERIAL_MAP_CUBEMAP=7
---Irradiance material (NOTE: Uses GL_TEXTURE_CUBE_MAP)
RL.MATERIAL_MAP_IRRADIANCE=8
---Prefilter material (NOTE: Uses GL_TEXTURE_CUBE_MAP)
RL.MATERIAL_MAP_PREFILTER=9
---Brdf material
RL.MATERIAL_MAP_BRDF=10
---Diffuce material (same as: MATERIAL_MAP_ALBEDO)
RL.MATERIAL_MAP_DIFFUSE=0
---Specular material (same as: MATERIAL_MAP_METALNESS)
RL.MATERIAL_MAP_SPECULAR=1
-- Defines - Shader location index
---Shader location: vertex attribute: position
RL.SHADER_LOC_VERTEX_POSITION=0
---Shader location: vertex attribute: texcoord01
RL.SHADER_LOC_VERTEX_TEXCOORD01=1
---Shader location: vertex attribute: texcoord02
RL.SHADER_LOC_VERTEX_TEXCOORD02=2
---Shader location: vertex attribute: normal
RL.SHADER_LOC_VERTEX_NORMAL=3
---Shader location: vertex attribute: tangent
RL.SHADER_LOC_VERTEX_TANGENT=4
---Shader location: vertex attribute: color
RL.SHADER_LOC_VERTEX_COLOR=5
---Shader location: matrix uniform: model-view-projection
RL.SHADER_LOC_MATRIX_MVP=6
---Shader location: matrix uniform: view (camera transform)
RL.SHADER_LOC_MATRIX_VIEW=7
---Shader location: matrix uniform: projection
RL.SHADER_LOC_MATRIX_PROJECTION=8
---Shader location: matrix uniform: model (transform)
RL.SHADER_LOC_MATRIX_MODEL=9
---Shader location: matrix uniform: normal
RL.SHADER_LOC_MATRIX_NORMAL=10
---Shader location: vector uniform: view
RL.SHADER_LOC_VECTOR_VIEW=11
---Shader location: vector uniform: diffuse color
RL.SHADER_LOC_COLOR_DIFFUSE=12
---Shader location: vector uniform: specular color
RL.SHADER_LOC_COLOR_SPECULAR=13
---Shader location: vector uniform: ambient color
RL.SHADER_LOC_COLOR_AMBIENT=14
---Shader location: sampler2d texture: albedo (same as: SHADER_LOC_MAP_DIFFUSE)
RL.SHADER_LOC_MAP_ALBEDO=15
---Shader location: sampler2d texture: metalness (same as: SHADER_LOC_MAP_SPECULAR)
RL.SHADER_LOC_MAP_METALNESS=16
---Shader location: sampler2d texture: normal
RL.SHADER_LOC_MAP_NORMAL=17
---Shader location: sampler2d texture: roughness
RL.SHADER_LOC_MAP_ROUGHNESS=18
---Shader location: sampler2d texture: occlusion
RL.SHADER_LOC_MAP_OCCLUSION=19
---Shader location: sampler2d texture: emission
RL.SHADER_LOC_MAP_EMISSION=20
---Shader location: sampler2d texture: height
RL.SHADER_LOC_MAP_HEIGHT=21
---Shader location: samplerCube texture: cubemap
RL.SHADER_LOC_MAP_CUBEMAP=22
---Shader location: samplerCube texture: irradiance
RL.SHADER_LOC_MAP_IRRADIANCE=23
---Shader location: samplerCube texture: prefilter
RL.SHADER_LOC_MAP_PREFILTER=24
---Shader location: sampler2d texture: brdf
RL.SHADER_LOC_MAP_BRDF=25
---Shader location: sampler2d texture: diffuce (same as: SHADER_LOC_MAP_ALBEDO)
RL.SHADER_LOC_MAP_DIFFUSE=15
---Shader location: sampler2d texture: specular (same as: SHADER_LOC_MAP_METALNESS)
RL.SHADER_LOC_MAP_SPECULAR=16
-- Defines - Shader uniform data type
---Shader uniform type: float
RL.SHADER_UNIFORM_FLOAT=0
---Shader uniform type: vec2 (2 float)
RL.SHADER_UNIFORM_VEC2=1
---Shader uniform type: vec3 (3 float)
RL.SHADER_UNIFORM_VEC3=2
---Shader uniform type: vec4 (4 float)
RL.SHADER_UNIFORM_VEC4=3
---Shader uniform type: int
RL.SHADER_UNIFORM_INT=4
---Shader uniform type: ivec2 (2 int)
RL.SHADER_UNIFORM_IVEC2=5
---Shader uniform type: ivec3 (3 int)
RL.SHADER_UNIFORM_IVEC3=6
---Shader uniform type: ivec4 (4 int)
RL.SHADER_UNIFORM_IVEC4=7
---Shader uniform type: sampler2d
RL.SHADER_UNIFORM_SAMPLER2D=8
-- Defines - Shader attribute data types
---Shader attribute type: float
RL.SHADER_ATTRIB_FLOAT=0
---Shader attribute type: vec2 (2 float)
RL.SHADER_ATTRIB_VEC2=1
---Shader attribute type: vec3 (3 float)
RL.SHADER_ATTRIB_VEC3=2
---Shader attribute type: vec4 (4 float)
RL.SHADER_ATTRIB_VEC4=3
-- Defines - Pixel formats
---8 bit per pixel (no alpha)
RL.PIXELFORMAT_UNCOMPRESSED_GRAYSCALE=1
---8*2 bpp (2 channels)
RL.PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA=2
---16 bpp
RL.PIXELFORMAT_UNCOMPRESSED_R5G6B5=3
---24 bpp
RL.PIXELFORMAT_UNCOMPRESSED_R8G8B8=4
---16 bpp (1 bit alpha)
RL.PIXELFORMAT_UNCOMPRESSED_R5G5B5A1=5
---16 bpp (4 bit alpha)
RL.PIXELFORMAT_UNCOMPRESSED_R4G4B4A4=6
---32 bpp
RL.PIXELFORMAT_UNCOMPRESSED_R8G8B8A8=7
---32 bpp (1 channel - float)
RL.PIXELFORMAT_UNCOMPRESSED_R32=8
---32*3 bpp (3 channels - float)
RL.PIXELFORMAT_UNCOMPRESSED_R32G32B32=9
---32*4 bpp (4 channels - float)
RL.PIXELFORMAT_UNCOMPRESSED_R32G32B32A32=10
---4 bpp (no alpha)
RL.PIXELFORMAT_COMPRESSED_DXT1_RGB=14
---4 bpp (1 bit alpha)
RL.PIXELFORMAT_COMPRESSED_DXT1_RGBA=15
---8 bpp
RL.PIXELFORMAT_COMPRESSED_DXT3_RGBA=16
---8 bpp
RL.PIXELFORMAT_COMPRESSED_DXT5_RGBA=17
---4 bpp
RL.PIXELFORMAT_COMPRESSED_ETC1_RGB=18
---4 bpp
RL.PIXELFORMAT_COMPRESSED_ETC2_RGB=19
---8 bpp
RL.PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA=20
---4 bpp
RL.PIXELFORMAT_COMPRESSED_PVRT_RGB=21
---4 bpp
RL.PIXELFORMAT_COMPRESSED_PVRT_RGBA=22
---8 bpp
RL.PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA=23
---2 bpp
RL.PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA=24
-- Defines - Texture parameters: filter mode
---No filter, just pixel approximation
RL.TEXTURE_FILTER_POINT=0
---Linear filtering
RL.TEXTURE_FILTER_BILINEAR=1
---Trilinear filtering (linear with mipmaps)
RL.TEXTURE_FILTER_TRILINEAR=2
---Anisotropic filtering 4x
RL.TEXTURE_FILTER_ANISOTROPIC_4X=3
---Anisotropic filtering 8x
RL.TEXTURE_FILTER_ANISOTROPIC_8X=4
---Anisotropic filtering 16x
RL.TEXTURE_FILTER_ANISOTROPIC_16X=5
-- Defines - Texture parameters: wrap mode
---Repeats texture in tiled mode
RL.TEXTURE_WRAP_REPEAT=0
---Clamps texture to edge pixel in tiled mode
RL.TEXTURE_WRAP_CLAMP=1
---Mirrors and repeats the texture in tiled mode
RL.TEXTURE_WRAP_MIRROR_REPEAT=2
---Mirrors and clamps to border the texture in tiled mode
RL.TEXTURE_WRAP_MIRROR_CLAMP=3
-- Defines - Cubemap layouts
---Automatically detect layout type
RL.CUBEMAP_LAYOUT_AUTO_DETECT=0
---Layout is defined by a vertical line with faces
RL.CUBEMAP_LAYOUT_LINE_VERTICAL=1
---Layout is defined by a horizontal line with faces
RL.CUBEMAP_LAYOUT_LINE_HORIZONTAL=2
---Layout is defined by a 3x4 cross with cubemap faces
RL.CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR=3
---Layout is defined by a 4x3 cross with cubemap faces
RL.CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE=4
---Layout is defined by a panorama image (equirrectangular map)
RL.CUBEMAP_LAYOUT_PANORAMA=5
-- Defines - Font type, defines generation method
---Default font generation, anti-aliased
RL.FONT_DEFAULT=0
---Bitmap font generation, no anti-aliasing
RL.FONT_BITMAP=1
---SDF font generation, requires external shader
RL.FONT_SDF=2
-- Defines - Color blending modes (pre-defined)
---Blend textures considering alpha (default)
RL.BLEND_ALPHA=0
---Blend textures adding colors
RL.BLEND_ADDITIVE=1
---Blend textures multiplying colors
RL.BLEND_MULTIPLIED=2
---Blend textures adding colors (alternative)
RL.BLEND_ADD_COLORS=3
---Blend textures subtracting colors (alternative)
RL.BLEND_SUBTRACT_COLORS=4
---Blend premultiplied textures considering alpha
RL.BLEND_ALPHA_PREMULTIPLY=5
---Blend textures using custom src/dst factors (use rlSetBlendFactors())
RL.BLEND_CUSTOM=6
---Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate())
RL.BLEND_CUSTOM_SEPARATE=7
-- Defines - Gesture
---No gesture
RL.GESTURE_NONE=0
---Tap gesture
RL.GESTURE_TAP=1
---Double tap gesture
RL.GESTURE_DOUBLETAP=2
---Hold gesture
RL.GESTURE_HOLD=4
---Drag gesture
RL.GESTURE_DRAG=8
---Swipe right gesture
RL.GESTURE_SWIPE_RIGHT=16
---Swipe left gesture
RL.GESTURE_SWIPE_LEFT=32
---Swipe up gesture
RL.GESTURE_SWIPE_UP=64
---Swipe down gesture
RL.GESTURE_SWIPE_DOWN=128
---Pinch in gesture
RL.GESTURE_PINCH_IN=256
---Pinch out gesture
RL.GESTURE_PINCH_OUT=512
-- Defines - Camera system modes
---Custom camera
RL.CAMERA_CUSTOM=0
---Free camera
RL.CAMERA_FREE=1
---Orbital camera
RL.CAMERA_ORBITAL=2
---First person camera
RL.CAMERA_FIRST_PERSON=3
---Third person camera
RL.CAMERA_THIRD_PERSON=4
-- Defines - Camera projection
---Perspective projection
RL.CAMERA_PERSPECTIVE=0
---Orthographic projection
RL.CAMERA_ORTHOGRAPHIC=1
-- Defines - N-patch layout
---Npatch layout: 3x3 tiles
RL.NPATCH_NINE_PATCH=0
---Npatch layout: 1x3 tiles
RL.NPATCH_THREE_PATCH_VERTICAL=1
---Npatch layout: 3x1 tiles
RL.NPATCH_THREE_PATCH_HORIZONTAL=2
-- Defines - Colors
---Light Gray
RL.LIGHTGRAY={200,200,200,255}
---Gray
RL.GRAY={130,130,130,255}
---Dark Gray
RL.DARKGRAY={80,80,80,255}
---Yellow
RL.YELLOW={253,249,0,255}
---Gold
RL.GOLD={255,203,0,255}
---Orange
RL.ORANGE={255,161,0,255}
---Pink
RL.PINK={255,109,194,255}
---Red
RL.RED={230,41,55,255}
---Maroon
RL.MAROON={190,33,55,255}
---Green
RL.GREEN={0,228,48,255}
---Lime
RL.LIME={0,158,47,255}
---Dark Green
RL.DARKGREEN={0,117,44,255}
---Sky Blue
RL.SKYBLUE={102,191,255,255}
---Blue
RL.BLUE={0,121,241,255}
---Dark Blue
RL.DARKBLUE={0,82,172,255}
---Purple
RL.PURPLE={200,122,255,255}
---Violet
RL.VIOLET={135,60,190,255}
---Dark Purple
RL.DARKPURPLE={112,31,126,255}
---Beige
RL.BEIGE={211,176,131,255}
---Brown
RL.BROWN={127,106,79,255}
---Dark Brown
RL.DARKBROWN={76,63,47,255}
---White
RL.WHITE={255,255,255,255}
---Black
RL.BLACK={0,0,0,255}
---Blank (Transparent)
RL.BLANK={0,0,0,0}
---Magenta
RL.MAGENTA={255,0,255,255}
---My own White (raylib logo)
RL.RAYWHITE={245,245,245,255}
-- Defines - Math
---Pi
RL.PI=3.1415927410126
---Degrees to radians
RL.DEG2RAD=0.017453292384744
---Radians to degrees
RL.RAD2DEG=57.295776367188
-- Defines - Gui control state
RL.STATE_NORMAL=0
RL.STATE_FOCUSED=1
RL.STATE_PRESSED=2
RL.STATE_DISABLED=3
-- Defines - Gui control text alignment
RL.TEXT_ALIGN_LEFT=0
RL.TEXT_ALIGN_CENTER=1
RL.TEXT_ALIGN_RIGHT=2
-- Defines - Gui control text alignment vertical
RL.TEXT_ALIGN_TOP=0
RL.TEXT_ALIGN_MIDDLE=1
RL.TEXT_ALIGN_BOTTOM=2
-- Defines - Gui control text wrap mode
RL.TEXT_WRAP_NONE=0
RL.TEXT_WRAP_CHAR=1
RL.TEXT_WRAP_WORD=2
-- Defines - Gui controls
RL.DEFAULT=0
---Used also for: LABELBUTTON
RL.LABEL=1
RL.BUTTON=2
---Used also for: TOGGLEGROUP
RL.TOGGLE=3
---Used also for: SLIDERBAR
RL.SLIDER=4
RL.PROGRESSBAR=5
RL.CHECKBOX=6
RL.COMBOBOX=7
RL.DROPDOWNBOX=8
---Used also for: TEXTBOXMULTI
RL.TEXTBOX=9
RL.VALUEBOX=10
---Uses: BUTTON, VALUEBOX
RL.SPINNER=11
RL.LISTVIEW=12
RL.COLORPICKER=13
RL.SCROLLBAR=14
RL.STATUSBAR=15
-- Defines - Gui base properties for every control
RL.BORDER_COLOR_NORMAL=0
RL.BASE_COLOR_NORMAL=1
RL.TEXT_COLOR_NORMAL=2
RL.BORDER_COLOR_FOCUSED=3
RL.BASE_COLOR_FOCUSED=4
RL.TEXT_COLOR_FOCUSED=5
RL.BORDER_COLOR_PRESSED=6
RL.BASE_COLOR_PRESSED=7
RL.TEXT_COLOR_PRESSED=8
RL.BORDER_COLOR_DISABLED=9
RL.BASE_COLOR_DISABLED=10
RL.TEXT_COLOR_DISABLED=11
RL.BORDER_WIDTH=12
RL.TEXT_PADDING=13
RL.TEXT_ALIGNMENT=14
-- Defines - Gui extended properties depend on control
---Text size (glyphs max height)
RL.TEXT_SIZE=16
---Text spacing between glyphs
RL.TEXT_SPACING=17
---Line control color
RL.LINE_COLOR=18
---Background color
RL.BACKGROUND_COLOR=19
---Text spacing between lines
RL.TEXT_LINE_SPACING=20
---Text vertical alignment inside text bounds (after border and padding)
RL.TEXT_ALIGNMENT_VERTICAL=21
---Text wrap-mode inside text bounds
RL.TEXT_WRAP_MODE=22
-- Defines - Gui Toggle/ToggleGroup
---ToggleGroup separation between toggles
RL.GROUP_PADDING=16
-- Defines - Gui Slider/SliderBar
---Slider size of internal bar
RL.SLIDER_WIDTH=16
---Slider/SliderBar internal bar padding
RL.SLIDER_PADDING=17
-- Defines - Gui ProgressBar
---ProgressBar internal padding
RL.PROGRESS_PADDING=16
-- Defines - Gui ScrollBar
RL.ARROWS_SIZE=16
RL.ARROWS_VISIBLE=17
---(SLIDERBAR, SLIDER_PADDING)
RL.SCROLL_SLIDER_PADDING=18
RL.SCROLL_SLIDER_SIZE=19
RL.SCROLL_PADDING=20
RL.SCROLL_SPEED=21
-- Defines - Gui CheckBox
---CheckBox internal check padding
RL.CHECK_PADDING=16
-- Defines - Gui ComboBox
---ComboBox right button width
RL.COMBO_BUTTON_WIDTH=16
---ComboBox button separation
RL.COMBO_BUTTON_SPACING=17
-- Defines - Gui DropdownBox
---DropdownBox arrow separation from border and items
RL.ARROW_PADDING=16
---DropdownBox items separation
RL.DROPDOWN_ITEMS_SPACING=17
-- Defines - Gui TextBox/TextBoxMulti/ValueBox/Spinner
---TextBox in read-only mode: 0-text editable, 1-text no-editable
RL.TEXT_READONLY=16
-- Defines - Gui Spinner
---Spinner left/right buttons width
RL.SPIN_BUTTON_WIDTH=16
---Spinner buttons separation
RL.SPIN_BUTTON_SPACING=17
-- Defines - Gui ListView
---ListView items height
RL.LIST_ITEMS_HEIGHT=16
---ListView items separation
RL.LIST_ITEMS_SPACING=17
---ListView scrollbar size (usually width)
RL.SCROLLBAR_WIDTH=18
---ListView scrollbar side (0-left, 1-right)
RL.SCROLLBAR_SIDE=19
-- Defines - Gui ColorPicker
RL.COLOR_SELECTOR_SIZE=16
---ColorPicker right hue bar width
RL.HUEBAR_WIDTH=17
---ColorPicker right hue bar separation from panel
RL.HUEBAR_PADDING=18
---ColorPicker right hue bar selector height
RL.HUEBAR_SELECTOR_HEIGHT=19
---ColorPicker right hue bar selector overflow
RL.HUEBAR_SELECTOR_OVERFLOW=20
-- Defines - Light type
---Directional light
RL.LIGHT_DIRECTIONAL=0
---Point light
RL.LIGHT_POINT=1
-- Defines - RLGL Default internal render batch elements limits
---Default internal render batch elements limits
RL.RL_DEFAULT_BATCH_BUFFER_ELEMENTS=8192
---Default number of batch buffers (multi-buffering)
RL.RL_DEFAULT_BATCH_BUFFERS=1
---Default number of batch draw calls (by state changes: mode, texture)
RL.RL_DEFAULT_BATCH_DRAWCALLS=256
---Maximum number of textures units that can be activated on batch drawing (SetShaderValueTexture())
RL.RL_DEFAULT_BATCH_MAX_TEXTURE_UNITS=4
-- Defines - RLGL Internal Matrix stack
---Maximum size of internal Matrix stack
RL.RL_MAX_MATRIX_STACK_SIZE=32
-- Defines - RLGL Shader limits
---Maximum number of shader locations supported
RL.RL_MAX_SHADER_LOCATIONS=32
-- Defines - RLGL Projection matrix culling
---Default projection matrix near cull distance
RL.RL_CULL_DISTANCE_NEAR=0.01
---Default projection matrix far cull distance
RL.RL_CULL_DISTANCE_FAR=1000.0
-- Defines - RLGL Texture parameters
---GL_TEXTURE_WRAP_S
RL.RL_TEXTURE_WRAP_S=10242
---GL_TEXTURE_WRAP_T
RL.RL_TEXTURE_WRAP_T=10243
---GL_TEXTURE_MAG_FILTER
RL.RL_TEXTURE_MAG_FILTER=10240
---GL_TEXTURE_MIN_FILTER
RL.RL_TEXTURE_MIN_FILTER=10241
---GL_NEAREST
RL.RL_TEXTURE_FILTER_NEAREST=9728
---GL_LINEAR
RL.RL_TEXTURE_FILTER_LINEAR=9729
---GL_NEAREST_MIPMAP_NEAREST
RL.RL_TEXTURE_FILTER_MIP_NEAREST=9984
---GL_NEAREST_MIPMAP_LINEAR
RL.RL_TEXTURE_FILTER_NEAREST_MIP_LINEAR=9986
---GL_LINEAR_MIPMAP_NEAREST
RL.RL_TEXTURE_FILTER_LINEAR_MIP_NEAREST=9985
---GL_LINEAR_MIPMAP_LINEAR
RL.RL_TEXTURE_FILTER_MIP_LINEAR=9987
---Anisotropic filter (custom identifier)
RL.RL_TEXTURE_FILTER_ANISOTROPIC=12288
---Texture mipmap bias, percentage ratio (custom identifier)
RL.RL_TEXTURE_MIPMAP_BIAS_RATIO=16384
---GL_REPEAT
RL.RL_TEXTURE_WRAP_REPEAT=10497
---GL_CLAMP_TO_EDGE
RL.RL_TEXTURE_WRAP_CLAMP=33071
---GL_MIRRORED_REPEAT
RL.RL_TEXTURE_WRAP_MIRROR_REPEAT=33648
---GL_MIRROR_CLAMP_EXT
RL.RL_TEXTURE_WRAP_MIRROR_CLAMP=34626
-- Defines - RLGL Matrix modes (equivalent to OpenGL)
---GL_MODELVIEW
RL.RL_MODELVIEW=5888
---GL_PROJECTION
RL.RL_PROJECTION=5889
---GL_TEXTURE
RL.RL_TEXTURE=5890
-- Defines - RLGL Primitive assembly draw modes
---GL_LINES
RL.RL_LINES=1
---GL_TRIANGLES
RL.RL_TRIANGLES=4
---GL_QUADS
RL.RL_QUADS=7
-- Defines - RLGL GL equivalent data types
---GL_UNSIGNED_BYTE
RL.RL_UNSIGNED_BYTE=5121
---GL_FLOAT
RL.RL_FLOAT=5126
-- Defines - RLGL GL buffer usage hint
---GL_STREAM_DRAW
RL.RL_STREAM_DRAW=35040
---GL_STREAM_READ
RL.RL_STREAM_READ=35041
---GL_STREAM_COPY
RL.RL_STREAM_COPY=35042
---GL_STATIC_DRAW
RL.RL_STATIC_DRAW=35044
---GL_STATIC_READ
RL.RL_STATIC_READ=35045
---GL_STATIC_COPY
RL.RL_STATIC_COPY=35046
---GL_DYNAMIC_DRAW
RL.RL_DYNAMIC_DRAW=35048
---GL_DYNAMIC_READ
RL.RL_DYNAMIC_READ=35049
---GL_DYNAMIC_COPY
RL.RL_DYNAMIC_COPY=35050
-- Defines - RLGL Shader type
---GL_FRAGMENT_SHADER
RL.RL_FRAGMENT_SHADER=35632
---GL_VERTEX_SHADER
RL.RL_VERTEX_SHADER=35633
---GL_COMPUTE_SHADER
RL.RL_COMPUTE_SHADER=37305
-- Defines - RLGL GlVersion
---GL_ZERO
RL.RL_ZERO=0
---GL_ONE
RL.RL_ONE=1
---GL_SRC_COLOR
RL.RL_SRC_COLOR=768
---GL_ONE_MINUS_SRC_COLOR
RL.RL_ONE_MINUS_SRC_COLOR=769
---GL_SRC_ALPHA
RL.RL_SRC_ALPHA=770
---GL_ONE_MINUS_SRC_ALPHA
RL.RL_ONE_MINUS_SRC_ALPHA=771
---GL_DST_ALPHA
RL.RL_DST_ALPHA=772
---GL_ONE_MINUS_DST_ALPHA
RL.RL_ONE_MINUS_DST_ALPHA=773
---GL_DST_COLOR
RL.RL_DST_COLOR=774
---GL_ONE_MINUS_DST_COLOR
RL.RL_ONE_MINUS_DST_COLOR=775
---GL_SRC_ALPHA_SATURATE
RL.RL_SRC_ALPHA_SATURATE=776
---GL_CONSTANT_COLOR
RL.RL_CONSTANT_COLOR=32769
---GL_ONE_MINUS_CONSTANT_COLOR
RL.RL_ONE_MINUS_CONSTANT_COLOR=32770
---GL_CONSTANT_ALPHA
RL.RL_CONSTANT_ALPHA=32771
---GL_ONE_MINUS_CONSTANT_ALPHA
RL.RL_ONE_MINUS_CONSTANT_ALPHA=32772
-- Defines - RLGL GL blending functions/equations
---GL_FUNC_ADD
RL.RL_FUNC_ADD=32774
---GL_MIN
RL.RL_MIN=32775
---GL_MAX
RL.RL_MAX=32776
---GL_FUNC_SUBTRACT
RL.RL_FUNC_SUBTRACT=32778
---GL_FUNC_REVERSE_SUBTRACT
RL.RL_FUNC_REVERSE_SUBTRACT=32779
---GL_BLEND_EQUATION
RL.RL_BLEND_EQUATION=32777
---GL_BLEND_EQUATION_RGB // (Same as BLEND_EQUATION)
RL.RL_BLEND_EQUATION_RGB=32777
---GL_BLEND_EQUATION_ALPHA
RL.RL_BLEND_EQUATION_ALPHA=34877
---GL_BLEND_DST_RGB
RL.RL_BLEND_DST_RGB=32968
---GL_BLEND_SRC_RGB
RL.RL_BLEND_SRC_RGB=32969
---GL_BLEND_DST_ALPHA
RL.RL_BLEND_DST_ALPHA=32970
---GL_BLEND_SRC_ALPHA
RL.RL_BLEND_SRC_ALPHA=32971
---GL_BLEND_COLOR
RL.RL_BLEND_COLOR=32773
-- Defines - RLGL GlVersion
---OpenGL 1.1
RL.RL_OPENGL_11=1
---OpenGL 2.1 (GLSL 120)
RL.RL_OPENGL_21=2
---OpenGL 3.3 (GLSL 330)
RL.RL_OPENGL_33=3
---OpenGL 4.3 (using GLSL 330)
RL.RL_OPENGL_43=4
---OpenGL ES 2.0 (GLSL 100)
RL.RL_OPENGL_ES_20=5
-- Defines - RLGL Framebuffer attachment type
---Framebuffer attachment type: color 0
RL.RL_ATTACHMENT_COLOR_CHANNEL0=0
---Framebuffer attachment type: color 1
RL.RL_ATTACHMENT_COLOR_CHANNEL1=1
---Framebuffer attachment type: color 2
RL.RL_ATTACHMENT_COLOR_CHANNEL2=2
---Framebuffer attachment type: color 3
RL.RL_ATTACHMENT_COLOR_CHANNEL3=3
---Framebuffer attachment type: color 4
RL.RL_ATTACHMENT_COLOR_CHANNEL4=4
---Framebuffer attachment type: color 5
RL.RL_ATTACHMENT_COLOR_CHANNEL5=5
---Framebuffer attachment type: color 6
RL.RL_ATTACHMENT_COLOR_CHANNEL6=6
---Framebuffer attachment type: color 7
RL.RL_ATTACHMENT_COLOR_CHANNEL7=7
---Framebuffer attachment type: depth
RL.RL_ATTACHMENT_DEPTH=100
---Framebuffer attachment type: stencil
RL.RL_ATTACHMENT_STENCIL=200
-- Defines - RLGL Framebuffer texture attachment type
---Framebuffer texture attachment type: cubemap, +X side
RL.RL_ATTACHMENT_CUBEMAP_POSITIVE_X=0
---Framebuffer texture attachment type: cubemap, -X side
RL.RL_ATTACHMENT_CUBEMAP_NEGATIVE_X=1
---Framebuffer texture attachment type: cubemap, +Y side
RL.RL_ATTACHMENT_CUBEMAP_POSITIVE_Y=2
---Framebuffer texture attachment type: cubemap, -Y side
RL.RL_ATTACHMENT_CUBEMAP_NEGATIVE_Y=3
---Framebuffer texture attachment type: cubemap, +Z side
RL.RL_ATTACHMENT_CUBEMAP_POSITIVE_Z=4
---Framebuffer texture attachment type: cubemap, -Z side
RL.RL_ATTACHMENT_CUBEMAP_NEGATIVE_Z=5
---Framebuffer texture attachment type: texture2d
RL.RL_ATTACHMENT_TEXTURE2D=100
---Framebuffer texture attachment type: renderbuffer
RL.RL_ATTACHMENT_RENDERBUFFER=200
-- Defines - RLGL CullMode
RL.RL_CULL_FACE_FRONT=0
RL.RL_CULL_FACE_BACK=1
-- Defines - OpenGL
RL.GL_COLOR_BUFFER_BIT=16384
RL.GL_DEPTH_BUFFER_BIT=256
RL.GL_STENCIL_BUFFER_BIT=1024
RL.GL_NEAREST=9728
RL.GL_LINEAR=9729
-- Defines - CBuffer Data types
---C type unsigned char
RL.BUFFER_UNSIGNED_CHAR=0
---C type unsigned short
RL.BUFFER_UNSIGNED_SHORT=1
---C type unsigned int
RL.BUFFER_UNSIGNED_INT=2
---C type char
RL.BUFFER_CHAR=3
---C type short
RL.BUFFER_SHORT=4
---C type int
RL.BUFFER_INT=5
---C type float
RL.BUFFER_FLOAT=6
---C type double
RL.BUFFER_DOUBLE=7
-- Defines - Keyboard keys (US keyboard layout)
---Key: Unknown
RL.GLFW_KEY_UNKNOWN=-1
-- Defines - GLFW API tokens.
---The key or mouse button was released
RL.GLFW_RELEASE=0
---The key or mouse button was pressed
RL.GLFW_PRESS=1
---The key was held down until it repeated
RL.GLFW_REPEAT=2
---Joystick connected
RL.GLFW_CONNECTED=262145
---Joystick disconnected
RL.GLFW_DISCONNECTED=262146
-- Defines - GLFW Window Events.
---GLFW event window size changed
RL.GLFW_WINDOW_SIZE_EVENT=0
---GLFW event window maximize
RL.GLFW_WINDOW_MAXIMIZE_EVENT=1
---GLFW event window iconify
RL.GLFW_WINDOW_ICONYFY_EVENT=2
---GLFW event window focus
RL.GLFW_WINDOW_FOCUS_EVENT=3
---GLFW event window drop
RL.GLFW_WINDOW_DROP_EVENT=4
-- Defines - GLFW Input Events.
---GLFW event keyboard key
RL.GLFW_KEY_EVENT=5
---GLFW event Unicode character
RL.GLFW_CHAR_EVENT=6
---GLFW event mouse button
RL.GLFW_MOUSE_BUTTON_EVENT=7
---GLFW event cursor position
RL.GLFW_MOUSE_CURSOR_POS_EVENT=8
---GLFW event mouse scroll
RL.GLFW_MOUSE_SCROLL_EVENT=9
---GLFW event cursor enter/leave
RL.GLFW_CURSOR_ENTER_EVENT=10
---GLFW event joystick
RL.GLFW_JOYSTICK_EVENT=11
-- Defines - GLFW Pen Tablet Events. NOTE! Experimental. Needs glfw PR https://github.com/glfw/glfw/pull/1445.
---// GLFW event pen tablet data
RL.assignGlobalInt=nil
---// GLFW event pen tablet cursor
RL.assignGlobalInt=nil
---// GLFW event pen tablet proximity
RL.assignGlobalInt=nil
-- Core - Window-related functions
---Close window and unload OpenGL context and free all resources
---@return any RL.CloseWindow
function RL.CloseWindow() end
---Check if window has been initialized successfully
---- Success return bool
---@return any state
function RL.IsWindowReady() end
---Check if window is currently fullscreen
---- Success return bool
---@return any state
function RL.IsWindowFullscreen() end
---Check if window is currently hidden (only PLATFORM_DESKTOP)
---- Success return bool
---@return any state
function RL.IsWindowHidden() end
---Check if window is currently minimized (only PLATFORM_DESKTOP)
---- Success return bool
---@return any state
function RL.IsWindowMinimized() end
---Check if window is currently maximized (only PLATFORM_DESKTOP)
---- Success return bool
---@return any state
function RL.IsWindowMaximized() end
---Check if window is currently focused (only PLATFORM_DESKTOP)
---- Success return bool
---@return any state
function RL.IsWindowFocused() end
---Check if window has been resized from last frame
---- Success return bool
---@return any resized
function RL.IsWindowResized() end
---Check if one specific window flag is enabled (FLAG_FULLSCREEN_MODE, FLAG_WINDOW_RESIZABLE...)
---- Success return bool
---@param flag integer
---@return any state
function RL.IsWindowState( flag ) end
---Set window configuration state using flags (FLAG_FULLSCREEN_MODE, FLAG_WINDOW_RESIZABLE...)
---@param flag integer
---@return any RL.SetWindowState
function RL.SetWindowState( flag ) end
---Clear window configuration state flags (FLAG_FULLSCREEN_MODE, FLAG_WINDOW_RESIZABLE...)
---- Success return bool
---@param flag integer
---@return any resized
function RL.ClearWindowState( flag ) end
---Toggle window state: fullscreen/windowed (only PLATFORM_DESKTOP)
---@return any RL.ToggleFullscreen
function RL.ToggleFullscreen() end
---Toggle window state: borderless windowed (only PLATFORM_DESKTOP)
---@return any RL.ToggleBorderlessWindowed
function RL.ToggleBorderlessWindowed() end
---Set window state: maximized, if resizable (only PLATFORM_DESKTOP)
---@return any RL.MaximizeWindow
function RL.MaximizeWindow() end
---Set window state: minimized, if resizable (only PLATFORM_DESKTOP)
---@return any RL.MinimizeWindow
function RL.MinimizeWindow() end
---Set window state: not minimized/maximized (only PLATFORM_DESKTOP)
---@return any RL.RestoreWindow
function RL.RestoreWindow() end
---Set icon for window (Only PLATFORM_DESKTOP)
---@param image any
---@return any RL.SetWindowIcon
function RL.SetWindowIcon( image ) end
---Set icon for window (multiple images, RGBA 32bit, only PLATFORM_DESKTOP)
---@param images table
---@return any RL.SetWindowIcons
function RL.SetWindowIcons( images ) end
---Set title for window (only PLATFORM_DESKTOP and PLATFORM_WEB)
---@param title string
---@return any RL.SetWindowTitle
function RL.SetWindowTitle( title ) end
---Set window position on screen
---@param pos table
---@return any RL.SetWindowPosition
function RL.SetWindowPosition( pos ) end
---Set monitor for the current window
---@param monitor integer
---@return any RL.SetWindowMonitor
function RL.SetWindowMonitor( monitor ) end
---Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE)
---@param size table
---@return any RL.SetWindowMinSize
function RL.SetWindowMinSize( size ) end
---Set window maximum dimensions (for FLAG_WINDOW_RESIZABLE)
---@param size table
---@return any RL.SetWindowMaxSize
function RL.SetWindowMaxSize( size ) end
---Set window dimensions
---@param size table
---@return any RL.SetWindowSize
function RL.SetWindowSize( size ) end
---Set window opacity [0.0f..1.0f] (only PLATFORM_DESKTOP)
---@param opacity number
---@return any RL.SetWindowOpacity
function RL.SetWindowOpacity( opacity ) end
---Set window focused (only PLATFORM_DESKTOP)
---@return any RL.SetWindowFocused
function RL.SetWindowFocused() end
---Get native window handle. Return as lightuserdata
---- Success return lightuserdata
---@return any windowHandle
function RL.GetWindowHandle() end
---Get screen size
---- Success return Vector2
---@return any size
function RL.GetScreenSize() end
---Get render size
---- Success return Vector2
---@return any size
function RL.GetRenderSize() end
---Get number of connected monitors
---- Success return int
---@return any count
function RL.GetMonitorCount() end
---Get current connected monitor
---- Success return int
---@return any monitor
function RL.GetCurrentMonitor() end
---Get specified monitor position
---- Success return Vector2
---@param monitor integer
---@return any position
function RL.GetMonitorPosition( monitor ) end
---Get specified monitor size
---- Success return Vector2
---@param monitor integer
---@return any size
function RL.GetMonitorSize( monitor ) end
---Get specified monitor physical size in millimetres
---- Success return Vector2
---@param monitor integer
---@return any size
function RL.GetMonitorPhysicalSize( monitor ) end
---Get specified monitor refresh rate
---- Success return int
---@param monitor integer
---@return any refreshRate
function RL.GetMonitorRefreshRate( monitor ) end
---Get window position on monitor
---- Success return Vector2
---@return any position
function RL.GetWindowPosition() end
---Get window scale DPI factor
---- Success return Vector2
---@return any dpi
function RL.GetWindowScaleDPI() end
---Get the human-readable, UTF-8 encoded name of the specified monitor
---- Success return string
---@param monitor integer
---@return any name
function RL.GetMonitorName( monitor ) end
---Set clipboard text content
---@param text string
---@return any RL.SetClipboardText
function RL.SetClipboardText( text ) end
---Get clipboard text content
---- Success return string
---@return any text
function RL.GetClipboardText() end
-- Core - Cursor-related functions
---Shows cursor
---@return any RL.ShowCursor
function RL.ShowCursor() end
---Hides cursor
---@return any RL.HideCursor
function RL.HideCursor() end
---Check if cursor is not visible
---- Success return bool
---@return any hidden
function RL.IsCursorHidden() end
---Enables cursor (unlock cursor)
---@return any RL.EnableCursor
function RL.EnableCursor() end
---Disables cursor (lock cursor)
---@return any RL.DisableCursor
function RL.DisableCursor() end
---Check if cursor is on the screen
---- Success return bool
---@return any onSreen
function RL.IsCursorOnScreen() end
-- Core - Drawing-related functions
---Set background color (framebuffer clear color)
---@param color table
---@return any RL.ClearBackground
function RL.ClearBackground( color ) end
---Setup canvas (framebuffer) to start drawing
---@return any RL.BeginDrawing
function RL.BeginDrawing() end
---End canvas drawing and swap buffers (double buffering)
---@return any RL.EndDrawing
function RL.EndDrawing() end
---Begin 2D mode with custom camera (2D)
---@param camera any
---@return any RL.BeginMode2D
function RL.BeginMode2D( camera ) end
---Ends 2D mode with custom camera
---@return any RL.EndMode2D
function RL.EndMode2D() end
---Begin 3D mode with custom camera (3D)
---@param camera any
---@return any RL.BeginMode3D
function RL.BeginMode3D( camera ) end
---Ends 3D mode and returns to default 2D orthographic mode
---@return any RL.EndMode3D
function RL.EndMode3D() end
---Begin drawing to render texture
---@param target any
---@return any RL.BeginTextureMode
function RL.BeginTextureMode( target ) end
---Ends drawing to render texture
---@return any RL.EndTextureMode
function RL.EndTextureMode() end
---Begin custom shader drawing
---@param shader any
---@return any RL.BeginShaderMode
function RL.BeginShaderMode( shader ) end
---End custom shader drawing (use default shader)
---@return any RL.EndShaderMode
function RL.EndShaderMode() end
---Begin blending mode (BLEND_ALPHA, BLEND_ADDITIVE, BLEND_MULTIPLIED...)
---@param mode integer
---@return any RL.BeginBlendMode
function RL.BeginBlendMode( mode ) end
---End blending mode (reset to default: BLEND_ALPHA)
---@return any RL.EndBlendMode
function RL.EndBlendMode() end
---Begin scissor mode (define screen area for following drawing)
---@param rectange table
---@return any RL.BeginScissorMode
function RL.BeginScissorMode( rectange ) end
---End scissor mode
---@return any RL.EndScissorMode
function RL.EndScissorMode() end
-- Core - Shader management functions
---Load shader from files and bind default locations.
---NOTE: Set nil if no shader
---- Failure return nil
---- Success return Shader
---@param vsFileName string
---@param fsFileName string
---@return any shader
function RL.LoadShader( vsFileName, fsFileName ) end
---Load shader from code strings and bind default locations
---NOTE: Set nil if no shader
---- Failure return nil
---- Success return Shader
---@param vsCode string
---@param fsCode string
---@return any shader
function RL.LoadShaderFromMemory( vsCode, fsCode ) end
---Check if a shader is ready
---- Success return bool
---@param shader any
---@return any isReady
function RL.IsShaderReady( shader ) end
---Get shader uniform location
---- Success return int
---@param shader any
---@param uniformName string
---@return any location
function RL.GetShaderLocation( shader, uniformName ) end
---Get shader attribute location
---- Success return int
---@param shader any
---@param attribName string
---@return any location
function RL.GetShaderLocationAttrib( shader, attribName ) end
---Set shader location index
---@param shader any
---@param shaderLocationIndex integer
---@param location integer
---@return any RL.SetShaderLocationIndex
function RL.SetShaderLocationIndex( shader, shaderLocationIndex, location ) end
---Get shader location index
---- Success return int
---@param shader any
---@param shaderLocationIndex integer
---@return any location
function RL.GetShaderLocationIndex( shader, shaderLocationIndex ) end
---Set shader uniform value (matrix 4x4)
---@param shader any
---@param locIndex integer
---@param mat table
---@return any RL.SetShaderValueMatrix
function RL.SetShaderValueMatrix( shader, locIndex, mat ) end
---Set shader uniform value for texture (sampler2d)
---@param shader any
---@param locIndex integer
---@param texture any
---@return any RL.SetShaderValueTexture
function RL.SetShaderValueTexture( shader, locIndex, texture ) end
---Set shader uniform value
---NOTE: Even one value should be in table
---@param shader any
---@param locIndex integer
---@param values table
---@param uniformType integer
---@return any RL.SetShaderValue
function RL.SetShaderValue( shader, locIndex, values, uniformType ) end
---Set shader uniform value vector
---NOTE: Even one value should be in table
---@param shader any
---@param locIndex integer
---@param values table
---@param uniformType integer
---@param count integer
---@return any RL.SetShaderValueV
function RL.SetShaderValueV( shader, locIndex, values, uniformType, count ) end
---Unload shader from GPU memory (VRAM)
---@param shader any
---@return any RL.UnloadShader
function RL.UnloadShader( shader ) end
-- Core - Screen-space-related functions
---Get a ray trace from mouse position
---- Success return Ray
---@param mousePosition table
---@param camera any
---@return any ray
function RL.GetMouseRay( mousePosition, camera ) end
---Get camera transform matrix (view matrix)
---- Success return Matrix
---@param camera any
---@return any matrix
function RL.GetCameraMatrix( camera ) end
---Get camera 2d transform matrix
---- Success return Matrix
---@param camera any
---@return any matrix
function RL.GetCameraMatrix2D( camera ) end
---Get the screen space position for a 3d world space position
---- Success return Vector2
---@param position table
---@param camera any
---@return any position
function RL.GetWorldToScreen( position, camera ) end
---Get size position for a 3d world space position
---- Success return Vector2
---@param position table
---@param camera any
---@param size table
---@return any position
function RL.GetWorldToScreenEx( position, camera, size ) end
---Get the screen space position for a 2d camera world space position
---- Success return Vector2
---@param position table
---@param camera any
---@return any position
function RL.GetWorldToScreen2D( position, camera ) end
---Get the world space position for a 2d camera screen space position
---- Success return Vector2
---@param position table
---@param camera any
---@return any position
function RL.GetScreenToWorld2D( position, camera ) end
-- Core - Timing-related functions
---Set target FPS (maximum)
---@param fps integer
---@return any RL.SetTargetFPS
function RL.SetTargetFPS( fps ) end
---Get current FPS
---- Success return int
---@return any FPS
function RL.GetFPS() end
---Get time in seconds for last frame drawn (Delta time)
---- Success return float
---@return any delta
function RL.GetFrameTime() end
---Get elapsed time in seconds since InitWindow()
---- Success return float
---@return any time
function RL.GetTime() end
-- Core - Random values generation functions
---Set the seed for the random number generator
---@param seed integer
---@return any RL.SetRandomSeed
function RL.SetRandomSeed( seed ) end
---Get a random value between min and max (both included)
---- Success return int
---@param min integer
---@param max integer
---@return any time
function RL.GetRandomValue( min, max ) end
---Load random values sequence, no values repeated
---- Success return int{}
---@param count integer
---@param min integer
---@param max integer
---@return any sequence
function RL.LoadRandomSequence( count, min, max ) end
-- Core - Misc
---Takes a screenshot of current screen (filename extension defines format)
---@param fileName string
---@return any RL.TakeScreenshot
function RL.TakeScreenshot( fileName ) end
---Setup init configuration flags (view FLAGS)
---@param flags integer
---@return any RL.SetConfigFlags
function RL.SetConfigFlags( flags ) end
---Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR...)
---@param logLevel integer
---@param text string
---@return any RL.TraceLog
function RL.TraceLog( logLevel, text ) end
---Set the current threshold (minimum) log level
---@param logLevel integer
---@return any RL.SetTraceLogLevel
function RL.SetTraceLogLevel( logLevel ) end
---Set the log level for bad function calls and invalid data formats.
---@param logLevel integer
---@return any RL.SetLogLevelInvalid
function RL.SetLogLevelInvalid( logLevel ) end
---Get the log level for bad function calls and invalid data formats.
---- Success return int
---@return any logLevel
function RL.GetLogLevelInvalid() end
---Open URL with default system browser (if available)
---@param url string
---@return any RL.OpenURL
function RL.OpenURL( url ) end
---Check if Lua garbage collection is set to unload object data
---- Success return bool
---@return any enabled
function RL.IsGCUnloadEnabled() end
---Set Lua garbage collection to unload object data
---@param enabled boolean
---@return any RL.SetGCUnload
function RL.SetGCUnload( enabled ) end
-- Core - Files management functions
---Load file data as byte array (read). Buffer type is BUFFER_UNSIGNED_CHAR
---- Success return Buffer
---@param fileName string
---@return any buffer
function RL.LoadFileData( fileName ) end
---Save data to file from byte array (write), returns true on success
---- Success return bool
---@param fileName string
---@param Buffer any
---@return any success
function RL.SaveFileData( fileName, Buffer ) end
---Export data to code (.h), returns true on success
---- Success return bool
---@param buffer any
---@param fileName string
---@return any success
function RL.ExportDataAsCode( buffer, fileName ) end
---Load text data from file (read)
---- Success return string
---@param fileName string
---@return any text
function RL.LoadFileText( fileName ) end
---Save text data to file (write), returns true on success
---- Success return bool
---@param fileName string
---@param text string
---@return any success
function RL.SaveFileText( fileName, text ) end
-- Core - Files system functions
---Return game directory (where main.lua is located)
---- Success return string
---@return any path
function RL.GetBasePath() end
---Check if file exists
---- Success return bool
---@param fileName string
---@return any fileExists
function RL.FileExists( fileName ) end
---Check if a directory path exists
---- Success return bool
---@param dirPath string
---@return any dirExists
function RL.DirectoryExists( dirPath ) end
---Check file extension (Including point: .png, .wav)
---- Success return bool
---@param fileName string
---@param ext string
---@return any hasFileExtension
function RL.IsFileExtension( fileName, ext ) end
---Get file length in bytes (NOTE: GetFileSize() conflicts with windows.h)
---- Success return int
---@param fileName string
---@return any length
function RL.GetFileLength( fileName ) end
---Get pointer to extension for a filename string (Includes dot: '.png')
---- Success return string
---@param fileName string
---@return any extension
function RL.GetFileExtension( fileName ) end
---Get pointer to filename for a path string
---- Success return string
---@param filePath string
---@return any fileName
function RL.GetFileName( filePath ) end
---Get filename string without extension (Uses static string)
---- Success return string
---@param filePath string
---@return any fileName
function RL.GetFileNameWithoutExt( filePath ) end
---Get full path for a given fileName with path (Uses static string)
---- Success return string
---@param filePath string
---@return any filePath
function RL.GetDirectoryPath( filePath ) end
---Get previous directory path for a given path (Uses static string)
---- Success return string
---@param dirPath string
---@return any directory
function RL.GetPrevDirectoryPath( dirPath ) end
---Get current working directory (Uses static string)
---- Success return string
---@return any directory
function RL.GetWorkingDirectory() end
---Get the directory of the running application (uses static string)
---- Success return string
---@return any directory
function RL.GetApplicationDirectory() end
---Load directory filepaths
---- Success return string{}
---@param dirPath string
---@return any fileNames
function RL.LoadDirectoryFiles( dirPath ) end
---Load directory filepaths with extension filtering and recursive directory scan
---- Success return string{}
---@param basePath string
---@param filter string
---@param scanSubdirs boolean
---@return any fileNames
function RL.LoadDirectoryFilesEx( basePath, filter, scanSubdirs ) end
---Change working directory, return true on success
---- Success return bool
---@param directory string
---@return any success
function RL.ChangeDirectory( directory ) end
---Check if a given path is a file or a directory
---- Success return bool
---@param path string
---@return any isFile
function RL.IsPathFile( path ) end
---Check if a file has been dropped into window
---- Success return bool
---@return any iSFileDropped
function RL.IsFileDropped() end
---Load dropped filepaths
---- Success return string{}
---@return any files
function RL.LoadDroppedFiles() end
---Get file modification time (Last write time)
---- Success return int
---@param fileName string
---@return any time
function RL.GetFileModTime( fileName ) end
-- Core - Compression/Encoding functionality
---Compress data (DEFLATE algorithm)
---- Success return Buffer
---@param buffer any
---@return any compData
function RL.CompressData( buffer ) end
---Decompress data (DEFLATE algorithm).
---- Success Buffer
---@param compData any
---@return any decompData
function RL.DecompressData( compData ) end
---Encode data to Base64 string
---- Success return string, int
---@param data string
---@return any encodedData
---@return any outputSize
function RL.EncodeDataBase64( data ) end
---Decode Base64 string data
---- Success return string, int
---@param data string
---@return any decodedData
---@return any outputSize
function RL.DecodeDataBase64( data ) end
-- Core - Input-related functions: keyboard
---Detect if a key has been pressed once
---- Success return bool
---@param key integer
---@return any pressed
function RL.IsKeyPressed( key ) end
---Detect if a key is being pressed
---- Success return bool
---@param key integer
---@return any pressed
function RL.IsKeyDown( key ) end
---Detect if a key has been released once
---- Success return bool
---@param key integer
---@return any released
function RL.IsKeyReleased( key ) end
---Check if a key is NOT being pressed
---- Success return bool
---@param key integer
---@return any released
function RL.IsKeyUp( key ) end
---Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty
---- Success return int
---@return any keycode
function RL.GetKeyPressed() end
---Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty
---- Success return int
---@return any unicode
function RL.GetCharPressed() end
---Set a custom key to exit program (default is ESC)
---@param key integer
---@return any RL.SetExitKey
function RL.SetExitKey( key ) end
-- Core - Input-related functions: gamepads
---Detect if a gamepad is available
---- Success return bool
---@param gamepad integer
---@return any available
function RL.IsGamepadAvailable( gamepad ) end
---Return gamepad internal name id
---- Success return string
---@param gamepad integer
---@return any name
function RL.GetGamepadName( gamepad ) end
---Detect if a gamepad button has been pressed once
---- Success return bool
---@param gamepad integer
---@param button integer
---@return any pressed
function RL.IsGamepadButtonPressed( gamepad, button ) end
---Detect if a gamepad button is being pressed
---- Success return bool
---@param gamepad integer
---@param button integer
---@return any pressed
function RL.IsGamepadButtonDown( gamepad, button ) end
---Detect if a gamepad button has been released once
---- Success return bool
---@param gamepad integer
---@param button integer
---@return any released
function RL.IsGamepadButtonReleased( gamepad, button ) end
---Return gamepad axis count for a gamepad
---- Success return int
---@param gamepad integer
---@return any count
function RL.GetGamepadAxisCount( gamepad ) end
---Return axis movement value for a gamepad axis
---- Success return float
---@param gamepad integer
---@param axis integer
---@return any value
function RL.GetGamepadAxisMovement( gamepad, axis ) end
---Set internal gamepad mappings (SDL_GameControllerDB)
---- Success return int
---@param mappings string
---@return any result
function RL.SetGamepadMappings( mappings ) end
-- Core - Input-related functions: mouse
---Detect if a mouse button has been pressed once
---- Success return bool
---@param button integer
---@return any pressed
function RL.IsMouseButtonPressed( button ) end
---Detect if a mouse button is being pressed
---- Success return bool
---@param button integer
---@return any pressed
function RL.IsMouseButtonDown( button ) end
---Detect if a mouse button has been released once
---- Success return bool
---@param button integer
---@return any released
function RL.IsMouseButtonReleased( button ) end
---Check if a mouse button is NOT being pressed
---- Success return bool
---@param button integer
---@return any released
function RL.IsMouseButtonUp( button ) end
---Returns mouse position
---- Success return Vector2
---@return any position
function RL.GetMousePosition() end
---Get mouse delta between frames
---- Success return Vector2
---@return any position
function RL.GetMouseDelta() end
---Set mouse position XY
---@param position table
---@return any RL.SetMousePosition
function RL.SetMousePosition( position ) end
---Set mouse offset
---@param offset table
---@return any RL.SetMouseOffset
function RL.SetMouseOffset( offset ) end
---Set mouse scaling
---@param scale table
---@return any RL.SetMouseScale
function RL.SetMouseScale( scale ) end
---Returns mouse wheel movement Y
---- Success return float
---@return any movement
function RL.GetMouseWheelMove() end
---Set mouse cursor
---@param cursor integer
---@return any RL.SetMouseCursor
function RL.SetMouseCursor( cursor ) end
-- Core - Input-related functions: touch
---Get touch position XY for a touch point index (relative to screen size)
---- Success return Vector2
---@param index integer
---@return any position
function RL.GetTouchPosition( index ) end
---Get touch point identifier for given index
---- Success return int
---@param index integer
---@return any id
function RL.GetTouchPointId( index ) end
---Get touch point identifier for given index
---- Success return int
---@return any count
function RL.GetTouchPointCount() end
-- Core - Input-related functions: gestures
---Enable a set of gestures using flags
---@param int any
---@return any RL.SetGesturesEnabled
function RL.SetGesturesEnabled( int ) end
---Check if a gesture have been detected
---- Success return bool
---@param gesture integer
---@return any detected
function RL.IsGestureDetected( gesture ) end
---Get latest detected gesture
---- Success return int
---@return any gesture
function RL.GetGestureDetected() end
---Get gesture hold time in milliseconds
---- Success return float
---@return any time
function RL.GetGestureHoldDuration() end
---Get gesture drag vector
---- Success return Vector2
---@return any vector
function RL.GetGestureDragVector() end
---Get gesture drag angle
---- Success return float
---@return any angle
function RL.GetGestureDragAngle() end
---Get gesture pinch delta
---- Success return Vector2
---@return any vector
function RL.GetGesturePinchVector() end
---Get gesture pinch angle
---- Success return float
---@return any angle
function RL.GetGesturePinchAngle() end
-- Core - Camera2D System functions
---Return camera2D set to default configuration
---- Success return Camera2D
---@return any camera2D
function RL.CreateCamera2D() end
---Set camera target (rotation and zoom origin)
---@param camera any
---@param target table
---@return any RL.SetCamera2DTarget
function RL.SetCamera2DTarget( camera, target ) end
---Set camera offset (displacement from target)
---@param camera any
---@param offset table
---@return any RL.SetCamera2DOffset
function RL.SetCamera2DOffset( camera, offset ) end
---Set camera rotation in degrees
---@param camera any
---@param rotation number
---@return any RL.SetCamera2DRotation
function RL.SetCamera2DRotation( camera, rotation ) end
---Set camera zoom (scaling), should be 1.0f by default
---@param camera any
---@param zoom number
---@return any RL.SetCamera2DZoom
function RL.SetCamera2DZoom( camera, zoom ) end
---Get camera2D target
---- Success return Vector2
---@param camera any
---@return any target
function RL.GetCamera2DTarget( camera ) end
---Get camera2D offset
---- Success return Vector2
---@param camera any
---@return any offset
function RL.GetCamera2DOffset( camera ) end
---Get camera2D rotation
---- Success return float
---@param camera any
---@return any rotation
function RL.GetCamera2DRotation( camera ) end
---Get camera2D zoom
---- Success return float
---@param camera any
---@return any zoom
function RL.GetCamera2DZoom( camera ) end
-- Core - Camera3D System functions
---Return camera3D id set to default configuration
---- Success return int
---@return any camera
function RL.CreateCamera3D() end
---Set camera position (Remember to call "RL.UpdateCamera3D()" to apply changes)
---@param camera any
---@param position table
---@return any RL.SetCamera3DPosition
function RL.SetCamera3DPosition( camera, position ) end
---Set camera target it looks-at
---@param camera any
---@param target table
---@return any RL.SetCamera3DTarget
function RL.SetCamera3DTarget( camera, target ) end
---Set camera up vector (Rotation over it's axis)
---@param camera any
---@param up table
---@return any RL.SetCamera3DUp
function RL.SetCamera3DUp( camera, up ) end
---Set camera field-of-view apperture in Y (degrees) in perspective, used as near plane width in orthographic
---@param camera any
---@param fovy number
---@return any RL.SetCamera3DFovy
function RL.SetCamera3DFovy( camera, fovy ) end
---Set camera projection mode (CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC)
---@param camera any
---@param projection integer
---@return any RL.SetCamera3DProjection
function RL.SetCamera3DProjection( camera, projection ) end
---Get camera position
---- Success return Vector3
---@param camera any
---@return any position
function RL.GetCamera3DPosition( camera ) end
---Get camera target it looks-at
---- Success return Vector3
---@param camera any
---@return any target
function RL.GetCamera3DTarget( camera ) end
---Get camera up vector (Rotation over it's axis)
---- Success return Vector3
---@param camera any
---@return any up
function RL.GetCamera3DUp( camera ) end
---Get camera field-of-view apperture in Y (degrees) in perspective, used as near plane width in orthographic
---- Success return float
---@param camera any
---@return any fovy
function RL.GetCamera3DFovy( camera ) end
---Get camera projection mode
---- Success return int
---@param camera any
---@return any projection
function RL.GetCamera3DProjection( camera ) end
---Returns the cameras forward vector (normalized)
---- Success return Vector3
---@param camera any
---@return any forward
function RL.GetCamera3DForward( camera ) end
---Returns the cameras up vector (normalized)
---Note: The up vector might not be perpendicular to the forward vector
---- Success return Vector3
---@param camera any
---@return any up
function RL.GetCamera3DUpNormalized( camera ) end
---Returns the cameras right vector (normalized)
---- Success return Vector3
---@param camera any
---@return any right
function RL.GetCamera3DRight( camera ) end
---Moves the camera in it's forward direction
---@param camera any
---@param distance number
---@param moveInWorldPlane boolean
---@return any RL.Camera3DMoveForward
function RL.Camera3DMoveForward( camera, distance, moveInWorldPlane ) end
---Moves the camera in it's up direction
---@param camera any
---@param distance number
---@return any RL.Camera3DMoveUp
function RL.Camera3DMoveUp( camera, distance ) end
---Moves the camera target in it's current right direction
---@param camera any
---@param distance number
---@param moveInWorldPlane boolean
---@return any RL.Camera3DMoveRight
function RL.Camera3DMoveRight( camera, distance, moveInWorldPlane ) end
---Moves the camera position closer/farther to/from the camera target
---@param camera any
---@param delta number
---@return any RL.Camera3DMoveToTarget
function RL.Camera3DMoveToTarget( camera, delta ) end
---Rotates the camera around it's up vector
---Yaw is "looking left and right"
---If rotateAroundTarget is false, the camera rotates around it's position
---Note: angle must be provided in radians
---@param camera any
---@param angle number
---@param rotateAroundTarget boolean
---@return any RL.Camera3DYaw
function RL.Camera3DYaw( camera, angle, rotateAroundTarget ) end
---Rotates the camera around it's right vector, pitch is "looking up and down"
--- - lockView prevents camera overrotation (aka "somersaults")
--- - rotateAroundTarget defines if rotation is around target or around it's position
--- - rotateUp rotates the up direction as well (typically only usefull in CAMERA_FREE)
---NOTE: angle must be provided in radians
---@param camera any
---@param angle number
---@param lockView boolean
---@param rotateAroundTarget boolean
---@param rotateUp boolean
---@return any RL.Camera3DPitch
function RL.Camera3DPitch( camera, angle, lockView, rotateAroundTarget, rotateUp ) end
---Rotates the camera around it's forward vector
---Roll is "turning your head sideways to the left or right"
---Note: angle must be provided in radians
---@param camera any
---@param angle number
---@return any RL.Camera3DRoll
function RL.Camera3DRoll( camera, angle ) end
---Returns the camera view matrix
---- Success return Matrix
---@param camera any
---@return any view
function RL.GetCamera3DViewMatrix( camera ) end
---Returns the camera projection matrix
---- Success return Matrix
---@param camera any
---@param aspect number
---@return any projection
function RL.GetCamera3DProjectionMatrix( camera, aspect ) end
---Update camera position for selected mode
---@param camera any
---@param mode integer
---@return any RL.UpdateCamera3D
function RL.UpdateCamera3D( camera, mode ) end
---Update camera movement, movement/rotation values should be provided by user
---@param camera any
---@param movement table
---@param rotation table
---@param zoom number
---@return any RL.UpdateCamera3DPro
function RL.UpdateCamera3DPro( camera, movement, rotation, zoom ) end
-- Core - Buffer management functions
---Load Buffer. Type should be one of the Buffer types. Empty buffer will set data to NULL.
---- Success return Buffer
---@param buffer table
---@param type integer
---@return any buffer
function RL.LoadBuffer( buffer, type ) end
---Read buffer data from binary file
---- Failure return nil
---- Success return Buffer
---@param path string
---@param int any
---@return any buffer
function RL.LoadBufferFromFile( path, int ) end
---Unload buffer data
---@param buffer any
---@return any RL.UnloadBuffer
function RL.UnloadBuffer( buffer ) end
---Get buffer data as table in the format it was stored
---- Success return data{}
---@param buffer any
---@return any data
function RL.GetBufferData( buffer ) end
---Get buffer type
---- Success return int
---@param buffer any
---@return any type
function RL.GetBufferType( buffer ) end
---Get buffer size
---- Success return int
---@param buffer any
---@return any size
function RL.GetBufferSize( buffer ) end
---Write buffer data to binary file
---@param buffer any
---@param path string
---@return any RL.ExportBuffer
function RL.ExportBuffer( buffer, path ) end
-- Shapes - Basic shapes drawing functions
---Set texture and rectangle to be used on shapes drawing
---NOTE: It can be useful when using basic shapes and one single font,
---defining a font char white rectangle would allow drawing everything in a single draw call
---@param texture any
---@param source table
---@return any RL.SetShapesTexture
function RL.SetShapesTexture( texture, source ) end
---Draw a pixel
---@param pos table
---@param color table
---@return any RL.DrawPixel
function RL.DrawPixel( pos, color ) end
---Draw a line defining thickness
---@param startPos table
---@param endPos table
---@param thickness number
---@param color table
---@return any RL.DrawLine
function RL.DrawLine( startPos, endPos, thickness, color ) end
---Draw lines sequence
---@param points table
---@param color table
---@return any RL.DrawLineStrip
function RL.DrawLineStrip( points, color ) end
---Draw a line using cubic-bezier curves in-out
---@param startPos table
---@param endPos table
---@param thickness number
---@param color table
---@return any RL.DrawLineBezier
function RL.DrawLineBezier( startPos, endPos, thickness, color ) end
---Draw a color-filled circle
---@param center table
---@param radius number
---@param color table
---@return any RL.DrawCircle
function RL.DrawCircle( center, radius, color ) end
---Draw a piece of a circle
---@param center table
---@param radius number
---@param startAngle number
---@param endAngle number
---@param segments integer
---@param color table
---@return any RL.DrawCircleSector
function RL.DrawCircleSector( center, radius, startAngle, endAngle, segments, color ) end
---Draw circle sector outline
---@param center table
---@param radius number
---@param startAngle number
---@param endAngle number
---@param segments integer
---@param color table
---@return any RL.DrawCircleSectorLines
function RL.DrawCircleSectorLines( center, radius, startAngle, endAngle, segments, color ) end
---Draw a gradient-filled circle
---@param center table
---@param radius number
---@param color1 table
---@param color2 table
---@return any RL.DrawCircleGradient
function RL.DrawCircleGradient( center, radius, color1, color2 ) end
---Draw circle outline
---@param center table
---@param radius number
---@param color table
---@return any RL.DrawCircleLines
function RL.DrawCircleLines( center, radius, color ) end
---Draw ellipse
---@param center table
---@param radiusH number
---@param radiusV number
---@param color table
---@return any RL.DrawEllipse
function RL.DrawEllipse( center, radiusH, radiusV, color ) end
---Draw ellipse outline
---@param center table
---@param radiusH number
---@param radiusV number
---@param color table
---@return any RL.DrawEllipseLines
function RL.DrawEllipseLines( center, radiusH, radiusV, color ) end
---Draw ring
---@param center table
---@param innerRadius number
---@param outerRadius number
---@param startAngle number
---@param endAngle number
---@param segments integer
---@param color table
---@return any RL.DrawRing
function RL.DrawRing( center, innerRadius, outerRadius, startAngle, endAngle, segments, color ) end
---Draw ring outline
---@param center table
---@param innerRadius number
---@param outerRadius number
---@param startAngle number
---@param endAngle number
---@param segments integer
---@param color table
---@return any RL.DrawRingLines
function RL.DrawRingLines( center, innerRadius, outerRadius, startAngle, endAngle, segments, color ) end
---Draw a color-filled rectangle
---@param rec table
---@param color table
---@return any RL.DrawRectangle
function RL.DrawRectangle( rec, color ) end
---Draw a color-filled rectangle with pro parameters
---@param rec table
---@param origin table
---@param rotation number
---@param color table
---@return any RL.DrawRectanglePro
function RL.DrawRectanglePro( rec, origin, rotation, color ) end
---Draw a vertical-gradient-filled rectangle
---@param rectangle table
---@param color1 table
---@param color2 table
---@return any RL.DrawRectangleGradientV
function RL.DrawRectangleGradientV( rectangle, color1, color2 ) end
---Draw a horizontal-gradient-filled rectangle
---@param rectangle table
---@param color1 table
---@param color2 table
---@return any RL.DrawRectangleGradientH
function RL.DrawRectangleGradientH( rectangle, color1, color2 ) end
---Draw a gradient-filled rectangle with custom vertex colors
---@param rectangle table
---@param col1 table
---@param col2 table
---@param col3 table
---@param col4 table
---@return any RL.DrawRectangleGradientEx
function RL.DrawRectangleGradientEx( rectangle, col1, col2, col3, col4 ) end
---Draw rectangle outline
---@param rec table
---@param color table
---@return any RL.DrawRectangleLines
function RL.DrawRectangleLines( rec, color ) end
---Draw rectangle outline with extended parameters
---@param rec table
---@param lineThick integer
---@param color table
---@return any RL.DrawRectangleLinesEx
function RL.DrawRectangleLinesEx( rec, lineThick, color ) end
---Draw rectangle with rounded edges
---@param rec table
---@param roundness number
---@param segments integer
---@param color table
---@return any RL.DrawRectangleRounded
function RL.DrawRectangleRounded( rec, roundness, segments, color ) end
---Draw rectangle with rounded edges outline
---@param rec table
---@param roundness number
---@param segments integer
---@param lineThick integer
---@param color table
---@return any RL.DrawRectangleRoundedLines
function RL.DrawRectangleRoundedLines( rec, roundness, segments, lineThick, color ) end
---Draw a color-filled triangle (Vertex in counter-clockwise order!)
---@param v1 table
---@param v2 table
---@param v3 table
---@param color table
---@return any RL.DrawTriangle
function RL.DrawTriangle( v1, v2, v3, color ) end
---Draw triangle outline (Vertex in counter-clockwise order!)
---@param v1 table
---@param v2 table
---@param v3 table
---@param color table
---@return any RL.DrawTriangleLines
function RL.DrawTriangleLines( v1, v2, v3, color ) end
---Draw a triangle fan defined by points (first vertex is the center)
---@param points table
---@param color table
---@return any RL.DrawTriangleFan
function RL.DrawTriangleFan( points, color ) end
---Draw a triangle strip defined by points
---@param points table
---@param color table
---@return any RL.DrawTriangleStrip
function RL.DrawTriangleStrip( points, color ) end
---Draw a regular polygon (Vector version)
---@param center table
---@param sides integer
---@param radius number
---@param rotation number
---@param color table
---@return any RL.DrawPoly
function RL.DrawPoly( center, sides, radius, rotation, color ) end
---Draw a polygon outline of n sides
---@param center table
---@param sides integer
---@param radius number
---@param rotation number
---@param color table
---@return any RL.DrawPolyLines
function RL.DrawPolyLines( center, sides, radius, rotation, color ) end
---Draw a polygon outline of n sides with extended parameters
---@param center table
---@param sides integer
---@param radius number
---@param rotation number
---@param lineThick number
---@param color table
---@return any RL.DrawPolyLinesEx
function RL.DrawPolyLinesEx( center, sides, radius, rotation, lineThick, color ) end
-- Shapes - Splines drawing functions
---Draw spline: Linear, minimum 2 points
---@param points table
---@param thick number
---@param color table
---@return any RL.DrawSplineLinear
function RL.DrawSplineLinear( points, thick, color ) end
---Draw spline: B-Spline, minimum 4 points
---@param points table
---@param thick number
---@param color table
---@return any RL.DrawSplineBasis
function RL.DrawSplineBasis( points, thick, color ) end
---Draw spline: Catmull-Rom, minimum 4 points
---@param points table
---@param thick number
---@param color table
---@return any RL.DrawSplineCatmullRom
function RL.DrawSplineCatmullRom( points, thick, color ) end
---Draw spline: Quadratic Bezier, minimum 3 points (1 control point): [p1, c2, p3, c4...]
---@param points table
---@param thick number
---@param color table
---@return any RL.DrawSplineBezierQuadratic
function RL.DrawSplineBezierQuadratic( points, thick, color ) end
---Draw spline: Cubic Bezier, minimum 4 points (2 control points): [p1, c2, c3, p4, c5, c6...]
---@param points table
---@param thick number
---@param color table
---@return any RL.DrawSplineBezierCubic
function RL.DrawSplineBezierCubic( points, thick, color ) end
---Draw spline segment: Linear, 2 points
---@param p1 table
---@param p2 table
---@param thick number
---@param color table
---@return any RL.DrawSplineSegmentLinear
function RL.DrawSplineSegmentLinear( p1, p2, thick, color ) end
---Draw spline segment: B-Spline, 4 points
---@param p1 table
---@param p2 table
---@param p3 table
---@param p4 table
---@param thick number
---@param color table
---@return any RL.DrawSplineSegmentBasis
function RL.DrawSplineSegmentBasis( p1, p2, p3, p4, thick, color ) end
---Draw spline segment: Catmull-Rom, 4 points
---@param p1 table
---@param p2 table
---@param p3 table
---@param p4 table
---@param thick number
---@param color table
---@return any RL.DrawSplineSegmentCatmullRom
function RL.DrawSplineSegmentCatmullRom( p1, p2, p3, p4, thick, color ) end
---Draw spline segment: Quadratic Bezier, 2 points, 1 control point
---@param p1 table
---@param c2 table
---@param p3 table
---@param thick number
---@param color table
---@return any RL.DrawSplineSegmentBezierQuadratic
function RL.DrawSplineSegmentBezierQuadratic( p1, c2, p3, thick, color ) end
---Draw spline segment: Cubic Bezier, 2 points, 2 control points
---@param p1 table
---@param c2 table
---@param c3 table
---@param p4 table
---@param thick number
---@param color table
---@return any RL.DrawSplineSegmentBezierCubic
function RL.DrawSplineSegmentBezierCubic( p1, c2, c3, p4, thick, color ) end
-- Shapes - Spline segment point evaluation functions, for a given t [0.0f .. 1.0f]
---Get (evaluate) spline point: Linear
---- Success return Vector2
---@param startPos table
---@param endPos table
---@param t number
---@return any point
function RL.GetSplinePointLinear( startPos, endPos, t ) end
---Get (evaluate) spline point: B-Spline
---- Success return Vector2
---@param p1 table
---@param p2 table
---@param p3 table
---@param p4 table
---@param t number
---@return any point
function RL.GetSplinePointBasis( p1, p2, p3, p4, t ) end
---Get (evaluate) spline point: Catmull-Rom
---- Success return Vector2
---@param p1 table
---@param p2 table
---@param p3 table
---@param p4 table
---@param t number
---@return any point
function RL.GetSplinePointCatmullRom( p1, p2, p3, p4, t ) end
---Get (evaluate) spline point: Quadratic Bezier
---- Success return Vector2
---@param p1 table
---@param c2 table
---@param p3 table
---@param t number
---@return any point
function RL.GetSplinePointBezierQuad( p1, c2, p3, t ) end
---Get (evaluate) spline point: Cubic Bezier
---- Success return Vector2
---@param p1 table
---@param c2 table
---@param c3 table
---@param p4 table
---@param t number
---@return any point
function RL.GetSplinePointBezierCubic( p1, c2, c3, p4, t ) end
-- Shapes - Basic shapes collision detection functions
---Check collision between two rectangles
---- Success return bool
---@param rec1 table
---@param rec2 table
---@return any collision
function RL.CheckCollisionRecs( rec1, rec2 ) end
---Check collision between two circles
---- Success return bool
---@param center1 table
---@param radius1 number
---@param center2 table
---@param radius2 number
---@return any collision
function RL.CheckCollisionCircles( center1, radius1, center2, radius2 ) end
---Check collision between circle and rectangle
---- Success return bool
---@param center table
---@param radius number
---@param rec table
---@return any collision
function RL.CheckCollisionCircleRec( center, radius, rec ) end
---Check if point is inside rectangle
---- Success return bool
---@param point table
---@param rec table
---@return any collision
function RL.CheckCollisionPointRec( point, rec ) end
---Check if point is inside circle
---- Success return bool
---@param point table
---@param center table
---@param radius number
---@return any collision
function RL.CheckCollisionPointCircle( point, center, radius ) end
---Check if point is inside a triangle
---- Success return bool
---@param point table
---@param p1 table
---@param p2 table
---@param p3 table
---@return any collision
function RL.CheckCollisionPointTriangle( point, p1, p2, p3 ) end
---Check if point is within a polygon described by array of vertices
---- Success return bool
---@param point table
---@param points table
---@return any collision
function RL.CheckCollisionPointPoly( point, points ) end
---Check the collision between two lines defined by two points each, returns collision point by reference
---- Success return bool, Vector2
---@param startPos1 table
---@param endPos1 table
---@param startPos2 table
---@param endPos2 table
---@return any collision
---@return any position
function RL.CheckCollisionLines( startPos1, endPos1, startPos2, endPos2 ) end
---Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]
---- Success return bool
---@param point table
---@param p1 table
---@param p2 table
---@param threshold integer
---@return any collision
function RL.CheckCollisionPointLine( point, p1, p2, threshold ) end
---Get collision rectangle for two rectangles collision
---- Success return Rectangle
---@param rec1 table
---@param rec2 table
---@return any rectangle
function RL.GetCollisionRec( rec1, rec2 ) end
-- Textures - Image loading functions
---Load image from file into CPU memory (RAM)
---- Failure return nil
---- Success return Image
---@param fileName string
---@return any image
function RL.LoadImage( fileName ) end
---Load image from RAW file data
---- Failure return nil
---- Success return Image
---@param fileName string
---@param size table
---@param format integer
---@param headerSize integer
---@return any image
function RL.LoadImageRaw( fileName, size, format, headerSize ) end
---Load image from SVG file data or string with specified size
---- Success return Image
---@param fileNameOrString string
---@param size table
---@return any image
function RL.LoadImageSvg( fileNameOrString, size ) end
---Load image sequence from file (frames appended to image.data). All frames are returned in RGBA format
---- Failure return nil
---- Success return Image, int
---@param fileName string
---@return any image
---@return any frameCount
function RL.LoadImageAnim( fileName ) end
---Load image from memory buffer, fileType refers to extension: i.e. '.png'
---- Success return Image
---@param fileType string
---@param data any
---@return any image
---@return any frameCount
function RL.LoadImageFromMemory( fileType, data ) end
---Load image from GPU texture data
---- Success return Image
---@param texture any
---@return any image
function RL.LoadImageFromTexture( texture ) end
---Load image from screen buffer and (screenshot)
---- Success return Image
---@return any image
function RL.LoadImageFromScreen() end
---Check if an image is ready
---- Success return bool
---@param image any
---@return any isReady
function RL.IsImageReady( image ) end
---Unload image from CPU memory (RAM)
---@param image any
---@return any RL.UnloadImage
function RL.UnloadImage( image ) end
---Export image data to file, returns true on success
---- Success return bool
---@param image any
---@param fileName string
---@return any success
function RL.ExportImage( image, fileName ) end
---Export image to memory buffer
---- Success return Buffer
---@param image any
---@param fileType string
---@return any buffer
function RL.ExportImageToMemory( image, fileType ) end
---Export image as code file defining an array of bytes, returns true on success
---- Success return bool
---@param image any
---@param fileName string
---@return any success
function RL.ExportImageAsCode( image, fileName ) end
-- Textures - Image generation functions
---Generate image: plain color
---- Success return Image
---@param size table
---@param color table
---@return any image
function RL.GenImageColor( size, color ) end
---Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradient
---- Success return Image
---@param size table
---@param direction integer
---@param a table
---@param b table
---@return any image
function RL.GenImageGradientLinear( size, direction, a, b ) end
---Generate image: radial gradient
---- Success return Image
---@param size table
---@param density number
---@param inner table
---@param outer table
---@return any image
function RL.GenImageGradientRadial( size, density, inner, outer ) end
---Generate image: square gradient
---- Success return Image
---@param size table
---@param density number
---@param inner table
---@param outer table
---@return any image
function RL.GenImageGradientSquare( size, density, inner, outer ) end
---Generate image: checked
---- Success return Image
---@param size table
---@param checks table
---@param col1 table
---@param col2 table
---@return any image
function RL.GenImageChecked( size, checks, col1, col2 ) end
---Generate image: white noise
---- Success return Image
---@param size table
---@param factor number
---@return any image
function RL.GenImageWhiteNoise( size, factor ) end
---Generate image: perlin noise
---- Success return Image
---@param size table
---@param offset table
---@param factor number
---@return any image
function RL.GenImagePerlinNoise( size, offset, factor ) end
---Generate image: cellular algorithm. Bigger tileSize means bigger cells
---- Success return Image
---@param size table
---@param tileSize integer
---@return any image
function RL.GenImageCellular( size, tileSize ) end
---Generate image: grayscale image from text data
---- Success return Image
---@param size table
---@param text string
---@return any image
function RL.GenImageText( size, text ) end
-- Textures - Image manipulation functions
---Create an image duplicate (useful for transformations)
---- Success return Image
---@param image any
---@return any image
function RL.ImageCopy( image ) end
---Create an image from another image piece
---- Success return Image
---@param image any
---@param rec table
---@return any image
function RL.ImageFromImage( image, rec ) end
---Create an image from text (custom sprite font)
---- Success return Image
---@param font any
---@param text string
---@param fontSize number
---@param spacing number
---@param tint table
---@return any image
function RL.ImageText( font, text, fontSize, spacing, tint ) end
---Convert image data to desired format
---@param image any
---@param newFormat integer
---@return any RL.ImageFormat
function RL.ImageFormat( image, newFormat ) end
---Convert image to POT (power-of-two)
---@param image any
---@param fill table
---@return any RL.ImageToPOT
function RL.ImageToPOT( image, fill ) end
---Crop an image to a defined rectangle
---@param image any
---@param crop table
---@return any RL.ImageCrop
function RL.ImageCrop( image, crop ) end
---Crop image depending on alpha value
---@param image any
---@param threshold number
---@return any RL.ImageAlphaCrop
function RL.ImageAlphaCrop( image, threshold ) end
---Clear alpha channel to desired color
---@param image any
---@param color table
---@param threshold number
---@return any RL.ImageAlphaClear
function RL.ImageAlphaClear( image, color, threshold ) end
---Apply alpha mask to image
---@param image any
---@param alphaMask any
---@return any RL.ImageAlphaMask
function RL.ImageAlphaMask( image, alphaMask ) end
---Premultiply alpha channel
---@param image any
---@return any RL.ImageAlphaPremultiply
function RL.ImageAlphaPremultiply( image ) end
---Apply Gaussian blur using a box blur approximation
---@param image any
---@param blurSize integer
---@return any RL.ImageBlurGaussian
function RL.ImageBlurGaussian( image, blurSize ) end
---Resize image (Bicubic scaling algorithm)
---@param image any
---@param size table
---@return any RL.ImageResize
function RL.ImageResize( image, size ) end
---Resize image (Nearest-Neighbor scaling algorithm)
---@param image any
---@param size table
---@return any RL.ImageResizeNN
function RL.ImageResizeNN( image, size ) end
---Resize canvas and fill with color
---@param image any
---@param size table
---@param offset table
---@param fill table
---@return any RL.ImageResizeCanvas
function RL.ImageResizeCanvas( image, size, offset, fill ) end
---Generate all mipmap levels for a provided image
---@param image any
---@return any RL.ImageMipmaps
function RL.ImageMipmaps( image ) end
---Dither image data to 16bpp or lower (Floyd-Steinberg dithering)
---@param image any
---@param bpp table
---@return any RL.ImageDither
function RL.ImageDither( image, bpp ) end
---Flip image vertically
---@param image any
---@return any RL.ImageFlipVertical
function RL.ImageFlipVertical( image ) end
---Flip image horizontally
---@param image any
---@return any RL.ImageFlipHorizontal
function RL.ImageFlipHorizontal( image ) end
---Rotate image by input angle in degrees (-359 to 359)
---@param image any
---@param degrees integer
---@return any RL.ImageRotate
function RL.ImageRotate( image, degrees ) end
---Rotate image clockwise 90deg
---@param image any
---@return any RL.ImageRotateCW
function RL.ImageRotateCW( image ) end
---Rotate image counter-clockwise 90deg
---@param image any
---@return any RL.ImageRotateCCW
function RL.ImageRotateCCW( image ) end
---Modify image color: tint
---@param image any
---@param color table
---@return any RL.ImageColorTint
function RL.ImageColorTint( image, color ) end
---Modify image color: invert
---@param image any
---@return any RL.ImageColorInvert
function RL.ImageColorInvert( image ) end
---Modify image color: grayscale
---@param image any
---@return any RL.ImageColorGrayscale
function RL.ImageColorGrayscale( image ) end
---Modify image color: contrast (-100 to 100)
---@param image any
---@param contrast number
---@return any RL.ImageColorContrast
function RL.ImageColorContrast( image, contrast ) end
---Modify image color: brightness (-255 to 255)
---@param image any
---@param brightness integer
---@return any RL.ImageColorBrightness
function RL.ImageColorBrightness( image, brightness ) end
---Modify image color: replace color
---@param image any
---@param color table
---@param replace table
---@return any RL.ImageColorReplace
function RL.ImageColorReplace( image, color, replace ) end
---Load color data from image as a Color array (RGBA - 32bit)
---- Success return Color{}
---@param image any
---@return any colors
function RL.LoadImageColors( image ) end
---Load colors palette from image as a Color array (RGBA - 32bit)
---- Success return Color{}
---@param image any
---@param maxPaletteSize integer
---@return any colors
function RL.LoadImagePalette( image, maxPaletteSize ) end
---Get image alpha border rectangle
---- Success return Rectangle
---@param image any
---@param threshold number
---@return any rectangle
function RL.GetImageAlphaBorder( image, threshold ) end
---Get image pixel color at (x, y) position
---- Success return Color
---@param image any
---@param pixelPos table
---@return any color
function RL.GetImageColor( image, pixelPos ) end
-- Textures - Image configuration functions
---Get image size
---- Success return Vector2
---@param image any
---@return any size
function RL.GetImageSize( image ) end
---Get image mipmaps. Mipmap levels, 1 by default
---- Success return int
---@param image any
---@return any mipmaps
function RL.GetImageMipmaps( image ) end
---Get image data format (PixelFormat type)
---- Success return int
---@param image any
---@return any format
function RL.GetImageFormat( image ) end
-- Textures - Image drawing functions
---Clear image background with given color
---@param dst any
---@param color table
---@return any RL.ImageClearBackground
function RL.ImageClearBackground( dst, color ) end
---Draw pixel within an image
---@param dst any
---@param position table
---@param color table
---@return any RL.ImageDrawPixel
function RL.ImageDrawPixel( dst, position, color ) end
---Draw line within an image
---@param dst any
---@param a table
---@param b table
---@param color table
---@return any RL.ImageDrawLine
function RL.ImageDrawLine( dst, a, b, color ) end
---Draw circle within an image
---@param dst any
---@param center table
---@param radius integer
---@param color table
---@return any RL.ImageDrawCircle
function RL.ImageDrawCircle( dst, center, radius, color ) end
---Draw circle outline within an image
---@param dst any
---@param center table
---@param radius integer
---@param color table
---@return any RL.ImageDrawCircleLines
function RL.ImageDrawCircleLines( dst, center, radius, color ) end
---Draw rectangle within an image
---@param dst any
---@param rec table
---@param color table
---@return any RL.ImageDrawRectangle
function RL.ImageDrawRectangle( dst, rec, color ) end
---Draw rectangle lines within an image
---@param dst any
---@param rec table
---@param thick integer
---@param color table
---@return any RL.ImageDrawRectangleLines
function RL.ImageDrawRectangleLines( dst, rec, thick, color ) end
---Draw a source image within a destination image (Tint applied to source)
---@param dst any
---@param src any
---@param srcRec table
---@param dstRec table
---@param tint table
---@return any RL.ImageDraw
function RL.ImageDraw( dst, src, srcRec, dstRec, tint ) end
---Draw text (Custom sprite font) within an image (Destination)
---@param dst any
---@param font any
---@param text string
---@param position table
---@param fontSize number
---@param spacing number
---@param tint table
---@return any RL.ImageDrawTextEx
function RL.ImageDrawTextEx( dst, font, text, position, fontSize, spacing, tint ) end
-- Textures - Texture loading functions
---Get default texture. Return as lightuserdata
---- Success return Texture
---@return any texture
function RL.GetTextureDefault() end
---Load texture from file into GPU memory ( VRAM )
---- Failure return nil
---- Success return Texture
---@param fileName string
---@return any texture
function RL.LoadTexture( fileName ) end
---Load texture from image data
---- Success return Texture
---@param image any
---@return any texture
function RL.LoadTextureFromImage( image ) end
---Load cubemap from image, multiple image cubemap layouts supported
---- Success return Texture
---@param image any
---@param layout integer
---@return any texture
function RL.LoadTextureCubemap( image, layout ) end
---Load Texture from data
---- Success return Texture
---@param textureData table
---@return any texture
function RL.LoadTextureFromData( textureData ) end
---Load texture for rendering (framebuffer)
---- Success return RenderTexture
---@param size table
---@return any renderTexture
function RL.LoadRenderTexture( size ) end
---Load RenderTexture from data (framebuffer)
---- Success return RenderTexture
---@param renderTextureData table
---@return any renderTexture
function RL.LoadRenderTextureFromData( renderTextureData ) end
---Check if a texture is ready
---- Success return bool
---@param texture any
---@return any isReady
function RL.IsTextureReady( texture ) end
---Unload texture from GPU memory (VRAM)
---@param texture any
---@return any RL.UnloadTexture
function RL.UnloadTexture( texture ) end
---Check if a render texture is ready
---- Success return bool
---@param target any
---@return any isReady
function RL.IsRenderTextureReady( target ) end
---Unload render texture from GPU memory (VRAM)
---@param target any
---@return any RL.UnloadRenderTexture
function RL.UnloadRenderTexture( target ) end
---Update GPU texture with new data
---NOTE! Should be TEXTURE_TYPE_TEXTURE. Pixel should be in format { { 255, 255, 255, 255 }... } depending on the pixel format
---@param texture any
---@param pixels table
---@return any RL.UpdateTexture
function RL.UpdateTexture( texture, pixels ) end
---Update GPU texture rectangle with new data.
---Pixel should be in format { { 255, 255, 255, 255 }... } depending on the pixel format
---@param texture any
---@param rec table
---@param pixels table
---@return any RL.UpdateTextureRec
function RL.UpdateTextureRec( texture, rec, pixels ) end
-- Textures - Texture configuration functions
---Generate GPU mipmaps for a texture
---@param texture any
---@return any RL.GenTextureMipmaps
function RL.GenTextureMipmaps( texture ) end
---Set texture scaling filter mode (TEXTURE_FILTER_POINT, TEXTURE_FILTER_BILINEAR...)
---@param texture any
---@param filter integer
---@return any RL.SetTextureFilter
function RL.SetTextureFilter( texture, filter ) end
---Set texture wrapping mode (TEXTURE_WRAP_REPEAT, TEXTURE_WRAP_CLAMP...)
---@param texture any
---@param wrap integer
---@return any RL.SetTextureWrap
function RL.SetTextureWrap( texture, wrap ) end
---Get OpenGL texture id
---- Success return int
---@param texture any
---@return any id
function RL.GetTextureId( texture ) end
---Get texture size
---- Success return Vector2
---@param texture any
---@return any size
function RL.GetTextureSize( texture ) end
---Get texture mipmaps. Mipmap levels, 1 by default
---- Success return int
---@param texture any
---@return any mipmaps
function RL.GetTextureMipmaps( texture ) end
---Get texture data format (PixelFormat type)
---- Success return int
---@param texture any
---@return any format
function RL.GetTextureFormat( texture ) end
-- Textures - Texture drawing functions
---Draw a Texture2D
---@param texture any
---@param position table
---@param tint table
---@return any RL.DrawTexture
function RL.DrawTexture( texture, position, tint ) end
---Draw a part of a texture defined by a rectangle
---@param texture any
---@param source table
---@param position table
---@param tint table
---@return any RL.DrawTextureRec
function RL.DrawTextureRec( texture, source, position, tint ) end
---Draw a part of a texture defined by a rectangle with "pro" parameters
---@param texture any
---@param source table
---@param dest table
---@param origin table
---@param rotation number
---@param tint table
---@return any RL.DrawTexturePro
function RL.DrawTexturePro( texture, source, dest, origin, rotation, tint ) end
---Draws a texture (or part of it) that stretches or shrinks nicely
---@param texture any
---@param nPatchInfo any
---@param dest table
---@param origin table
---@param rotation number
---@param tint table
---@return any RL.DrawTextureNPatch
function RL.DrawTextureNPatch( texture, nPatchInfo, dest, origin, rotation, tint ) end
-- Textures - RenderTexture configuration functions
---Get OpenGL framebuffer object id
---- Success return int
---@param renderTexture any
---@return any id
function RL.GetRenderTextureId( renderTexture ) end
---Get color buffer attachment texture. Returns as lightuserdata
---- Success return Texture
---@param renderTexture any
---@return any texture
function RL.GetRenderTextureTexture( renderTexture ) end
---Get depth buffer attachment texture. Returns as lightuserdata
---- Success return Texture
---@param renderTexture any
---@return any texture
function RL.GetRenderTextureDepthTexture( renderTexture ) end
-- Textures - Color/pixel related functions
---Returns color with alpha applied, alpha goes from 0.0f to 1.0f
---- Success return Color
---@param color table
---@param alpha number
---@return any color
function RL.Fade( color, alpha ) end
---Returns hexadecimal value for a Color
---- Success return int
---@param color table
---@return any value
function RL.ColorToInt( color ) end
---Returns Color normalized as float [0..1]
---- Success return Vector4
---@param color table
---@return any color
function RL.ColorNormalize( color ) end
---Color from normalized values [0..1]
---- Success return Color
---@param normalized table
---@return any color
function RL.ColorFromNormalized( normalized ) end
---Returns HSV values for a Color, hue [0..360], saturation/value [0..1]
---- Success return Vector3
---@param color table
---@return any HSV
function RL.ColorToHSV( color ) end
---Returns a Color from HSV values, hue [0..360], saturation/value [0..1]
---- Success return Color
---@param hue number
---@param saturation number
---@param value number
---@return any color
function RL.ColorFromHSV( hue, saturation, value ) end
---Get color multiplied with another color
---- Success return Color
---@param color table
---@param tint table
---@return any color
function RL.ColorTint( color, tint ) end
---Get color with brightness correction, brightness factor goes from -1.0f to 1.0f
---- Success return Color
---@param color table
---@param factor number
---@return any color
function RL.ColorBrightness( color, factor ) end
---Get color with contrast correction, contrast values between -1.0f and 1.0f
---- Success return Color
---@param color table
---@param contrast number
---@return any color
function RL.ColorContrast( color, contrast ) end
---Returns color with alpha applied, alpha goes from 0.0f to 1.0f
---- Success return Color
---@param color table
---@param alpha number
---@return any color
function RL.ColorAlpha( color, alpha ) end
---Returns src alpha-blended into dst color with tint
---- Success return Color
---@param dst table
---@param src table
---@param tint table
---@return any color
function RL.ColorAlphaBlend( dst, src, tint ) end
---Get Color structure from hexadecimal value
---- Success return Color
---@param hexValue integer
---@return any color
function RL.GetColor( hexValue ) end
---Get pixel color from source texture
---- Success return Color
---@param texture any
---@param position table
---@return any color
function RL.GetPixelColor( texture, position ) end
---Get pixel data size in bytes for certain format
---- Success return int
---@param width integer
---@param height integer
---@param format integer
---@return any size
function RL.GetPixelDataSize( width, height, format ) end
-- Text - Font loading/unloading functions
---Get the default Font. Return as lightuserdata
---- Success return Font
---@return any font
function RL.GetFontDefault() end
---Load font from file into GPU memory (VRAM)
---- Failure return nil
---- Success return Font
---@param fileName string
---@return any font
function RL.LoadFont( fileName ) end
---Load font from file with extended parameters, use NULL for codepoints to load the default character set
---- Failure return nil
---- Success return Font
---@param fileName string
---@param fontSize integer
---@param codepoints table
---@return any font
function RL.LoadFontEx( fileName, fontSize, codepoints ) end
---Load font from Image (XNA style)
---- Success return Font
---@param image any
---@param key table
---@param firstChar integer
---@return any font
function RL.LoadFontFromImage( image, key, firstChar ) end
---Check if a font is ready
---- Success return bool
---@param font any
---@return any isReady
function RL.IsFontReady( font ) end
---Unload font from GPU memory (VRAM)
---@param font any
---@return any RL.UnloadFont
function RL.UnloadFont( font ) end
-- Text - Text drawing functions
---Draw current FPS
---@param pos table
---@return any RL.DrawFPS
function RL.DrawFPS( pos ) end
---Draw text (using default font)
---@param text string
---@param position table
---@param fontSize number
---@param tint table
---@return any RL.DrawText
function RL.DrawText( text, position, fontSize, tint ) end
---Draw text using font and additional parameters
---@param font any
---@param text string
---@param position table
---@param fontSize number
---@param spacing number
---@param tint table
---@return any RL.DrawTextEx
function RL.DrawTextEx( font, text, position, fontSize, spacing, tint ) end
---Draw text using Font and pro parameters (rotation)
---@param font any
---@param text string
---@param position table
---@param origin table
---@param rotation number
---@param fontSize number
---@param spacing number
---@param tint table
---@return any RL.DrawTextPro
function RL.DrawTextPro( font, text, position, origin, rotation, fontSize, spacing, tint ) end
---Draw one character (codepoint)
---@param font any
---@param codepoint integer
---@param position table
---@param fontSize number
---@param tint table
---@return any RL.DrawTextCodepoint
function RL.DrawTextCodepoint( font, codepoint, position, fontSize, tint ) end
---Draw multiple character (codepoint)
---@param font any
---@param codepoints table
---@param position table
---@param fontSize number
---@param spacing number
---@param tint table
---@return any RL.DrawTextCodepoints
function RL.DrawTextCodepoints( font, codepoints, position, fontSize, spacing, tint ) end
---Draw text using font inside rectangle limits. Return character id from mouse position (default -1). Function from raylib [text] example - Rectangle bounds.
---- Success return int
---@param font any
---@param text string
---@param rec table
---@param fontSize number
---@param spacing number
---@param wordWrap boolean
---@param tint table
---@return any mouseCharId
function RL.DrawTextBoxed( font, text, rec, fontSize, spacing, wordWrap, tint ) end
---Draw text using font inside rectangle limits with support for tint and background tint for each character. Return character id from mouse position (default -1)
---- Success return int
---@param font any
---@param text string
---@param rec table
---@param fontSize number
---@param spacing number
---@param wordWrap boolean
---@param tints table
---@param backTints table
---@return any mouseCharId
function RL.DrawTextBoxedTinted( font, text, rec, fontSize, spacing, wordWrap, tints, backTints ) end
-- Text - Text font info functions
---Set vertical line spacing when drawing with line-breaks
---@param spacing integer
---@return any size
function RL.SetTextLineSpacing( spacing ) end
---Measure string size for Font
---- Success return Vector2
---@param font any
---@param text string
---@param fontSize number
---@param spacing number
---@return any size
function RL.MeasureText( font, text, fontSize, spacing ) end
---Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not found
---- Success return int
---@param font any
---@param codepoint integer
---@return any index
function RL.GetGlyphIndex( font, codepoint ) end
---Get glyph font info data for a codepoint (unicode character), fallback to '?' if not found.
---Return Image as lightuserdata
---- Success return GlyphInfo
---@param font any
---@param codepoint integer
---@return any glyphInfo
function RL.GetGlyphInfo( font, codepoint ) end
---Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not found
---- Success return Rectangle
---@param font any
---@param codepoint integer
---@return any rect
function RL.GetGlyphAtlasRec( font, codepoint ) end
---Get font base size (default chars height)
---- Success return int
---@param font any
---@return any baseSize
function RL.GetFontBaseSize( font ) end
---Get font number of glyph characters
---- Success return int
---@param font any
---@return any glyphCount
function RL.GetFontGlyphCount( font ) end
---Get font padding around the glyph characters
---- Success return int
---@param font any
---@return any glyphPadding
function RL.GetFontGlyphPadding( font ) end
---Get font texture atlas containing the glyphs. Return as lightuserdata
---- Success return Texture
---@param font any
---@return any texture
function RL.GetFontTexture( font ) end
-- Models - Basic geometric 3D shapes drawing functions
---Draw a line in 3D world space
---@param startPos table
---@param endPos table
---@param color table
---@return any RL.DrawLine3D
function RL.DrawLine3D( startPos, endPos, color ) end
---Draw a point in 3D space, actually a small line
---@param position table
---@param color table
---@return any RL.DrawPoint3D
function RL.DrawPoint3D( position, color ) end
---Draw a circle in 3D world space
---@param center table
---@param radius number
---@param rotationAxis table
---@param rotationAngle number
---@param color table
---@return any RL.DrawCircle3D
function RL.DrawCircle3D( center, radius, rotationAxis, rotationAngle, color ) end
---Draw a color-filled triangle (Vertex in counter-clockwise order!)
---@param v1 table
---@param v2 table
---@param v3 table
---@param color table
---@return any RL.DrawTriangle3D
function RL.DrawTriangle3D( v1, v2, v3, color ) end
---Draw cube
---@param position table
---@param size table
---@param color table
---@return any RL.DrawCube
function RL.DrawCube( position, size, color ) end
---Draw cube wires
---@param position table
---@param size table
---@param color table
---@return any RL.DrawCubeWires
function RL.DrawCubeWires( position, size, color ) end
---Draw sphere
---@param centerPos table
---@param radius number
---@param color table
---@return any RL.DrawSphere
function RL.DrawSphere( centerPos, radius, color ) end
---Draw sphere with extended parameters
---@param centerPos table
---@param radius number
---@param rings integer
---@param slices integer
---@param color table
---@return any RL.DrawSphereEx
function RL.DrawSphereEx( centerPos, radius, rings, slices, color ) end
---Draw sphere wires
---@param centerPos table
---@param radius number
---@param rings integer
---@param slices integer
---@param color table
---@return any RL.DrawSphereWires
function RL.DrawSphereWires( centerPos, radius, rings, slices, color ) end
---Draw a cylinder/cone
---@param position table
---@param radiusTop number
---@param radiusBottom number
---@param height number
---@param slices integer
---@param color table
---@return any RL.DrawCylinder
function RL.DrawCylinder( position, radiusTop, radiusBottom, height, slices, color ) end
---Draw a cylinder with base at startPos and top at endPos
---@param startPos table
---@param endPos table
---@param startRadius number
---@param endRadius number
---@param sides integer
---@param color table
---@return any RL.DrawCylinderEx
function RL.DrawCylinderEx( startPos, endPos, startRadius, endRadius, sides, color ) end
---Draw a cylinder/cone wires
---@param position table
---@param radiusTop number
---@param radiusBottom number
---@param height number
---@param slices integer
---@param color table
---@return any RL.DrawCylinderWires
function RL.DrawCylinderWires( position, radiusTop, radiusBottom, height, slices, color ) end
---Draw a cylinder wires with base at startPos and top at endPos
---@param startPos table
---@param endPos table
---@param startRadius number
---@param endRadius number
---@param sides integer
---@param color table
---@return any RL.DrawCylinderWiresEx
function RL.DrawCylinderWiresEx( startPos, endPos, startRadius, endRadius, sides, color ) end
---Draw a capsule with the center of its sphere caps at startPos and endPos
---@param startPos table
---@param endPos table
---@param radius number
---@param slices integer
---@param rings integer
---@param color table
---@return any RL.DrawCapsule
function RL.DrawCapsule( startPos, endPos, radius, slices, rings, color ) end
---Draw capsule wireframe with the center of its sphere caps at startPos and endPos
---@param startPos table
---@param endPos table
---@param radius number
---@param slices integer
---@param rings integer
---@param color table
---@return any RL.DrawCapsuleWires
function RL.DrawCapsuleWires( startPos, endPos, radius, slices, rings, color ) end
---Draw a plane XZ
---@param centerPos table
---@param size table
---@param color table
---@return any RL.DrawPlane
function RL.DrawPlane( centerPos, size, color ) end
---Draw 3D textured quad. (Texture coordinates opengl style 0.0 - 1.0).
---@param texture any
---@param vertices table
---@param texCoords table
---@param colors table
---@return any RL.DrawQuad3DTexture
function RL.DrawQuad3DTexture( texture, vertices, texCoords, colors ) end
---Draw a ray line
---@param ray any
---@param color table
---@return any RL.DrawRay
function RL.DrawRay( ray, color ) end
---Draw a grid (Centered at ( 0, 0, 0 ))
---@param slices integer
---@param spacing number
---@return any RL.DrawGrid
function RL.DrawGrid( slices, spacing ) end
-- Models - Model management functions
---Load model from files (Meshes and materials)
---- Failure return nil
---- Success return Model
---@param fileName string
---@return any model
function RL.LoadModel( fileName ) end
---Load model from generated mesh (Default material)
---- Success return Model
---@param mesh any
---@return any model
function RL.LoadModelFromMesh( mesh ) end
---Check if a model is ready
---- Success return bool
---@param model any
---@return any isReady
function RL.IsModelReady( model ) end
---Unload model (including meshes) from memory (RAM and/or VRAM)
---@param model any
---@return any RL.UnloadModel
function RL.UnloadModel( model ) end
---Compute model bounding box limits (considers all meshes)
---- Success return BoundingBox
---@param model any
---@return any boundingBox
function RL.GetModelBoundingBox( model ) end
---Copies material to model material. (Model material is the material id in models.)
---- Failure return false
---- Success return true
---@param model any
---@param modelMaterialId integer
---@param material any
---@return any success
function RL.SetModelMaterial( model, modelMaterialId, material ) end
---Set material for a mesh (Mesh and material on this model)
---@param model any
---@param meshId integer
---@param materialId integer
---@return any RL.SetModelMeshMaterial
function RL.SetModelMeshMaterial( model, meshId, materialId ) end
---Set model transform matrix
---@param model any
---@param transform table
---@return any RL.SetModelTransform
function RL.SetModelTransform( model, transform ) end
---Get model transform matrix
---- Success return Matrix
---@param model any
---@return any transform
function RL.GetModelTransform( model ) end
-- Models - Model drawing functions
---Draw a model (With texture if set)
---@param model any
---@param position table
---@param scale number
---@param tint table
---@return any RL.DrawModel
function RL.DrawModel( model, position, scale, tint ) end
---Draw a model with extended parameters
---@param model any
---@param position table
---@param rotationAxis table
---@param rotationAngle number
---@param scale table
---@param tint table
---@return any RL.DrawModelEx
function RL.DrawModelEx( model, position, rotationAxis, rotationAngle, scale, tint ) end
---Draw a model wires (with texture if set)
---@param model any
---@param position table
---@param scale number
---@param tint table
---@return any RL.DrawModelWires
function RL.DrawModelWires( model, position, scale, tint ) end
---Draw a model wires (with texture if set) with extended parameters
---@param model any
---@param position table
---@param rotationAxis table
---@param rotationAngle number
---@param scale table
---@param tint table
---@return any RL.DrawModelWiresEx
function RL.DrawModelWiresEx( model, position, rotationAxis, rotationAngle, scale, tint ) end
---Draw bounding box (wires)
---@param box any
---@param color table
---@return any RL.DrawBoundingBox
function RL.DrawBoundingBox( box, color ) end
---Draw a billboard texture
---@param camera any
---@param texture any
---@param position table
---@param size number
---@param tint table
---@return any RL.DrawBillboard
function RL.DrawBillboard( camera, texture, position, size, tint ) end
---Draw a billboard texture defined by source
---@param camera any
---@param texture any
---@param source table
---@param position table
---@param size table
---@param tint table
---@return any RL.DrawBillboardRec
function RL.DrawBillboardRec( camera, texture, source, position, size, tint ) end
---Draw a billboard texture defined by source and rotation
---@param camera any
---@param texture any
---@param source table
---@param position table
---@param up table
---@param size table
---@param origin table
---@param rotation number
---@param tint table
---@return any RL.DrawBillboardPro
function RL.DrawBillboardPro( camera, texture, source, position, up, size, origin, rotation, tint ) end
-- Models - Mesh management functions
---Update mesh vertex data in GPU.
---Note! Mainly intented to be used with custom meshes.
---@param mesh any
---@param meshData table
---@return any RL.UpdateMesh
function RL.UpdateMesh( mesh, meshData ) end
---Unload mesh data from CPU and GPU
---@param mesh any
---@return any RL.UnloadMesh
function RL.UnloadMesh( mesh ) end
---Draw a 3d mesh with material and transform
---@param mesh any
---@param material any
---@param transform table
---@return any RL.DrawMesh
function RL.DrawMesh( mesh, material, transform ) end
---Draw multiple mesh instances with material and different transforms
---@param mesh any
---@param material any
---@param transforms table
---@param instances integer
---@return any RL.DrawMeshInstanced
function RL.DrawMeshInstanced( mesh, material, transforms, instances ) end
---Updades mesh color vertex attribute buffer
---NOTE: Currently only works on custom mesh
---- Failure return false
---- Success return true
---@param mesh any
---@param color table
---@return any success
function RL.SetMeshColor( mesh, color ) end
---Export mesh data to file, returns true on success
---- Success return bool
---@param mesh any
---@param fileName string
---@return any success
function RL.ExportMesh( mesh, fileName ) end
---Compute mesh bounding box limits
---- Success return BoundingBox
---@param mesh any
---@return any boundingBox
function RL.GetMeshBoundingBox( mesh ) end
---Compute mesh tangents
---@param mesh any
---@return any RL.GenMeshTangents
function RL.GenMeshTangents( mesh ) end
-- Models - Mesh generation functions
---Generate polygonal mesh
---- Success return Mesh
---@param sides integer
---@param radius number
---@return any mesh
function RL.GenMeshPoly( sides, radius ) end
---Generate plane mesh (With subdivisions)
---- Success return Mesh
---@param width number
---@param length number
---@param resX integer
---@param resZ integer
---@return any mesh
function RL.GenMeshPlane( width, length, resX, resZ ) end
---Generate cuboid mesh
---- Success return Mesh
---@param size table
---@return any mesh
function RL.GenMeshCube( size ) end
---Generate sphere mesh (Standard sphere)
---- Success return Mesh
---@param radius number
---@param rings integer
---@param slices integer
---@return any mesh
function RL.GenMeshSphere( radius, rings, slices ) end
---Generate cylinder mesh
---- Success return Mesh
---@param radius number
---@param height number
---@param slices integer
---@return any mesh
function RL.GenMeshCylinder( radius, height, slices ) end
---Generate cone/pyramid mesh
---- Success return Mesh
---@param radius number
---@param height number
---@param slices integer
---@return any mesh
function RL.GenMeshCone( radius, height, slices ) end
---Generate torus mesh
---- Success return Mesh
---@param radius number
---@param size number
---@param radSeg integer
---@param sides integer
---@return any mesh
function RL.GenMeshTorus( radius, size, radSeg, sides ) end
---Generate torus mesh
---- Success return Mesh
---@param radius number
---@param size number
---@param radSeg integer
---@param sides integer
---@return any mesh
function RL.GenMeshKnot( radius, size, radSeg, sides ) end
---Generate heightmap mesh from image data
---- Success return Mesh
---@param heightmap any
---@param size table
---@return any mesh
function RL.GenMeshHeightmap( heightmap, size ) end
---Generate cubes-based map mesh from image data
---- Success return Mesh
---@param cubicmap any
---@param cubeSize table
---@return any mesh
function RL.GenMeshCubicmap( cubicmap, cubeSize ) end
---Generate custom mesh from vertex attribute data and uploads it into a VAO (if supported) and VBO
---- Success return Mesh
---@param meshData table
---@param dynamic boolean
---@return any mesh
function RL.GenMeshCustom( meshData, dynamic ) end
-- Models - Material management functions
---Load materials from model file
---- Success return Material{}
---@param fileName string
---@return any materials
function RL.LoadMaterials( fileName ) end
---Default material for reference. Return as lightuserdata
---- Success return Material
---@return any material
function RL.GetMaterialDefault() end
---Load default material as new object
---- Success return Material
---@return any material
function RL.LoadMaterialDefault() end
---Load material from table. See material table definition
---- Success return Material
---@param materialData table
---@return any material
function RL.CreateMaterial( materialData ) end
---Check if a material is ready
---- Success return bool
---@param material any
---@return any isReady
function RL.IsMaterialReady( material ) end
---Unload material from GPU memory (VRAM)
---@param material any
---@return any RL.UnloadMaterial
function RL.UnloadMaterial( material ) end
---Set texture for a material map type (MATERIAL_MAP_ALBEDO, MATERIAL_MAP_METALNESS...)
---@param material any
---@param mapType integer
---@param texture any
---@return any RL.SetMaterialTexture
function RL.SetMaterialTexture( material, mapType, texture ) end
---Set color for a material map type
---@param material any
---@param mapType integer
---@param color table
---@return any RL.SetMaterialColor
function RL.SetMaterialColor( material, mapType, color ) end
---Set value for a material map type
---@param material any
---@param mapType integer
---@param value number
---@return any RL.SetMaterialValue
function RL.SetMaterialValue( material, mapType, value ) end
---Set shader for material
---@param material any
---@param shader any
---@return any RL.SetMaterialShader
function RL.SetMaterialShader( material, shader ) end
---Set material generic parameters (if required)
---@param material any
---@param params table
---@return any RL.SetMaterialParams
function RL.SetMaterialParams( material, params ) end
---Get texture from material map type. Returns -1 if no texture
---- Success return Texture
---@param material any
---@param mapType integer
---@return any texture
function RL.GetMaterialTexture( material, mapType ) end
---Get color from material map type
---- Success return Color
---@param material any
---@param mapType integer
---@return any color
function RL.GetMaterialColor( material, mapType ) end
---Get color from material map type
---- Success return float
---@param material any
---@param mapType integer
---@return any value
function RL.GetMaterialValue( material, mapType ) end
---Get material shader
---- Success return Shader. Return as lightuserdata
---@param material any
---@return any shader
function RL.GetMaterialShader( material ) end
---Get material parameters
---- Success return float{}
---@param material any
---@return any params
function RL.GetMaterialParams( material ) end
-- Model - Model animations management functions
---Load model animations from file
---- Failure return nil
---- Success return ModelAnimations{}
---@param fileName string
---@return any animations
function RL.LoadModelAnimations( fileName ) end
---Update model animation pose
---@param model any
---@param animation any
---@param frame integer
---@return any RL.UpdateModelAnimation
function RL.UpdateModelAnimation( model, animation, frame ) end
---Check model animation skeleton match
---- Success return bool
---@param model any
---@param animation any
---@return any valid
function RL.IsModelAnimationValid( model, animation ) end
---Return modelAnimation bone count
---- Success return int
---@param animation any
---@return any boneCount
function RL.GetModelAnimationBoneCount( animation ) end
---Return modelAnimation frame count
---- Success return int
---@param animation any
---@return any frameCount
function RL.GetModelAnimationFrameCount( animation ) end
-- Model - Collision detection functions
---Check collision between two spheres
---- Success return bool
---@param center1 table
---@param radius1 number
---@param center2 table
---@param radius2 number
---@return any collision
function RL.CheckCollisionSpheres( center1, radius1, center2, radius2 ) end
---Check collision between two bounding boxes
---- Success return bool
---@param box1 any
---@param box2 any
---@return any collision
function RL.CheckCollisionBoxes( box1, box2 ) end
---Check collision between box and sphere
---- Success return bool
---@param box any
---@param center table
---@param radius number
---@return any collision
function RL.CheckCollisionBoxSphere( box, center, radius ) end
---Get collision info between ray and sphere. ( RayCollision is Lua table of { hit, distance, point, normal } )
---- Success return RayCollision
---@param ray any
---@param center table
---@param radius number
---@return any rayCollision
function RL.GetRayCollisionSphere( ray, center, radius ) end
---Get collision info between ray and box
---- Success return RayCollision
---@param ray any
---@param box any
---@return any rayCollision
function RL.GetRayCollisionBox( ray, box ) end
---Get collision info between ray and mesh
---- Success return RayCollision
---@param ray any
---@param mesh any
---@param transform table
---@return any rayCollision
function RL.GetRayCollisionMesh( ray, mesh, transform ) end
---Get collision info between ray and triangle
---- Success return RayCollision
---@param ray any
---@param p1 table
---@param p2 table
---@param p3 table
---@return any rayCollision
function RL.GetRayCollisionTriangle( ray, p1, p2, p3 ) end
---Get collision info between ray and quad
---- Success return RayCollision
---@param ray any
---@param p1 table
---@param p2 table
---@param p3 table
---@param p4 table
---@return any rayCollision
function RL.GetRayCollisionQuad( ray, p1, p2, p3, p4 ) end
-- Audio - Audio device management functions
---Initialize audio device and context
---@return any RL.InitAudioDevice
function RL.InitAudioDevice() end
---Close the audio device and context
---@return any RL.CloseAudioDevice
function RL.CloseAudioDevice() end
---Check if audio device has been initialized successfully
---- Success return bool
---@return any isReady
function RL.IsAudioDeviceReady() end
---Set master volume (listener)
---@param volume number
---@return any RL.SetMasterVolume
function RL.SetMasterVolume( volume ) end
---Get master volume (listener)
---- Success return float
---@return any isReady
function RL.GetMasterVolume() end
-- Audio - Wave/Sound loading/unloading functions
---Load sound from file
---- Failure return nil
---- Success return Sound
---@param fileName string
---@return any sound
function RL.LoadSound( fileName ) end
---Load wave data from file
---- Failure return nil
---- Success return Wave
---@param fileName string
---@return any wave
function RL.LoadWave( fileName ) end
---Checks if wave data is ready
---- Success return bool
---@param wave any
---@return any isReady
function RL.IsWaveReady( wave ) end
---Load sound from wave data
---- Success return Sound
---@param wave any
---@return any sound
function RL.LoadSoundFromWave( wave ) end
---Create a new sound that shares the same sample data as the source sound, does not own the sound data
---- Success return Sound
---@param source any
---@return any sound
function RL.LoadSoundAlias( source ) end
---Checks if a sound is ready
---- Success return bool
---@param sound any
---@return any isReady
function RL.IsSoundReady( sound ) end
---Unload wave data
---@param wave any
---@return any RL.UnloadWave
function RL.UnloadWave( wave ) end
---Unload sound
---@param sound any
---@return any RL.UnloadSound
function RL.UnloadSound( sound ) end
---Unload a sound alias (does not deallocate sample data)
---@param alias any
---@return any RL.UnloadSoundAlias
function RL.UnloadSoundAlias( alias ) end
---Export wave data to file, returns true on success
---- Success return bool
---@param wave any
---@param fileName string
---@return any success
function RL.ExportWave( wave, fileName ) end
---Export wave sample data to code (.h), returns true on success
---- Success return true
---@param wave any
---@param fileName string
---@return any success
function RL.ExportWaveAsCode( wave, fileName ) end
-- Audio - Wave/Sound management functions
---Play a sound
---@param sound any
---@return any RL.PlaySound
function RL.PlaySound( sound ) end
---Stop playing a sound
---@param sound any
---@return any RL.StopSound
function RL.StopSound( sound ) end
---Pause a sound
---@param sound any
---@return any RL.PauseSound
function RL.PauseSound( sound ) end
---Resume a paused sound
---@param sound any
---@return any RL.ResumeSound
function RL.ResumeSound( sound ) end
---Check if a sound is currently playing
---- Success return bool
---@param sound any
---@return any playing
function RL.IsSoundPlaying( sound ) end
---Set volume for a sound (1.0 is max level)
---@param sound any
---@param volume number
---@return any RL.SetSoundVolume
function RL.SetSoundVolume( sound, volume ) end
---Set pitch for a sound (1.0 is base level)
---@param sound any
---@param pitch number
---@return any RL.SetSoundPitch
function RL.SetSoundPitch( sound, pitch ) end
---Set pan for a sound (0.5 is center)
---@param sound any
---@param pan number
---@return any RL.SetSoundPan
function RL.SetSoundPan( sound, pan ) end
---Convert wave data to desired format
---@param wave any
---@param sampleRate integer
---@param sampleSize integer
---@param channels integer
---@return any RL.WaveFormat
function RL.WaveFormat( wave, sampleRate, sampleSize, channels ) end
---Copy a wave to a new wave
---- Success return Wave
---@param wave any
---@return any wave
function RL.WaveCopy( wave ) end
---Crop a wave to defined samples range
---@param wave any
---@param initSample integer
---@param finalSample integer
---@return any RL.WaveCrop
function RL.WaveCrop( wave, initSample, finalSample ) end
-- Audio - Music management functions
---Load music stream from file
---- Success return Music
---@param fileName string
---@return any music
function RL.LoadMusicStream( fileName ) end
---Checks if a music stream is ready
---- Success return bool
---@param music any
---@return any isReady
function RL.IsMusicReady( music ) end
---Unload music stream
---@param music any
---@return any RL.UnloadMusicStream
function RL.UnloadMusicStream( music ) end
---Start music playing
---@param music any
---@return any RL.PlayMusicStream
function RL.PlayMusicStream( music ) end
---Check if music is playing
---- Success return bool
---@param music any
---@return any playing
function RL.IsMusicStreamPlaying( music ) end
---Updates buffers for music streaming
---@param music any
---@return any RL.UpdateMusicStream
function RL.UpdateMusicStream( music ) end
---Stop music playing
---@param music any
---@return any RL.StopMusicStream
function RL.StopMusicStream( music ) end
---Pause music playing
---@param music any
---@return any RL.PauseMusicStream
function RL.PauseMusicStream( music ) end
---Resume playing paused music
---@param music any
---@return any RL.ResumeMusicStream
function RL.ResumeMusicStream( music ) end
---Seek music to a position (in seconds)
---@param music any
---@param position number
---@return any RL.SeekMusicStream
function RL.SeekMusicStream( music, position ) end
---Set volume for music (1.0 is max level)
---@param music any
---@param volume number
---@return any RL.SetMusicVolume
function RL.SetMusicVolume( music, volume ) end
---Set pitch for a music (1.0 is base level)
---@param music any
---@param pitch number
---@return any RL.SetMusicPitch
function RL.SetMusicPitch( music, pitch ) end
---Set pan for a music (0.5 is center)
---@param music any
---@param pan number
---@return any RL.SetMusicPan
function RL.SetMusicPan( music, pan ) end
---Set looping for a music
---@param music any
---@param looping boolean
---@return any RL.SetMusicLooping
function RL.SetMusicLooping( music, looping ) end
---Get looping of a music
---- Success return bool
---@param music any
---@return any looping
function RL.GetMusicLooping( music ) end
---Get music time length (in seconds)
---- Success return float
---@param music any
---@return any length
function RL.GetMusicTimeLength( music ) end
---Get current music time played (in seconds)
---- Success return float
---@param music any
---@return any timePlayed
function RL.GetMusicTimePlayed( music ) end
-- Math - Utils
---Clamp float value
---- Success return float
---@param value number
---@param min number
---@param max number
---@return any result
function RL.Clamp( value, min, max ) end
---Calculate linear interpolation between two floats
---- Success return float
---@param a number
---@param b number
---@param amount number
---@return any result
function RL.Lerp( a, b, amount ) end
---Normalize input value within input range
---- Success return float
---@param value number
---@param a number
---@param b number
---@return any result
function RL.Normalize( value, a, b ) end
---Remap input value within input range to output range
---- Success return float
---@param value number
---@param inputStart number
---@param inputEnd number
---@param outputStart number
---@param outputEnd number
---@return any result
function RL.Remap( value, inputStart, inputEnd, outputStart, outputEnd ) end
---Wrap input value from min to max
---- Success return float
---@param value number
---@param min number
---@param max number
---@return any result
function RL.Wrap( value, min, max ) end
---Check whether two given floats are almost equal
---- Success return int
---@param x number
---@param y number
---@return any result
function RL.FloatEquals( x, y ) end
-- Math - Vector2
---Vector with components value 0.0f
---- Success return Vector2
---@return any result
function RL.Vector2Zero() end
---Vector with components value 1.0f
---- Success return Vector2
---@return any result
function RL.Vector2One() end
---Add two vectors (v1 + v2)
---- Success return Vector2
---@param v1 table
---@param v2 table
---@return any result
function RL.Vector2Add( v1, v2 ) end
---Add vector and float value
---- Success return Vector2
---@param v table
---@param add number
---@return any result
function RL.Vector2AddValue( v, add ) end
---Subtract two vectors (v1 - v2)
---- Success return Vector2
---@param v1 table
---@param v2 table
---@return any result
function RL.Vector2Subtract( v1, v2 ) end
---Subtract vector by float value
---- Success return Vector2
---@param v table
---@param sub number
---@return any result
function RL.Vector2SubtractValue( v, sub ) end
---Calculate vector length
---- Success return float
---@param v any
---@return any result
function RL.Vector2Length( v ) end
---Calculate vector square length
---- Success return float
---@param v any
---@return any result
function RL.Vector2LengthSqr( v ) end
---Calculate two vectors dot product
---- Success return float
---@param v1 table
---@param v2 table
---@return any result
function RL.Vector2DotProduct( v1, v2 ) end
---Calculate distance between two vectors
---- Success return float
---@param v1 table
---@param v2 table
---@return any result
function RL.Vector2Distance( v1, v2 ) end
---Calculate square distance between two vectors
---- Success return float
---@param v1 table
---@param v2 table
---@return any result
function RL.Vector2DistanceSqr( v1, v2 ) end
---Calculate angle between two vectors
---NOTE: Angle is calculated from origin point (0, 0)
---- Success return float
---@param v1 table
---@param v2 table
---@return any result
function RL.Vector2Angle( v1, v2 ) end
---Calculate angle defined by a two vectors line
---NOTE: Parameters need to be normalized
---Current implementation should be aligned with glm::angle
---- Success return float
---@param a table
---@param b table
---@return any result
function RL.Vector2LineAngle( a, b ) end
---Scale vector (multiply by value)
---- Success return Vector2
---@param v table
---@param scale number
---@return any result
function RL.Vector2Scale( v, scale ) end
---Multiply vector by vector
---- Success return Vector2
---@param v1 table
---@param v2 table
---@return any result
function RL.Vector2Multiply( v1, v2 ) end
---Negate vector
---- Success return Vector2
---@param v table
---@return any result
function RL.Vector2Negate( v ) end
---Divide vector by vector
---- Success return Vector2
---@param v1 table
---@param v2 table
---@return any result
function RL.Vector2Divide( v1, v2 ) end
---Normalize provided vector
---- Success return Vector2
---@param v table
---@return any result
function RL.Vector2Normalize( v ) end
---Transforms a Vector2 by a given Matrix
---- Success return Vector2
---@param v table
---@param mat table
---@return any result
function RL.Vector2Transform( v, mat ) end
---Calculate linear interpolation between two vectors
---- Success return Vector2
---@param v1 table
---@param v2 table
---@param amount number
---@return any result
function RL.Vector2Lerp( v1, v2, amount ) end
---Calculate reflected vector to normal
---- Success return Vector2
---@param v table
---@param normal table
---@return any result
function RL.Vector2Reflect( v, normal ) end
---Rotate vector by angle
---- Success return Vector2
---@param v table
---@param angle number
---@return any result
function RL.Vector2Rotate( v, angle ) end
---Move Vector towards target
---- Success return Vector2
---@param v table
---@param target table
---@param maxDistance number
---@return any result
function RL.Vector2MoveTowards( v, target, maxDistance ) end
---Invert the given vector
---- Success return Vector2
---@param v table
---@return any result
function RL.Vector2Invert( v ) end
---Clamp the components of the vector between
---min and max values specified by the given vectors
---- Success return Vector2
---@param v table
---@param min table
---@param max table
---@return any result
function RL.Vector2Clamp( v, min, max ) end
---Clamp the magnitude of the vector between two min and max values
---- Success return Vector2
---@param v table
---@param min number
---@param max number
---@return any result
function RL.Vector2ClampValue( v, min, max ) end
---Check whether two given vectors are almost equal
---- Success return int
---@param v1 table
---@param v2 table
---@return any result
function RL.Vector2Equals( v1, v2 ) end
-- Math - Vector 3
---Vector with components value 0.0f
---- Success return Vector3
---@return any result
function RL.Vector3Zero() end
---Vector with components value 1.0f
---- Success return Vector3
---@return any result
function RL.Vector3One() end
---Add two vectors
---- Success return Vector3
---@param v1 table
---@param v2 table
---@return any result
function RL.Vector3Add( v1, v2 ) end
---Add vector and float value
---- Success return Vector3
---@param v table
---@param add number
---@return any result
function RL.Vector3AddValue( v, add ) end
---Subtract two vectors
---- Success return Vector3
---@param v1 table
---@param v2 table
---@return any result
function RL.Vector3Subtract( v1, v2 ) end
---Subtract vector by float value
---- Success return Vector3
---@param v table
---@param sub number
---@return any result
function RL.Vector3SubtractValue( v, sub ) end
---Multiply vector by scalar
---- Success return Vector3
---@param v table
---@param scalar number
---@return any result
function RL.Vector3Scale( v, scalar ) end
---Multiply vector by vector
---- Success return Vector3
---@param v1 table
---@param v2 table
---@return any result
function RL.Vector3Multiply( v1, v2 ) end
---Calculate two vectors cross product
---- Success return Vector3
---@param v1 table
---@param v2 table
---@return any result
function RL.Vector3CrossProduct( v1, v2 ) end
---Calculate one vector perpendicular vector
---- Success return Vector3
---@param v table
---@return any result
function RL.Vector3Perpendicular( v ) end
---Calculate vector length
---- Success return float
---@param v table
---@return any result
function RL.Vector3Length( v ) end
---Calculate vector square length
---- Success return float
---@param v table
---@return any result
function RL.Vector3LengthSqr( v ) end
---Calculate two vectors dot product
---- Success return float
---@param v1 table
---@param v2 table
---@return any result
function RL.Vector3DotProduct( v1, v2 ) end
---Calculate distance between two vectors
---- Success return float
---@param v1 table
---@param v2 table
---@return any result
function RL.Vector3Distance( v1, v2 ) end
---Calculate square distance between two vectors
---- Success return float
---@param v1 table
---@param v2 table
---@return any result
function RL.Vector3DistanceSqr( v1, v2 ) end
---Calculate angle between two vectors
---- Success return float
---@param v1 table
---@param v2 table
---@return any result
function RL.Vector3Angle( v1, v2 ) end
---Negate provided vector (invert direction)
---- Success return Vector3
---@param v table
---@return any result
function RL.Vector3Negate( v ) end
---Divide vector by vector
---- Success return Vector3
---@param v1 table
---@param v2 table
---@return any result
function RL.Vector3Divide( v1, v2 ) end
---Normalize provided vector
---- Success return Vector3
---@param v table
---@return any result
function RL.Vector3Normalize( v ) end
---Orthonormalize provided vectors. Makes vectors normalized and orthogonal to each other.
---Gram-Schmidt function implementation
---- Success return Vector3, Vector3
---@param v1 table
---@param v2 table
---@return any v1
---@return any v2
function RL.Vector3OrthoNormalize( v1, v2 ) end
---Transforms a Vector3 by a given Matrix
---- Success return Vector3
---@param v table
---@param mat table
---@return any result
function RL.Vector3Transform( v, mat ) end
---Transform a vector by quaternion rotation
---- Success return Vector3
---@param v table
---@param q table
---@return any result
function RL.Vector3RotateByQuaternion( v, q ) end
---Rotates a vector around an axis
---- Success return Vector3
---@param v table
---@param axis table
---@param angle number
---@return any result
function RL.Vector3RotateByAxisAngle( v, axis, angle ) end
---Calculate linear interpolation between two vectors
---- Success return Vector3
---@param v1 table
---@param v2 table
---@param amount number
---@return any result
function RL.Vector3Lerp( v1, v2, amount ) end
---Calculate reflected vector to normal
---- Success return Vector3
---@param v table
---@param normal table
---@return any result
function RL.Vector3Reflect( v, normal ) end
---Get min value for each pair of components
---- Success return Vector3
---@param v1 table
---@param v2 table
---@return any result
function RL.Vector3Min( v1, v2 ) end
---Get max value for each pair of components
---- Success return Vector3
---@param v1 table
---@param v2 table
---@return any result
function RL.Vector3Max( v1, v2 ) end
---Compute barycenter coordinates (u, v, w) for point p with respect to triangle (a, b, c)
---NOTE: Assumes P is on the plane of the triangle
---- Success return Vector3
---@param p table
---@param a table
---@param b table
---@param c table
---@return any result
function RL.Vector3Barycenter( p, a, b, c ) end
---Projects a Vector3 from screen space into object space
---NOTE: We are avoiding calling other raymath functions despite available
---- Success return Vector3
---@param source table
---@param projection table
---@param view table
---@return any result
function RL.Vector3Unproject( source, projection, view ) end
---Invert the given vector
---- Success return Vector3
---@param v table
---@return any result
function RL.Vector3Invert( v ) end
---Clamp the components of the vector between
---min and max values specified by the given vectors
---- Success return Vector3
---@param v table
---@param min table
---@param max table
---@return any result
function RL.Vector3Clamp( v, min, max ) end
---Clamp the magnitude of the vector between two values
---- Success return Vector3
---@param v table
---@param min number
---@param max number
---@return any result
function RL.Vector3ClampValue( v, min, max ) end
---Check whether two given vectors are almost equal
---- Success return int
---@param v1 table
---@param v2 table
---@return any result
function RL.Vector3Equals( v1, v2 ) end
---Compute the direction of a refracted ray where v specifies the
---normalized direction of the incoming ray, n specifies the
---normalized normal vector of the interface of two optical media,
---and r specifies the ratio of the refractive index of the medium
---from where the ray comes to the refractive index of the medium
---on the other side of the surface
---- Success return Vector3
---@param v table
---@param n table
---@param r number
---@return any result
function RL.Vector3Refract( v, n, r ) end
-- Math - Matrix
---Compute matrix determinant
---- Success return float
---@param mat table
---@return any result
function RL.MatrixDeterminant( mat ) end
---Get the trace of the matrix (sum of the values along the diagonal)
---- Success return float
---@param mat table
---@return any result
function RL.MatrixTrace( mat ) end
---Transposes provided matrix
---- Success return Matrix
---@param mat table
---@return any result
function RL.MatrixTranspose( mat ) end
---Invert provided matrix
---- Success return Matrix
---@param mat table
---@return any result
function RL.MatrixInvert( mat ) end
---Get identity matrix
---- Success return Matrix
---@return any result
function RL.MatrixIdentity() end
---Add two matrices
---- Success return Matrix
---@param left table
---@param right table
---@return any result
function RL.MatrixAdd( left, right ) end
---Subtract two matrices (left - right)
---- Success return Matrix
---@param left table
---@param right table
---@return any result
function RL.MatrixSubtract( left, right ) end
---Get two matrix multiplication
---- Success return Matrix
---@param left table
---@param right table
---@return any result
function RL.MatrixMultiply( left, right ) end
---Get translation matrix
---- Success return Matrix
---@param translate table
---@return any result
function RL.MatrixTranslate( translate ) end
---Create rotation matrix from axis and angle. NOTE: Angle should be provided in radians
---- Success return Matrix
---@param axis table
---@param angle number
---@return any result
function RL.MatrixRotate( axis, angle ) end
---Get x-rotation matrix (angle in radians)
---- Success return Matrix
---@param angle number
---@return any result
function RL.MatrixRotateX( angle ) end
---Get y-rotation matrix (angle in radians)
---- Success return Matrix
---@param angle number
---@return any result
function RL.MatrixRotateY( angle ) end
---Get z-rotation matrix (angle in radians)
---- Success return Matrix
---@param angle number
---@return any result
function RL.MatrixRotateZ( angle ) end
---Get xyz-rotation matrix (angles in radians)
---- Success return Matrix
---@param angles table
---@return any result
function RL.MatrixRotateXYZ( angles ) end
---Get zyx-rotation matrix (angles in radians)
---- Success return Matrix
---@param angles table
---@return any result
function RL.MatrixRotateZYX( angles ) end
---Get scaling matrix
---- Success return Matrix
---@param scale table
---@return any result
function RL.MatrixScale( scale ) end
---Get perspective projection matrix
---- Success return Matrix
---@param left any
---@param right any
---@param bottom any
---@param top any
---@param near any
---@param far any
---@return any result
function RL.MatrixFrustum( left, right, bottom, top, near, far ) end
---Get perspective projection matrix
---- Success return Matrix
---@param fovy any
---@param aspect any
---@param near any
---@param far any
---@return any result
function RL.MatrixPerspective( fovy, aspect, near, far ) end
---Get orthographic projection matrix
---- Success return Matrix
---@param left any
---@param right any
---@param bottom any
---@param top any
---@param near any
---@param far any
---@return any result
function RL.MatrixOrtho( left, right, bottom, top, near, far ) end
---Get camera look-at matrix (View matrix)
---- Success return Matrix
---@param eye table
---@param target table
---@param up table
---@return any result
function RL.MatrixLookAt( eye, target, up ) end
-- Math - Quaternion
---Add two quaternions
---- Success return Quaternion
---@param q1 table
---@param q2 table
---@return any result
function RL.QuaternionAdd( q1, q2 ) end
---Add quaternion and float value
---- Success return Quaternion
---@param q table
---@param add number
---@return any result
function RL.QuaternionAddValue( q, add ) end
---Subtract two quaternions
---- Success return Quaternion
---@param q1 table
---@param q2 table
---@return any result
function RL.QuaternionSubtract( q1, q2 ) end
---Subtract quaternion and float value
---- Success return Quaternion
---@param q table
---@param sub number
---@return any result
function RL.QuaternionSubtractValue( q, sub ) end
---Get identity quaternion
---- Success return Quaternion
---@return any result
function RL.QuaternionIdentity() end
---Computes the length of a quaternion
---- Success return float
---@param q table
---@return any result
function RL.QuaternionLength( q ) end
---Normalize provided quaternion
---- Success return Quaternion
---@param q table
---@return any result
function RL.QuaternionNormalize( q ) end
---Invert provided quaternion
---- Success return Quaternion
---@param q table
---@return any result
function RL.QuaternionInvert( q ) end
---Calculate two quaternion multiplication
---- Success return Quaternion
---@param q1 table
---@param q2 table
---@return any result
function RL.QuaternionMultiply( q1, q2 ) end
---Scale quaternion by float value
---- Success return Quaternion
---@param q table
---@param mul number
---@return any result
function RL.QuaternionScale( q, mul ) end
---Divide two quaternions
---- Success return Quaternion
---@param q1 table
---@param q2 table
---@return any result
function RL.QuaternionDivide( q1, q2 ) end
---Calculate linear interpolation between two quaternions
---- Success return Quaternion
---@param q1 table
---@param q2 table
---@param amount number
---@return any result
function RL.QuaternionLerp( q1, q2, amount ) end
---Calculate slerp-optimized interpolation between two quaternions
---- Success return Quaternion
---@param q1 table
---@param q2 table
---@param amount number
---@return any result
function RL.QuaternionNlerp( q1, q2, amount ) end
---Calculates spherical linear interpolation between two quaternions
---- Success return Quaternion
---@param q1 table
---@param q2 table
---@param amount number
---@return any result
function RL.QuaternionSlerp( q1, q2, amount ) end
---Calculate quaternion based on the rotation from one vector to another
---- Success return Quaternion
---@param from table
---@param to table
---@return any result
function RL.QuaternionFromVector3ToVector3( from, to ) end
---Get a quaternion for a given rotation matrix
---- Success return Quaternion
---@param mat table
---@return any result
function RL.QuaternionFromMatrix( mat ) end
---Get a quaternion for a given rotation matrix
---- Success return Matrix
---@param q table
---@return any result
function RL.QuaternionToMatrix( q ) end
---Get rotation quaternion for an angle and axis
---NOTE: angle must be provided in radians
---- Success return Quaternion
---@param axis table
---@param angle number
---@return any result
function RL.QuaternionFromAxisAngle( axis, angle ) end
---Get the rotation angle and axis for a given quaternion
---- Success return Vector3, float
---@param q table
---@return any axis
---@return any angle
function RL.QuaternionToAxisAngle( q ) end
---Get the quaternion equivalent to Euler angles
---NOTE: Rotation order is ZYX
---- Success return Quaternion
---@param pitch number
---@param yaw number
---@param roll number
---@return any result
function RL.QuaternionFromEuler( pitch, yaw, roll ) end
---Get the Euler angles equivalent to quaternion (roll, pitch, yaw)
---NOTE: Angles are returned in a Vector3 struct in radians
---- Success return Vector3
---@param q table
---@return any result
function RL.QuaternionToEuler( q ) end
---Transform a quaternion given a transformation matrix
---- Success return Quaternion
---@param q table
---@param mat table
---@return any result
function RL.QuaternionTransform( q, mat ) end
---Check whether two given quaternions are almost equal
---- Success return int
---@param q1 table
---@param q2 table
---@return any result
function RL.QuaternionEquals( q1, q2 ) end
-- Gui - Global gui state control functions
---Enable gui controls (global state)
---@return any RL.GuiEnable
function RL.GuiEnable() end
---Disable gui controls (global state)
---@return any RL.GuiDisable
function RL.GuiDisable() end
---Lock gui controls (global state)
---@return any RL.GuiLock
function RL.GuiLock() end
---Unlock gui controls (global state)
---@return any RL.GuiUnlock
function RL.GuiUnlock() end
---Check if gui is locked (global state)
---- Success return bool
---@return any locked
function RL.GuiIsLocked() end
---Set gui controls alpha (global state), alpha goes from 0.0f to 1.0f
---@param alpha number
---@return any RL.GuiSetAlpha
function RL.GuiSetAlpha( alpha ) end
---Set gui state (global state)
---@param state integer
---@return any RL.GuiSetState
function RL.GuiSetState( state ) end
---Get gui state (global state)
---- Success return int
---@return any state
function RL.GuiGetState() end
-- Gui - Font set/get functions
---Set gui custom font (global state)
---@param font any
---@return any RL.GuiSetFont
function RL.GuiSetFont( font ) end
---Get gui custom font (global state)
---- Success return Font
---@return any font
function RL.GuiGetFont() end
-- Gui - Style set/get functions
---Set one style property
---@param control integer
---@param property integer
---@param value integer
---@return any RL.GuiSetStyle
function RL.GuiSetStyle( control, property, value ) end
---Get one style property
---- Success return int
---@param control integer
---@param property integer
---@return any value
function RL.GuiGetStyle( control, property ) end
-- Gui - Styles loading functions
---Load style file over global style variable (.rgs)
---- Failure return nil
---- Success return true
---@param fileName string
---@return any success
function RL.GuiLoadStyle( fileName ) end
---Load style default over global style
---@return any RL.GuiLoadStyleDefault
function RL.GuiLoadStyleDefault() end
-- Gui - Tooltips management functions
---Enable gui tooltips (global state)
---@return any RL.GuiEnableTooltip
function RL.GuiEnableTooltip() end
---Disable gui tooltips (global state)
---@return any RL.GuiDisableTooltip
function RL.GuiDisableTooltip() end
---Set tooltip string
---@param tooltip string
---@return any RL.GuiSetTooltip
function RL.GuiSetTooltip( tooltip ) end
-- Gui - Icons functionality
---Get text with icon id prepended (if supported)
---- Success return string
---@param iconId integer
---@param text string
---@return any text
function RL.GuiIconText( iconId, text ) end
---Set icon scale (1 by default)
---@param scale integer
---@return any RL.GuiSetIconScale
function RL.GuiSetIconScale( scale ) end
---Get raygui icons data pointer
---- Success return int
---@return any icons
function RL.GuiGetIcons() end
---Load raygui icons file (.rgi) into internal icons data
---- Failure return nil
---- Success return strings{}
---@param fileName string
---@param loadIconsName boolean
---@return any iconNames
function RL.GuiLoadIcons( fileName, loadIconsName ) end
---Draw icon
---@param iconId integer
---@param pos table
---@param pixelSize integer
---@param color table
---@return any RL.GuiDrawIcon
function RL.GuiDrawIcon( iconId, pos, pixelSize, color ) end
-- Gui - Container/separator controls, useful for controls organization
---Window Box control, shows a window that can be closed
---- Success return int
---@param bounds table
---@param title string
---@return any result
function RL.GuiWindowBox( bounds, title ) end
---Group Box control with text name
---- Success return int
---@param bounds table
---@param text string
---@return any result
function RL.GuiGroupBox( bounds, text ) end
---Line separator control, could contain text
---- Success return int
---@param bounds table
---@param text string
---@return any result
function RL.GuiLine( bounds, text ) end
---Panel control, useful to group controls
---- Success return int
---@param bounds table
---@param text string
---@return any result
function RL.GuiPanel( bounds, text ) end
---Tab Bar control, returns TAB to be closed or -1
---- Success return int, int
---@param bounds table
---@param text string
---@param active integer
---@return any result
---@return any active
function RL.GuiTabBar( bounds, text, active ) end
---Scroll Panel control
---- Success return int, Vector2, Rectangle
---@param bounds table
---@param text string
---@param content table
---@param scroll table
---@param view table
---@return any result
---@return any scroll
---@return any view
function RL.GuiScrollPanel( bounds, text, content, scroll, view ) end
-- Gui - Basic controls set
---Label control, shows text
---- Success return int
---@param bounds table
---@param text string
---@return any result
function RL.GuiLabel( bounds, text ) end
---Button control, returns true when clicked
---- Success return int
---@param bounds table
---@param text string
---@return any result
function RL.GuiButton( bounds, text ) end
---Label button control, show true when clicked
---- Success return int
---@param bounds table
---@param text string
---@return any result
function RL.GuiLabelButton( bounds, text ) end
---Toggle Button control, returns true when active
---- Success return int, bool
---@param bounds table
---@param text string
---@param active boolean
---@return any result
---@return any active
function RL.GuiToggle( bounds, text, active ) end
---Toggle Group control, returns active toggle index
---- Success return int, int
---@param bounds table
---@param text string
---@param active integer
---@return any result
---@return any active
function RL.GuiToggleGroup( bounds, text, active ) end
---Toggle Slider control, returns true when clicked
---- Success return int, int
---@param bounds table
---@param text string
---@param active integer
---@return any result
---@return any active
function RL.GuiToggleSlider( bounds, text, active ) end
---Check Box control, returns true when active
---- Success return bool
---@param bounds table
---@param text string
---@param checked boolean
---@return any result
---@return any checked
function RL.GuiCheckBox( bounds, text, checked ) end
---Combo Box control, returns selected item index
---- Success return int, int
---@param bounds table
---@param text string
---@param active integer
---@return any result
---@return any active
function RL.GuiComboBox( bounds, text, active ) end
---Dropdown Box control, returns selected item
---- Success return int, int
---@param bounds table
---@param text string
---@param active integer
---@param editMode boolean
---@return any result
---@return any active
function RL.GuiDropdownBox( bounds, text, active, editMode ) end
---Spinner control, returns selected value
---- Success return int, int
---@param bounds table
---@param text string
---@param value integer
---@param minValue integer
---@param maxValue integer
---@param editMode boolean
---@return any result
---@return any value
function RL.GuiSpinner( bounds, text, value, minValue, maxValue, editMode ) end
---Value Box control, updates input text with numbers
---- Success return int, int
---@param bounds table
---@param text string
---@param value integer
---@param minValue integer
---@param maxValue integer
---@param editMode boolean
---@return any result
---@return any value
function RL.GuiValueBox( bounds, text, value, minValue, maxValue, editMode ) end
---Text Box control, updates input text
---- Success return int, string
---@param bounds table
---@param text string
---@param textSize integer
---@param editMode boolean
---@return any result
---@return any text
function RL.GuiTextBox( bounds, text, textSize, editMode ) end
---Slider control, returns selected value
---- Success return int, float
---@param bounds table
---@param textLeft string
---@param textRight string
---@param value number
---@param minValue number
---@param maxValue number
---@return any result
---@return any value
function RL.GuiSlider( bounds, textLeft, textRight, value, minValue, maxValue ) end
---Slider Bar control, returns selected value
---- Success return int, float
---@param bounds table
---@param textLeft string
---@param textRight string
---@param value number
---@param minValue number
---@param maxValue number
---@return any result
---@return any value
function RL.GuiSliderBar( bounds, textLeft, textRight, value, minValue, maxValue ) end
---Progress Bar control, shows current progress value
---- Success return int, float
---@param bounds table
---@param textLeft string
---@param textRight string
---@param value number
---@param minValue number
---@param maxValue number
---@return any result
---@return any value
function RL.GuiProgressBar( bounds, textLeft, textRight, value, minValue, maxValue ) end
---Status Bar control, shows info text
---- Success return int
---@param bounds table
---@param text string
---@return any result
function RL.GuiStatusBar( bounds, text ) end
---Dummy control for placeholders
---- Success return int
---@param bounds table
---@param text string
---@return any result
function RL.GuiDummyRec( bounds, text ) end
---Grid control, returns mouse cell position
---- Success return int, Vector2
---@param bounds table
---@param text string
---@param spacing number
---@param subdivs integer
---@param mouseCell table
---@return any result
---@return any mouseCell
function RL.GuiGrid( bounds, text, spacing, subdivs, mouseCell ) end
-- Gui - Advance controls set
---List View control, returns selected list item index
---- Success return int, int, int
---@param bounds table
---@param text string
---@param scrollIndex integer
---@param active integer
---@return any result
---@return any scrollIndex
---@return any active
function RL.GuiListView( bounds, text, scrollIndex, active ) end
---List View with extended parameters
---- Success return int, int, int, int
---@param bounds table
---@param text string
---@param scrollIndex integer
---@param active integer
---@param focus integer
---@return any result
---@return any scrollIndex
---@return any active
---@return any focus
function RL.GuiListViewEx( bounds, text, scrollIndex, active, focus ) end
---Message Box control, displays a message
---- Success return int
---@param bounds table
---@param title string
---@param message string
---@param buttons string
---@return any result
function RL.GuiMessageBox( bounds, title, message, buttons ) end
---Text Input Box control, ask for text, supports secret
---- Success return int, string, bool
---@param bounds table
---@param title string
---@param message string
---@param buttons string
---@param text string
---@param textMaxSize integer
---@param secretViewActive boolean
---@return any result
---@return any text
---@return any secretViewActive
function RL.GuiTextInputBox( bounds, title, message, buttons, text, textMaxSize, secretViewActive ) end
---Color Picker control (multiple color controls)
---- Success return int, Color
---@param bounds table
---@param text string
---@param color table
---@return any result
---@return any color
function RL.GuiColorPicker( bounds, text, color ) end
---Color Panel control
---- Success return int, Color
---@param bounds table
---@param text string
---@param color table
---@return any result
---@return any color
function RL.GuiColorPanel( bounds, text, color ) end
---Color Bar Alpha control
---- Success return int, float
---@param bounds table
---@param text string
---@param alpha number
---@return any result
---@return any alpha
function RL.GuiColorBarAlpha( bounds, text, alpha ) end
---Color Bar Hue control
---- Success return int, float
---@param bounds table
---@param text string
---@param value number
---@return any result
---@return any value
function RL.GuiColorBarHue( bounds, text, value ) end
---Color Picker control that avoids conversion to RGB on each call (multiple color controls)
---- Success return int, Vector3
---@param bounds table
---@param text string
---@param colorHsv table
---@return any result
---@return any colorHsv
function RL.GuiColorPickerHSV( bounds, text, colorHsv ) end
---Color Panel control that returns HSV color value, used by GuiColorPickerHSV()
---- Success return int, Vector3
---@param bounds table
---@param text string
---@param colorHsv table
---@return any result
---@return any colorHsv
function RL.GuiColorPanelHSV( bounds, text, colorHsv ) end
-- Lights - Light management functions
---Create a light and get shader locations
---- Success return Light
---@param type integer
---@param position table
---@param target table
---@param color table
---@param shader any
---@return any light
function RL.CreateLight( type, position, target, color, shader ) end
---Send light properties to shader
---@param shader any
---@param light any
---@return any RL.UpdateLightValues
function RL.UpdateLightValues( shader, light ) end
---Set light type
---@param light any
---@param type integer
---@return any RL.SetLightType
function RL.SetLightType( light, type ) end
---Set light position
---@param light any
---@param position table
---@return any RL.SetLightPosition
function RL.SetLightPosition( light, position ) end
---Set light target
---@param light any
---@param target table
---@return any RL.SetLightTarget
function RL.SetLightTarget( light, target ) end
---Set light color
---@param light any
---@param color table
---@return any RL.SetLightColor
function RL.SetLightColor( light, color ) end
---Set light enabled
---@param light any
---@param enabled boolean
---@return any RL.SetLightEnabled
function RL.SetLightEnabled( light, enabled ) end
---Get light type
---- Success return int
---@param light any
---@return any type
function RL.GetLightType( light ) end
---Get light position
---- Success return Vector3
---@param light any
---@return any position
function RL.GetLightPosition( light ) end
---Get light target
---- Success return Vector3
---@param light any
---@return any target
function RL.GetLightTarget( light ) end
---Get light color
---- Success return Color
---@param light any
---@return any color
function RL.GetLightColor( light ) end
---Get light enabled
---- Success return boolean
---@param light any
---@return any enabled
function RL.IsLightEnabled( light ) end
-- RLGL - Matrix operations
---Choose the current matrix to be transformed
---@param mode integer
---@return any RL.rlMatrixMode
function RL.rlMatrixMode( mode ) end
---Push the current matrix to stack
---@return any RL.rlPushMatrix
function RL.rlPushMatrix() end
---Pop latest inserted matrix from stack
---@return any RL.rlPopMatrix
function RL.rlPopMatrix() end
---Reset current matrix to identity matrix
---@return any RL.rlLoadIdentity
function RL.rlLoadIdentity() end
---Multiply the current matrix by a translation matrix
---@param translation table
---@return any RL.rlTranslatef
function RL.rlTranslatef( translation ) end
---Multiply the current matrix by a rotation matrix
---@param angle number
---@param rotation table
---@return any RL.rlRotatef
function RL.rlRotatef( angle, rotation ) end
---Multiply the current matrix by a scaling matrix
---@param scale table
---@return any RL.rlScalef
function RL.rlScalef( scale ) end
---Multiply the current matrix by another matrix
---@param matrix table
---@return any RL.rlMultMatrixf
function RL.rlMultMatrixf( matrix ) end
---Multiply the current matrix by a perspective matrix generated by parameters
---@param left number
---@param right number
---@param bottom number
---@param top number
---@param znear number
---@param zfar number
---@return any RL.rlFrustum
function RL.rlFrustum( left, right, bottom, top, znear, zfar ) end
---Multiply the current matrix by an orthographic matrix generated by parameters
---@param left number
---@param right number
---@param bottom number
---@param top number
---@param znear number
---@param zfar number
---@return any RL.rlOrtho
function RL.rlOrtho( left, right, bottom, top, znear, zfar ) end
---Set the viewport area (transformation from normalized device coordinates to window coordinates)
---NOTE: We store current viewport dimensions
---@param viewport table
---@return any RL.rlViewport
function RL.rlViewport( viewport ) end
-- RLGL - Vertex level operations
---Initialize drawing mode (how to organize vertex)
---@param mode integer
---@return any RL.rlBegin
function RL.rlBegin( mode ) end
---Finish vertex providing
---@return any RL.rlEnd
function RL.rlEnd() end
---Define one vertex (position)
---@param position table
---@return any RL.rlVertex2f
function RL.rlVertex2f( position ) end
---Define one vertex (position)
---@param position table
---@return any RL.rlVertex3f
function RL.rlVertex3f( position ) end
---Define one vertex (texture coordinate) - 2 float
---@param texCoord table
---@return any RL.rlTexCoord2f
function RL.rlTexCoord2f( texCoord ) end
---Define one vertex (normal) - 3 float
---@param normal table
---@return any RL.rlNormal3f
function RL.rlNormal3f( normal ) end
---Define one vertex (color) - 4 byte
---@param color table
---@return any RL.rlColor4ub
function RL.rlColor4ub( color ) end
---Define one vertex (color) - 3 float
---@param color table
---@return any RL.rlColor3f
function RL.rlColor3f( color ) end
---Define one vertex (color) - 4 float
---@param color table
---@return any RL.rlColor4f
function RL.rlColor4f( color ) end
-- RLGL - Vertex buffers state
---Enable vertex array (VAO, if supported)
---- Success return bool
---@param vaoId integer
---@return any supported
function RL.rlEnableVertexArray( vaoId ) end
---Disable vertex array (VAO, if supported)
---@return any RL.rlDisableVertexArray
function RL.rlDisableVertexArray() end
---Enable vertex buffer (VBO)
---- Failure return false
---- Success return true
---@param id integer
---@return any RL.rlEnableVertexBuffer
function RL.rlEnableVertexBuffer( id ) end
---Disable vertex buffer (VBO)
---@return any RL.rlDisableVertexBuffer
function RL.rlDisableVertexBuffer() end
---Enable vertex buffer element (VBO element)
---@param id integer
---@return any RL.rlEnableVertexBufferElement
function RL.rlEnableVertexBufferElement( id ) end
---Disable vertex buffer element (VBO element)
---@return any RL.rlDisableVertexBufferElement
function RL.rlDisableVertexBufferElement() end
---Enable vertex attribute index
---@param index integer
---@return any RL.rlEnableVertexAttribute
function RL.rlEnableVertexAttribute( index ) end
---Disable vertex attribute index
---@param index integer
---@return any RL.rlDisableVertexAttribute
function RL.rlDisableVertexAttribute( index ) end
-- RLGL - Textures state
---Select and active a texture slot
---@param slot integer
---@return any RL.rlActiveTextureSlot
function RL.rlActiveTextureSlot( slot ) end
---Enable texture
---@param id integer
---@return any RL.rlEnableTexture
function RL.rlEnableTexture( id ) end
---Disable texture
---@return any RL.rlDisableTexture
function RL.rlDisableTexture() end
---Enable texture cubemap
---@param id integer
---@return any RL.rlEnableTextureCubemap
function RL.rlEnableTextureCubemap( id ) end
---Disable texture cubemap
---@return any RL.rlDisableTextureCubemap
function RL.rlDisableTextureCubemap() end
---Set texture parameters (filter, wrap)
---@param id integer
---@param param integer
---@param value integer
---@return any RL.rlTextureParameters
function RL.rlTextureParameters( id, param, value ) end
---Set cubemap parameters (filter, wrap)
---@param id integer
---@param param integer
---@param value integer
---@return any RL.rlCubemapParameters
function RL.rlCubemapParameters( id, param, value ) end
-- RLGL - Shader state
---Enable shader program
---@param id integer
---@return any RL.rlEnableShader
function RL.rlEnableShader( id ) end
---Disable shader program
---@return any RL.rlDisableShader
function RL.rlDisableShader() end
-- RLGL - Framebuffer state
---Enable render texture (fbo)
---@param id integer
---@return any RL.rlEnableFramebuffer
function RL.rlEnableFramebuffer( id ) end
---Disable render texture (fbo), return to default framebuffer
---@return any RL.rlDisableFramebuffer
function RL.rlDisableFramebuffer() end
---Activate multiple draw color buffers
---@param count integer
---@return any RL.rlActiveDrawBuffers
function RL.rlActiveDrawBuffers( count ) end
-- RLGL - General render state
---Enable color blending
---@return any RL.rlEnableColorBlend
function RL.rlEnableColorBlend() end
---Disable color blending
---@return any RL.rlDisableColorBlend
function RL.rlDisableColorBlend() end
---Enable depth test
---@return any RL.rlEnableDepthTest
function RL.rlEnableDepthTest() end
---Disable depth test
---@return any RL.rlDisableDepthTest
function RL.rlDisableDepthTest() end
---Enable depth write
---@return any RL.rlEnableDepthMask
function RL.rlEnableDepthMask() end
---Disable depth write
---@return any RL.rlDisableDepthMask
function RL.rlDisableDepthMask() end
---Enable backface culling
---@return any RL.rlEnableBackfaceCulling
function RL.rlEnableBackfaceCulling() end
---Disable backface culling
---@return any RL.rlDisableBackfaceCulling
function RL.rlDisableBackfaceCulling() end
---Set face culling mode
---@param mode integer
---@return any RL.rlSetCullFace
function RL.rlSetCullFace( mode ) end
---Enable scissor test
---@return any RL.rlEnableScissorTest
function RL.rlEnableScissorTest() end
---Disable scissor test
---@return any RL.rlDisableScissorTest
function RL.rlDisableScissorTest() end
---Scissor test
---@param area table
---@return any RL.rlScissor
function RL.rlScissor( area ) end
---Enable wire mode
---@return any RL.rlEnableWireMode
function RL.rlEnableWireMode() end
---Disable wire mode
---@return any RL.rlDisableWireMode
function RL.rlDisableWireMode() end
---Set the line drawing width
---@param width number
---@return any RL.rlSetLineWidth
function RL.rlSetLineWidth( width ) end
---Get the line drawing width
---- Success return float
---@return any width
function RL.rlGetLineWidth() end
---Enable line aliasing
---@return any RL.rlEnableSmoothLines
function RL.rlEnableSmoothLines() end
---Disable line aliasing
---@return any RL.rlDisableSmoothLines
function RL.rlDisableSmoothLines() end
---Enable stereo rendering
---@return any RL.rlEnableStereoRender
function RL.rlEnableStereoRender() end
---Enable stereo rendering
---@return any RL.rlDisableStereoRender
function RL.rlDisableStereoRender() end
---Check if stereo render is enabled
---- Success return bool
---@return any enabled
function RL.rlIsStereoRenderEnabled() end
---Clear color buffer with color
---@param color table
---@return any RL.rlClearColor
function RL.rlClearColor( color ) end
---Clear used screen buffers (color and depth)
---@return any RL.rlClearScreenBuffers
function RL.rlClearScreenBuffers() end
---Check and log OpenGL error codes
---@return any RL.rlCheckErrors
function RL.rlCheckErrors() end
---Set blending mode
---@param mode integer
---@return any RL.rlSetBlendMode
function RL.rlSetBlendMode( mode ) end
---Set blending mode factor and equation (using OpenGL factors)
---@param glSrcFactor integer
---@param glDstFactor integer
---@param glEquation integer
---@return any RL.rlSetBlendFactors
function RL.rlSetBlendFactors( glSrcFactor, glDstFactor, glEquation ) end
---Set blending mode factors and equations separately (using OpenGL factors)
---@param glSrcRGB integer
---@param glDstRGB integer
---@param glSrcAlpha integer
---@param glDstAlpha integer
---@param glEqRGB integer
---@param glEqAlpha integer
---@return any RL.rlSetBlendFactorsSeparate
function RL.rlSetBlendFactorsSeparate( glSrcRGB, glDstRGB, glSrcAlpha, glDstAlpha, glEqRGB, glEqAlpha ) end
-- RLGL - Initialization functions
---Get current OpenGL version
---- Success return int
---@return any version
function RL.rlGetVersion() end
---Set current framebuffer width
---@param width integer
---@return any version
function RL.rlSetFramebufferWidth( width ) end
---Get default framebuffer width
---- Success return int
---@return any width
function RL.rlGetFramebufferWidth() end
---Set current framebuffer height
---@param height integer
---@return any version
function RL.rlSetFramebufferHeight( height ) end
---Get default framebuffer height
---- Success return int
---@return any height
function RL.rlGetFramebufferHeight() end
---Get default texture id
---- Success return int
---@return any id
function RL.rlGetTextureIdDefault() end
---Get default shader id
---- Success return int
---@return any id
function RL.rlGetShaderIdDefault() end
---Get default shader locations
---- Success return int{}
---@return any locations
function RL.rlGetShaderLocsDefault() end
-- RLGL - Render batch management
---Update and draw internal render batch
---@return any RL.rlDrawRenderBatchActive
function RL.rlDrawRenderBatchActive() end
---Check internal buffer overflow for a given number of vertex and force a rlRenderBatch draw call if required
---- Success return bool
---@param vCount integer
---@return any overflow
function RL.rlCheckRenderBatchLimit( vCount ) end
---Set current texture for render batch and check buffers limits
---@param id integer
---@return any RL.rlSetTexture
function RL.rlSetTexture( id ) end
-- RLGL - Vertex buffers management
---Load vertex array (vao) if supported
---- Success return int
---@return any vaoId
function RL.rlLoadVertexArray() end
---Load a vertex buffer attribute
---- Success return int
---@param buffer any
---@param dynamic boolean
---@return any vboId
function RL.rlLoadVertexBuffer( buffer, dynamic ) end
---Load a new attributes element buffer
---- Success return int
---@param buffer any
---@param dynamic boolean
---@return any vboId
function RL.rlLoadVertexBufferElement( buffer, dynamic ) end
---Update GPU buffer with new data
---@param bufferId integer
---@param buffer any
---@param offset integer
---@return any RL.rlUpdateVertexBuffer
function RL.rlUpdateVertexBuffer( bufferId, buffer, offset ) end
---Update vertex buffer elements with new data
---@param id integer
---@param buffer any
---@param offset integer
---@return any RL.rlUpdateVertexBufferElements
function RL.rlUpdateVertexBufferElements( id, buffer, offset ) end
---Unload vertex array object (VAO)
---@param vaoId integer
---@return any RL.rlUnloadVertexArray
function RL.rlUnloadVertexArray( vaoId ) end
---Unload vertex buffer (VBO)
---@param vboId integer
---@return any RL.rlUnloadVertexBuffer
function RL.rlUnloadVertexBuffer( vboId ) end
---Set vertex attribute
---@param index integer
---@param compSize integer
---@param type integer
---@param normalized boolean
---@param stride integer
---@param pointer integer
---@return any RL.rlSetVertexAttribute
function RL.rlSetVertexAttribute( index, compSize, type, normalized, stride, pointer ) end
---Set vertex attribute divisor
---@param index integer
---@param divisor integer
---@return any RL.rlSetVertexAttributeDivisor
function RL.rlSetVertexAttributeDivisor( index, divisor ) end
---Set vertex attribute default value
---@param locIndex integer
---@param value table
---@param attribType integer
---@return any RL.rlSetVertexAttributeDefault
function RL.rlSetVertexAttributeDefault( locIndex, value, attribType ) end
---Draw vertex array
---@param offset integer
---@param count integer
---@return any RL.rlDrawVertexArray
function RL.rlDrawVertexArray( offset, count ) end
---Draw vertex array elements
---@param offset integer
---@param count integer
---@param buffer any
---@return any RL.rlDrawVertexArrayElements
function RL.rlDrawVertexArrayElements( offset, count, buffer ) end
---Draw vertex array instanced
---@param offset integer
---@param count integer
---@param instances integer
---@return any RL.rlDrawVertexArrayInstanced
function RL.rlDrawVertexArrayInstanced( offset, count, instances ) end
---Draw vertex array elements instanced
---@param offset integer
---@param count integer
---@param buffer any
---@param instances integer
---@return any RL.rlDrawVertexArrayElementsInstanced
function RL.rlDrawVertexArrayElementsInstanced( offset, count, buffer, instances ) end
-- RLGL - Textures management
---Load texture in GPU
---- Success return int
---@param data any
---@param size table
---@param format integer
---@param mipmapCount integer
---@return any id
function RL.rlLoadTexture( data, size, format, mipmapCount ) end
---Load depth texture/renderbuffer (to be attached to fbo)
---- Success return int
---@param size table
---@param useRenderBuffer boolean
---@return any id
function RL.rlLoadTextureDepth( size, useRenderBuffer ) end
---Load texture cubemap
---- Success return int
---@param data any
---@param size integer
---@param format integer
---@return any id
function RL.rlLoadTextureCubemap( data, size, format ) end
---Update GPU texture with new data
---@param id integer
---@param offset table
---@param size table
---@param format integer
---@param data any
---@return any RL.rlUpdateTexture
function RL.rlUpdateTexture( id, offset, size, format, data ) end
---Get OpenGL internal formats
---- Success return int, int, int
---@param format integer
---@return any glInternalFormat
---@return any glFormat
---@return any glType
function RL.rlGetGlTextureFormats( format ) end
---Get name string for pixel format
---- Success return string
---@param format integer
---@return any name
function RL.rlGetPixelFormatName( format ) end
---Unload texture from GPU memory
---@param id integer
---@return any RL.rlUnloadTexture
function RL.rlUnloadTexture( id ) end
---Generate mipmap data for selected texture
---- Success return int
---@param id integer
---@param size table
---@param format integer
---@return any mipmapCount
function RL.rlGenTextureMipmaps( id, size, format ) end
---Read texture pixel data
---- Success return Buffer
---@param id integer
---@param size table
---@param format integer
---@return any data
function RL.rlReadTexturePixels( id, size, format ) end
---Read screen pixel data (color buffer)
---- Success return Buffer
---@param size table
---@return any data
function RL.rlReadScreenPixels( size ) end
-- RLGL - Framebuffer management (fbo)
---Load an empty framebuffer
---- Success return int
---@param size table
---@return any fboId
function RL.rlLoadFramebuffer( size ) end
---Attach texture/renderbuffer to a framebuffer
---@param fboId integer
---@param texId integer
---@param attachType integer
---@param texType integer
---@param mipLevel integer
---@return any RL.rlFramebufferAttach
function RL.rlFramebufferAttach( fboId, texId, attachType, texType, mipLevel ) end
---Verify framebuffer is complete
---- Success return bool
---@param id integer
---@return any isComplete
function RL.rlFramebufferComplete( id ) end
---Delete framebuffer from GPU
---@param id integer
---@return any RL.rlUnloadFramebuffer
function RL.rlUnloadFramebuffer( id ) end
-- RLGL - Shaders management
---Load shader from code strings
---- Success return int
---@param vsCode string
---@param fsCode string
---@return any shaderId
function RL.rlLoadShaderCode( vsCode, fsCode ) end
---Compile custom shader and return shader id (type: RL_VERTEX_SHADER, RL_FRAGMENT_SHADER, RL_COMPUTE_SHADER)
---- Success return int
---@param shaderCode string
---@param type integer
---@return any shaderId
function RL.rlCompileShader( shaderCode, type ) end
---Load custom shader program
---- Success return int
---@param vShaderId integer
---@param fShaderId integer
---@return any shaderProgramId
function RL.rlLoadShaderProgram( vShaderId, fShaderId ) end
---Unload shader program
---@param id integer
---@return any RL.rlUnloadShaderProgram
function RL.rlUnloadShaderProgram( id ) end
---Get shader location uniform
---- Success return int
---@param shaderId integer
---@param uniformName string
---@return any location
function RL.rlGetLocationUniform( shaderId, uniformName ) end
---Get shader location attribute
---- Success return int
---@param shaderId integer
---@param attribName string
---@return any location
function RL.rlGetLocationAttrib( shaderId, attribName ) end
---Set shader value uniform
---@param locIndex integer
---@param value any
---@param uniformType integer
---@param count integer
---@return any RL.rlSetUniform
function RL.rlSetUniform( locIndex, value, uniformType, count ) end
---Set shader value matrix
---@param locIndex integer
---@param mat table
---@return any RL.rlSetUniformMatrix
function RL.rlSetUniformMatrix( locIndex, mat ) end
---Set shader value sampler
---@param locIndex integer
---@param textureId integer
---@return any RL.rlSetUniformSampler
function RL.rlSetUniformSampler( locIndex, textureId ) end
---Set shader currently active (id and locations)
---@param id integer
---@param locs table
---@return any RL.rlSetShader
function RL.rlSetShader( id, locs ) end
-- RLGL - Compute shader management
---Load compute shader program
---- Success return int
---@param shaderId integer
---@return any programId
function RL.rlLoadComputeShaderProgram( shaderId ) end
---Dispatch compute shader (equivalent to *draw* for graphics pipeline)
---@param groupX integer
---@param groupY integer
---@param groupZ integer
---@return any RL.rlComputeShaderDispatch
function RL.rlComputeShaderDispatch( groupX, groupY, groupZ ) end
-- RLGL - Shader buffer storage object management (ssbo)
---Load shader storage buffer object (SSBO)
---- Success return int
---@param size integer
---@param data any
---@param usageHint integer
---@return any buffer
function RL.rlLoadShaderBuffer( size, data, usageHint ) end
---Unload shader storage buffer object (SSBO)
---@param ssboId integer
---@return any RL.rlUnloadShaderBuffer
function RL.rlUnloadShaderBuffer( ssboId ) end
---Update SSBO buffer data
---@param id integer
---@param data any
---@param offset integer
---@return any RL.rlUpdateShaderBuffer
function RL.rlUpdateShaderBuffer( id, data, offset ) end
---Bind SSBO buffer
---@param id integer
---@param index integer
---@return any RL.rlBindShaderBuffer
function RL.rlBindShaderBuffer( id, index ) end
---Read SSBO buffer data (GPU->CPU)
---- Success return Buffer
---@param id integer
---@param count integer
---@param offset integer
---@return any data
function RL.rlReadShaderBuffer( id, count, offset ) end
---Copy SSBO data between buffers
---@param destId integer
---@param srcId integer
---@param destOffset integer
---@param srcOffset integer
---@param count integer
---@return any RL.rlCopyShaderBuffer
function RL.rlCopyShaderBuffer( destId, srcId, destOffset, srcOffset, count ) end
---Get SSBO buffer size
---- Success return int
---@param id integer
---@return any size
function RL.rlGetShaderBufferSize( id ) end
-- RLGL - Buffer management
---Bind image texture
---@param id integer
---@param index integer
---@param format integer
---@param readonly boolean
---@return any RL.rlBindImageTexture
function RL.rlBindImageTexture( id, index, format, readonly ) end
-- RLGL - Matrix state management
---Get internal modelview matrix
---- Success return Matrix
---@return any modelview
function RL.rlGetMatrixModelview() end
---Get internal projection matrix
---- Success return Matrix
---@return any projection
function RL.rlGetMatrixProjection() end
---Get internal accumulated transform matrix
---- Success return Matrix
---@return any transform
function RL.rlGetMatrixTransform() end
---Get internal projection matrix for stereo render (selected eye)
---- Success return Matrix
---@param eye integer
---@return any projection
function RL.rlGetMatrixProjectionStereo( eye ) end
---Get internal view offset matrix for stereo render (selected eye)
---- Success return Matrix
---@param eye integer
---@return any viewOffset
function RL.rlGetMatrixViewOffsetStereo( eye ) end
---Set a custom projection matrix (replaces internal projection matrix)
---@param proj table
---@return any RL.rlSetMatrixProjection
function RL.rlSetMatrixProjection( proj ) end
---Set a custom modelview matrix (replaces internal modelview matrix)
---@param view table
---@return any RL.rlSetMatrixModelview
function RL.rlSetMatrixModelview( view ) end
---Set eyes projection matrices for stereo rendering
---@param right table
---@param left table
---@return any RL.rlSetMatrixProjectionStereo
function RL.rlSetMatrixProjectionStereo( right, left ) end
---Set eyes view offsets matrices for stereo rendering
---@param right table
---@param left table
---@return any RL.rlSetMatrixViewOffsetStereo
function RL.rlSetMatrixViewOffsetStereo( right, left ) end
-- OpenGL - Framebuffer management
---Copy a block of pixels from one framebuffer object to another.
---Use -1 RenderTexture for window framebuffer
---@param srcTex any
---@param dstTex any
---@param srcRect table
---@param dstRect table
---@param mask integer
---@param filter integer
---@return any RL.glBlitFramebuffer
function RL.glBlitFramebuffer( srcTex, dstTex, srcRect, dstRect, mask, filter ) end
-- Easings - Linear Easing functions
---Ease linear
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseLinear( t, b, c, d ) end
-- Easings - Sine Easing functions
---Ease sine in
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseSineIn( t, b, c, d ) end
---Ease sine out
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseSineOut( t, b, c, d ) end
---Ease sine in out
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseSineInOut( t, b, c, d ) end
-- Easings - Circular Easing functions
---Ease circle in
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseCircIn( t, b, c, d ) end
---Ease circle out
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseCircOut( t, b, c, d ) end
---Ease circle in out
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseCircInOut( t, b, c, d ) end
-- Easings - Cubic Easing functions
---Ease cubic in
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseCubicIn( t, b, c, d ) end
---Ease cubic out
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseCubicOut( t, b, c, d ) end
---Ease cubic in out
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseCubicInOut( t, b, c, d ) end
-- Easings - Quadratic Easing functions
---Ease quadratic in
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseQuadIn( t, b, c, d ) end
---Ease quadratic out
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseQuadOut( t, b, c, d ) end
---Ease quadratic in out
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseQuadInOut( t, b, c, d ) end
-- Easings - Exponential Easing functions
---Ease exponential in
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseExpoIn( t, b, c, d ) end
---Ease exponential out
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseExpoOut( t, b, c, d ) end
---Ease exponential in out
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseExpoInOut( t, b, c, d ) end
-- Easings - Back Easing functions
---Ease back in
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseBackIn( t, b, c, d ) end
---Ease back out
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseBackOut( t, b, c, d ) end
---Ease back in out
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseBackInOut( t, b, c, d ) end
-- Easings - Bounce Easing functions
---Ease bounce in
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseBounceIn( t, b, c, d ) end
---Ease bounce out
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseBounceOut( t, b, c, d ) end
---Ease bounce in out
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseBounceInOut( t, b, c, d ) end
-- Easings - Elastic Easing functions
---Ease elastic in
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseElasticIn( t, b, c, d ) end
---Ease elastic out
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseElasticOut( t, b, c, d ) end
---Ease elastic in out
---- Success return float
---@param t number
---@param b number
---@param c number
---@param d number
---@return any value
function RL.EaseElasticInOut( t, b, c, d ) end
-- GLFW Core - Input-related functions: keyboard
---This function returns the name of the specified printable key, encoded as UTF-8.
---If the key is KEY_UNKNOWN, the scancode is used to identify the key,
---otherwise the scancode is ignored. If you specify a non-printable key,
---or KEY_UNKNOWN and a scancode that maps to a non-printable key,
---this function returns nil but does not emit an error.
---- Success return string or nil
---@param key integer
---@param scancode integer
---@return any keyName
function RL.GetKeyName( key, scancode ) end
---This function returns the platform-specific scancode of the specified key.
---If the key is KEY_UNKNOWN or does not exist on the keyboard this method will return -1.
---- Success return int
---@param key integer
---@return any scancode
function RL.GetKeyScancode( key ) end
|