-
Notifications
You must be signed in to change notification settings - Fork 4
/
ReiLua_API.lua
8853 lines (7544 loc) · 238 KB
/
ReiLua_API.lua
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
-- Put this file into your project folder to provide annotations when using Lua language server.
RL={}
-- Functions.
---This function will be called after window has been initialized. Should be used as the main init point.
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.update( delta ) end
---This function will be called every frame after update 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
---This function will be called before InitWindow. Note! Only place where you should call InitWindow manually. Doesn't have OpenGL context at this point.
function RL.config() 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=5
---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
-- 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
---Epsilon
RL.EPSILON=9.9999999747524e-07
---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 - Gui Icons enumeration
RL.ICON_NONE=0
RL.ICON_FOLDER_FILE_OPEN=1
RL.ICON_FILE_SAVE_CLASSIC=2
RL.ICON_FOLDER_OPEN=3
RL.ICON_FOLDER_SAVE=4
RL.ICON_FILE_OPEN=5
RL.ICON_FILE_SAVE=6
RL.ICON_FILE_EXPORT=7
RL.ICON_FILE_ADD=8
RL.ICON_FILE_DELETE=9
RL.ICON_FILETYPE_TEXT=10
RL.ICON_FILETYPE_AUDIO=11
RL.ICON_FILETYPE_IMAGE=12
RL.ICON_FILETYPE_PLAY=13
RL.ICON_FILETYPE_VIDEO=14
RL.ICON_FILETYPE_INFO=15
RL.ICON_FILE_COPY=16
RL.ICON_FILE_CUT=17
RL.ICON_FILE_PASTE=18
RL.ICON_CURSOR_HAND=19
RL.ICON_CURSOR_POINTER=20
RL.ICON_CURSOR_CLASSIC=21
RL.ICON_PENCIL=22
RL.ICON_PENCIL_BIG=23
RL.ICON_BRUSH_CLASSIC=24
RL.ICON_BRUSH_PAINTER=25
RL.ICON_WATER_DROP=26
RL.ICON_COLOR_PICKER=27
RL.ICON_RUBBER=28
RL.ICON_COLOR_BUCKET=29
RL.ICON_TEXT_T=30
RL.ICON_TEXT_A=31
RL.ICON_SCALE=32
RL.ICON_RESIZE=33
RL.ICON_FILTER_POINT=34
RL.ICON_FILTER_BILINEAR=35
RL.ICON_CROP=36
RL.ICON_CROP_ALPHA=37
RL.ICON_SQUARE_TOGGLE=38
RL.ICON_SYMMETRY=39
RL.ICON_SYMMETRY_HORIZONTAL=40
RL.ICON_SYMMETRY_VERTICAL=41
RL.ICON_LENS=42
RL.ICON_LENS_BIG=43
RL.ICON_EYE_ON=44
RL.ICON_EYE_OFF=45
RL.ICON_FILTER_TOP=46
RL.ICON_FILTER=47
RL.ICON_TARGET_POINT=48
RL.ICON_TARGET_SMALL=49
RL.ICON_TARGET_BIG=50
RL.ICON_TARGET_MOVE=51
RL.ICON_CURSOR_MOVE=52
RL.ICON_CURSOR_SCALE=53
RL.ICON_CURSOR_SCALE_RIGHT=54
RL.ICON_CURSOR_SCALE_LEFT=55
RL.ICON_UNDO=56
RL.ICON_REDO=57
RL.ICON_REREDO=58
RL.ICON_MUTATE=59
RL.ICON_ROTATE=60
RL.ICON_REPEAT=61
RL.ICON_SHUFFLE=62
RL.ICON_EMPTYBOX=63
RL.ICON_TARGET=64
RL.ICON_TARGET_SMALL_FILL=65
RL.ICON_TARGET_BIG_FILL=66
RL.ICON_TARGET_MOVE_FILL=67
RL.ICON_CURSOR_MOVE_FILL=68
RL.ICON_CURSOR_SCALE_FILL=69
RL.ICON_CURSOR_SCALE_RIGHT_FILL=70
RL.ICON_CURSOR_SCALE_LEFT_FILL=71
RL.ICON_UNDO_FILL=72
RL.ICON_REDO_FILL=73
RL.ICON_REREDO_FILL=74
RL.ICON_MUTATE_FILL=75
RL.ICON_ROTATE_FILL=76
RL.ICON_REPEAT_FILL=77
RL.ICON_SHUFFLE_FILL=78
RL.ICON_EMPTYBOX_SMALL=79
RL.ICON_BOX=80
RL.ICON_BOX_TOP=81
RL.ICON_BOX_TOP_RIGHT=82
RL.ICON_BOX_RIGHT=83
RL.ICON_BOX_BOTTOM_RIGHT=84