forked from raysan5/raylib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathraylib_api.txt
4086 lines (4074 loc) · 144 KB
/
raylib_api.txt
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
Defines found: 52
Define 001: RAYLIB_H
Name: RAYLIB_H
Type: GUARD
Value:
Description:
Define 002: RAYLIB_VERSION
Name: RAYLIB_VERSION
Type: STRING
Value: "4.1-dev"
Description:
Define 003: RLAPI
Name: RLAPI
Type: UNKNOWN
Value: __declspec(dllexport)
Description: We are building the library as a Win32 shared library (.dll)
Define 004: PI
Name: PI
Type: FLOAT
Value: 3.14159265358979323846
Description:
Define 005: DEG2RAD
Name: DEG2RAD
Type: FLOAT_MATH
Value: (PI/180.0f)
Description:
Define 006: RAD2DEG
Name: RAD2DEG
Type: FLOAT_MATH
Value: (180.0f/PI)
Description:
Define 007: RL_MALLOC(sz)
Name: RL_MALLOC(sz)
Type: MACRO
Value: malloc(sz)
Description:
Define 008: RL_CALLOC(n,sz)
Name: RL_CALLOC(n,sz)
Type: MACRO
Value: calloc(n,sz)
Description:
Define 009: RL_REALLOC(ptr,sz)
Name: RL_REALLOC(ptr,sz)
Type: MACRO
Value: realloc(ptr,sz)
Description:
Define 010: RL_FREE(ptr)
Name: RL_FREE(ptr)
Type: MACRO
Value: free(ptr)
Description:
Define 011: CLITERAL(type)
Name: CLITERAL(type)
Type: MACRO
Value: type
Description:
Define 012: RL_COLOR_TYPE
Name: RL_COLOR_TYPE
Type: GUARD
Value:
Description:
Define 013: RL_RECTANGLE_TYPE
Name: RL_RECTANGLE_TYPE
Type: GUARD
Value:
Description:
Define 014: RL_VECTOR2_TYPE
Name: RL_VECTOR2_TYPE
Type: GUARD
Value:
Description:
Define 015: RL_VECTOR3_TYPE
Name: RL_VECTOR3_TYPE
Type: GUARD
Value:
Description:
Define 016: RL_VECTOR4_TYPE
Name: RL_VECTOR4_TYPE
Type: GUARD
Value:
Description:
Define 017: RL_QUATERNION_TYPE
Name: RL_QUATERNION_TYPE
Type: GUARD
Value:
Description:
Define 018: RL_MATRIX_TYPE
Name: RL_MATRIX_TYPE
Type: GUARD
Value:
Description:
Define 019: LIGHTGRAY
Name: LIGHTGRAY
Type: COLOR
Value: CLITERAL(Color){ 200, 200, 200, 255 }
Description: Light Gray
Define 020: GRAY
Name: GRAY
Type: COLOR
Value: CLITERAL(Color){ 130, 130, 130, 255 }
Description: Gray
Define 021: DARKGRAY
Name: DARKGRAY
Type: COLOR
Value: CLITERAL(Color){ 80, 80, 80, 255 }
Description: Dark Gray
Define 022: YELLOW
Name: YELLOW
Type: COLOR
Value: CLITERAL(Color){ 253, 249, 0, 255 }
Description: Yellow
Define 023: GOLD
Name: GOLD
Type: COLOR
Value: CLITERAL(Color){ 255, 203, 0, 255 }
Description: Gold
Define 024: ORANGE
Name: ORANGE
Type: COLOR
Value: CLITERAL(Color){ 255, 161, 0, 255 }
Description: Orange
Define 025: PINK
Name: PINK
Type: COLOR
Value: CLITERAL(Color){ 255, 109, 194, 255 }
Description: Pink
Define 026: RED
Name: RED
Type: COLOR
Value: CLITERAL(Color){ 230, 41, 55, 255 }
Description: Red
Define 027: MAROON
Name: MAROON
Type: COLOR
Value: CLITERAL(Color){ 190, 33, 55, 255 }
Description: Maroon
Define 028: GREEN
Name: GREEN
Type: COLOR
Value: CLITERAL(Color){ 0, 228, 48, 255 }
Description: Green
Define 029: LIME
Name: LIME
Type: COLOR
Value: CLITERAL(Color){ 0, 158, 47, 255 }
Description: Lime
Define 030: DARKGREEN
Name: DARKGREEN
Type: COLOR
Value: CLITERAL(Color){ 0, 117, 44, 255 }
Description: Dark Green
Define 031: SKYBLUE
Name: SKYBLUE
Type: COLOR
Value: CLITERAL(Color){ 102, 191, 255, 255 }
Description: Sky Blue
Define 032: BLUE
Name: BLUE
Type: COLOR
Value: CLITERAL(Color){ 0, 121, 241, 255 }
Description: Blue
Define 033: DARKBLUE
Name: DARKBLUE
Type: COLOR
Value: CLITERAL(Color){ 0, 82, 172, 255 }
Description: Dark Blue
Define 034: PURPLE
Name: PURPLE
Type: COLOR
Value: CLITERAL(Color){ 200, 122, 255, 255 }
Description: Purple
Define 035: VIOLET
Name: VIOLET
Type: COLOR
Value: CLITERAL(Color){ 135, 60, 190, 255 }
Description: Violet
Define 036: DARKPURPLE
Name: DARKPURPLE
Type: COLOR
Value: CLITERAL(Color){ 112, 31, 126, 255 }
Description: Dark Purple
Define 037: BEIGE
Name: BEIGE
Type: COLOR
Value: CLITERAL(Color){ 211, 176, 131, 255 }
Description: Beige
Define 038: BROWN
Name: BROWN
Type: COLOR
Value: CLITERAL(Color){ 127, 106, 79, 255 }
Description: Brown
Define 039: DARKBROWN
Name: DARKBROWN
Type: COLOR
Value: CLITERAL(Color){ 76, 63, 47, 255 }
Description: Dark Brown
Define 040: WHITE
Name: WHITE
Type: COLOR
Value: CLITERAL(Color){ 255, 255, 255, 255 }
Description: White
Define 041: BLACK
Name: BLACK
Type: COLOR
Value: CLITERAL(Color){ 0, 0, 0, 255 }
Description: Black
Define 042: BLANK
Name: BLANK
Type: COLOR
Value: CLITERAL(Color){ 0, 0, 0, 0 }
Description: Blank (Transparent)
Define 043: MAGENTA
Name: MAGENTA
Type: COLOR
Value: CLITERAL(Color){ 255, 0, 255, 255 }
Description: Magenta
Define 044: RAYWHITE
Name: RAYWHITE
Type: COLOR
Value: CLITERAL(Color){ 245, 245, 245, 255 }
Description: My own White (raylib logo)
Define 045: RL_BOOL_TYPE
Name: RL_BOOL_TYPE
Type: GUARD
Value:
Description:
Define 046: MOUSE_LEFT_BUTTON
Name: MOUSE_LEFT_BUTTON
Type: UNKNOWN
Value: MOUSE_BUTTON_LEFT
Description:
Define 047: MOUSE_RIGHT_BUTTON
Name: MOUSE_RIGHT_BUTTON
Type: UNKNOWN
Value: MOUSE_BUTTON_RIGHT
Description:
Define 048: MOUSE_MIDDLE_BUTTON
Name: MOUSE_MIDDLE_BUTTON
Type: UNKNOWN
Value: MOUSE_BUTTON_MIDDLE
Description:
Define 049: MATERIAL_MAP_DIFFUSE
Name: MATERIAL_MAP_DIFFUSE
Type: UNKNOWN
Value: MATERIAL_MAP_ALBEDO
Description:
Define 050: MATERIAL_MAP_SPECULAR
Name: MATERIAL_MAP_SPECULAR
Type: UNKNOWN
Value: MATERIAL_MAP_METALNESS
Description:
Define 051: SHADER_LOC_MAP_DIFFUSE
Name: SHADER_LOC_MAP_DIFFUSE
Type: UNKNOWN
Value: SHADER_LOC_MAP_ALBEDO
Description:
Define 052: SHADER_LOC_MAP_SPECULAR
Name: SHADER_LOC_MAP_SPECULAR
Type: UNKNOWN
Value: SHADER_LOC_MAP_METALNESS
Description:
Structures found: 31
Struct 01: Vector2 (2 fields)
Name: Vector2
Description: Vector2, 2 components
Field[1]: float x // Vector x component
Field[2]: float y // Vector y component
Struct 02: Vector3 (3 fields)
Name: Vector3
Description: Vector3, 3 components
Field[1]: float x // Vector x component
Field[2]: float y // Vector y component
Field[3]: float z // Vector z component
Struct 03: Vector4 (4 fields)
Name: Vector4
Description: Vector4, 4 components
Field[1]: float x // Vector x component
Field[2]: float y // Vector y component
Field[3]: float z // Vector z component
Field[4]: float w // Vector w component
Struct 04: Matrix (16 fields)
Name: Matrix
Description: Matrix, 4x4 components, column major, OpenGL style, right handed
Field[1]: float m0 // Matrix first row (4 components)
Field[2]: float m4 // Matrix first row (4 components)
Field[3]: float m8 // Matrix first row (4 components)
Field[4]: float m12 // Matrix first row (4 components)
Field[5]: float m1 // Matrix second row (4 components)
Field[6]: float m5 // Matrix second row (4 components)
Field[7]: float m9 // Matrix second row (4 components)
Field[8]: float m13 // Matrix second row (4 components)
Field[9]: float m2 // Matrix third row (4 components)
Field[10]: float m6 // Matrix third row (4 components)
Field[11]: float m10 // Matrix third row (4 components)
Field[12]: float m14 // Matrix third row (4 components)
Field[13]: float m3 // Matrix fourth row (4 components)
Field[14]: float m7 // Matrix fourth row (4 components)
Field[15]: float m11 // Matrix fourth row (4 components)
Field[16]: float m15 // Matrix fourth row (4 components)
Struct 05: Color (4 fields)
Name: Color
Description: Color, 4 components, R8G8B8A8 (32bit)
Field[1]: unsigned char r // Color red value
Field[2]: unsigned char g // Color green value
Field[3]: unsigned char b // Color blue value
Field[4]: unsigned char a // Color alpha value
Struct 06: Rectangle (4 fields)
Name: Rectangle
Description: Rectangle, 4 components
Field[1]: float x // Rectangle top-left corner position x
Field[2]: float y // Rectangle top-left corner position y
Field[3]: float width // Rectangle width
Field[4]: float height // Rectangle height
Struct 07: Image (5 fields)
Name: Image
Description: Image, pixel data stored in CPU memory (RAM)
Field[1]: void * data // Image raw data
Field[2]: int width // Image base width
Field[3]: int height // Image base height
Field[4]: int mipmaps // Mipmap levels, 1 by default
Field[5]: int format // Data format (PixelFormat type)
Struct 08: Texture (5 fields)
Name: Texture
Description: Texture, tex data stored in GPU memory (VRAM)
Field[1]: unsigned int id // OpenGL texture id
Field[2]: int width // Texture base width
Field[3]: int height // Texture base height
Field[4]: int mipmaps // Mipmap levels, 1 by default
Field[5]: int format // Data format (PixelFormat type)
Struct 09: RenderTexture (3 fields)
Name: RenderTexture
Description: RenderTexture, fbo for texture rendering
Field[1]: unsigned int id // OpenGL framebuffer object id
Field[2]: Texture texture // Color buffer attachment texture
Field[3]: Texture depth // Depth buffer attachment texture
Struct 10: NPatchInfo (6 fields)
Name: NPatchInfo
Description: NPatchInfo, n-patch layout info
Field[1]: Rectangle source // Texture source rectangle
Field[2]: int left // Left border offset
Field[3]: int top // Top border offset
Field[4]: int right // Right border offset
Field[5]: int bottom // Bottom border offset
Field[6]: int layout // Layout of the n-patch: 3x3, 1x3 or 3x1
Struct 11: GlyphInfo (5 fields)
Name: GlyphInfo
Description: GlyphInfo, font characters glyphs info
Field[1]: int value // Character value (Unicode)
Field[2]: int offsetX // Character offset X when drawing
Field[3]: int offsetY // Character offset Y when drawing
Field[4]: int advanceX // Character advance position X
Field[5]: Image image // Character image data
Struct 12: Font (6 fields)
Name: Font
Description: Font, font texture and GlyphInfo array data
Field[1]: int baseSize // Base size (default chars height)
Field[2]: int glyphCount // Number of glyph characters
Field[3]: int glyphPadding // Padding around the glyph characters
Field[4]: Texture2D texture // Texture atlas containing the glyphs
Field[5]: Rectangle * recs // Rectangles in texture for the glyphs
Field[6]: GlyphInfo * glyphs // Glyphs info data
Struct 13: Camera3D (5 fields)
Name: Camera3D
Description: Camera, defines position/orientation in 3d space
Field[1]: Vector3 position // Camera position
Field[2]: Vector3 target // Camera target it looks-at
Field[3]: Vector3 up // Camera up vector (rotation over its axis)
Field[4]: float fovy // Camera field-of-view apperture in Y (degrees) in perspective, used as near plane width in orthographic
Field[5]: int projection // Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC
Struct 14: Camera2D (4 fields)
Name: Camera2D
Description: Camera2D, defines position/orientation in 2d space
Field[1]: Vector2 offset // Camera offset (displacement from target)
Field[2]: Vector2 target // Camera target (rotation and zoom origin)
Field[3]: float rotation // Camera rotation in degrees
Field[4]: float zoom // Camera zoom (scaling), should be 1.0f by default
Struct 15: Mesh (15 fields)
Name: Mesh
Description: Mesh, vertex data and vao/vbo
Field[1]: int vertexCount // Number of vertices stored in arrays
Field[2]: int triangleCount // Number of triangles stored (indexed or not)
Field[3]: float * vertices // Vertex position (XYZ - 3 components per vertex) (shader-location = 0)
Field[4]: float * texcoords // Vertex texture coordinates (UV - 2 components per vertex) (shader-location = 1)
Field[5]: float * texcoords2 // Vertex texture second coordinates (UV - 2 components per vertex) (shader-location = 5)
Field[6]: float * normals // Vertex normals (XYZ - 3 components per vertex) (shader-location = 2)
Field[7]: float * tangents // Vertex tangents (XYZW - 4 components per vertex) (shader-location = 4)
Field[8]: unsigned char * colors // Vertex colors (RGBA - 4 components per vertex) (shader-location = 3)
Field[9]: unsigned short * indices // Vertex indices (in case vertex data comes indexed)
Field[10]: float * animVertices // Animated vertex positions (after bones transformations)
Field[11]: float * animNormals // Animated normals (after bones transformations)
Field[12]: unsigned char * boneIds // Vertex bone ids, max 255 bone ids, up to 4 bones influence by vertex (skinning)
Field[13]: float * boneWeights // Vertex bone weight, up to 4 bones influence by vertex (skinning)
Field[14]: unsigned int vaoId // OpenGL Vertex Array Object id
Field[15]: unsigned int * vboId // OpenGL Vertex Buffer Objects id (default vertex data)
Struct 16: Shader (2 fields)
Name: Shader
Description: Shader
Field[1]: unsigned int id // Shader program id
Field[2]: int * locs // Shader locations array (RL_MAX_SHADER_LOCATIONS)
Struct 17: MaterialMap (3 fields)
Name: MaterialMap
Description: MaterialMap
Field[1]: Texture2D texture // Material map texture
Field[2]: Color color // Material map color
Field[3]: float value // Material map value
Struct 18: Material (3 fields)
Name: Material
Description: Material, includes shader and maps
Field[1]: Shader shader // Material shader
Field[2]: MaterialMap * maps // Material maps array (MAX_MATERIAL_MAPS)
Field[3]: float[4] params // Material generic parameters (if required)
Struct 19: Transform (3 fields)
Name: Transform
Description: Transform, vectex transformation data
Field[1]: Vector3 translation // Translation
Field[2]: Quaternion rotation // Rotation
Field[3]: Vector3 scale // Scale
Struct 20: BoneInfo (2 fields)
Name: BoneInfo
Description: Bone, skeletal animation bone
Field[1]: char[32] name // Bone name
Field[2]: int parent // Bone parent
Struct 21: Model (9 fields)
Name: Model
Description: Model, meshes, materials and animation data
Field[1]: Matrix transform // Local transform matrix
Field[2]: int meshCount // Number of meshes
Field[3]: int materialCount // Number of materials
Field[4]: Mesh * meshes // Meshes array
Field[5]: Material * materials // Materials array
Field[6]: int * meshMaterial // Mesh material number
Field[7]: int boneCount // Number of bones
Field[8]: BoneInfo * bones // Bones information (skeleton)
Field[9]: Transform * bindPose // Bones base transformation (pose)
Struct 22: ModelAnimation (4 fields)
Name: ModelAnimation
Description: ModelAnimation
Field[1]: int boneCount // Number of bones
Field[2]: int frameCount // Number of animation frames
Field[3]: BoneInfo * bones // Bones information (skeleton)
Field[4]: Transform ** framePoses // Poses array by frame
Struct 23: Ray (2 fields)
Name: Ray
Description: Ray, ray for raycasting
Field[1]: Vector3 position // Ray position (origin)
Field[2]: Vector3 direction // Ray direction
Struct 24: RayCollision (4 fields)
Name: RayCollision
Description: RayCollision, ray hit information
Field[1]: bool hit // Did the ray hit something?
Field[2]: float distance // Distance to nearest hit
Field[3]: Vector3 point // Point of nearest hit
Field[4]: Vector3 normal // Surface normal of hit
Struct 25: BoundingBox (2 fields)
Name: BoundingBox
Description: BoundingBox
Field[1]: Vector3 min // Minimum vertex box-corner
Field[2]: Vector3 max // Maximum vertex box-corner
Struct 26: Wave (5 fields)
Name: Wave
Description: Wave, audio wave data
Field[1]: unsigned int frameCount // Total number of frames (considering channels)
Field[2]: unsigned int sampleRate // Frequency (samples per second)
Field[3]: unsigned int sampleSize // Bit depth (bits per sample): 8, 16, 32 (24 not supported)
Field[4]: unsigned int channels // Number of channels (1-mono, 2-stereo, ...)
Field[5]: void * data // Buffer data pointer
Struct 27: AudioStream (5 fields)
Name: AudioStream
Description: AudioStream, custom audio stream
Field[1]: rAudioBuffer * buffer // Pointer to internal data used by the audio system
Field[2]: rAudioProcessor * processor // Pointer to internal data processor, useful for audio effects
Field[3]: unsigned int sampleRate // Frequency (samples per second)
Field[4]: unsigned int sampleSize // Bit depth (bits per sample): 8, 16, 32 (24 not supported)
Field[5]: unsigned int channels // Number of channels (1-mono, 2-stereo, ...)
Struct 28: Sound (2 fields)
Name: Sound
Description: Sound
Field[1]: AudioStream stream // Audio stream
Field[2]: unsigned int frameCount // Total number of frames (considering channels)
Struct 29: Music (5 fields)
Name: Music
Description: Music, audio stream, anything longer than ~10 seconds should be streamed
Field[1]: AudioStream stream // Audio stream
Field[2]: unsigned int frameCount // Total number of frames (considering channels)
Field[3]: bool looping // Music looping enable
Field[4]: int ctxType // Type of music context (audio filetype)
Field[5]: void * ctxData // Audio context data, depends on type
Struct 30: VrDeviceInfo (10 fields)
Name: VrDeviceInfo
Description: VrDeviceInfo, Head-Mounted-Display device parameters
Field[1]: int hResolution // Horizontal resolution in pixels
Field[2]: int vResolution // Vertical resolution in pixels
Field[3]: float hScreenSize // Horizontal size in meters
Field[4]: float vScreenSize // Vertical size in meters
Field[5]: float vScreenCenter // Screen center in meters
Field[6]: float eyeToScreenDistance // Distance between eye and display in meters
Field[7]: float lensSeparationDistance // Lens separation distance in meters
Field[8]: float interpupillaryDistance // IPD (distance between pupils) in meters
Field[9]: float[4] lensDistortionValues // Lens distortion constant parameters
Field[10]: float[4] chromaAbCorrection // Chromatic aberration correction parameters
Struct 31: VrStereoConfig (8 fields)
Name: VrStereoConfig
Description: VrStereoConfig, VR stereo rendering configuration for simulator
Field[1]: Matrix[2] projection // VR projection matrices (per eye)
Field[2]: Matrix[2] viewOffset // VR view offset matrices (per eye)
Field[3]: float[2] leftLensCenter // VR left lens center
Field[4]: float[2] rightLensCenter // VR right lens center
Field[5]: float[2] leftScreenCenter // VR left screen center
Field[6]: float[2] rightScreenCenter // VR right screen center
Field[7]: float[2] scale // VR distortion scale
Field[8]: float[2] scaleIn // VR distortion scale in
Aliases found: 5
Alias 001: Quaternion
Type: Vector4
Name: Quaternion
Description: Quaternion, 4 components (Vector4 alias)
Alias 002: Texture2D
Type: Texture
Name: Texture2D
Description: Texture2D, same as Texture
Alias 003: TextureCubemap
Type: Texture
Name: TextureCubemap
Description: TextureCubemap, same as Texture
Alias 004: RenderTexture2D
Type: RenderTexture
Name: RenderTexture2D
Description: RenderTexture2D, same as RenderTexture
Alias 005: Camera
Type: Camera3D
Name: Camera
Description: Camera type fallback, defaults to Camera3D
Enums found: 21
Enum 01: ConfigFlags (14 values)
Name: ConfigFlags
Description: System/Window config flags
Value[FLAG_VSYNC_HINT]: 64
Value[FLAG_FULLSCREEN_MODE]: 2
Value[FLAG_WINDOW_RESIZABLE]: 4
Value[FLAG_WINDOW_UNDECORATED]: 8
Value[FLAG_WINDOW_HIDDEN]: 128
Value[FLAG_WINDOW_MINIMIZED]: 512
Value[FLAG_WINDOW_MAXIMIZED]: 1024
Value[FLAG_WINDOW_UNFOCUSED]: 2048
Value[FLAG_WINDOW_TOPMOST]: 4096
Value[FLAG_WINDOW_ALWAYS_RUN]: 256
Value[FLAG_WINDOW_TRANSPARENT]: 16
Value[FLAG_WINDOW_HIGHDPI]: 8192
Value[FLAG_MSAA_4X_HINT]: 32
Value[FLAG_INTERLACED_HINT]: 65536
Enum 02: TraceLogLevel (8 values)
Name: TraceLogLevel
Description: Trace log level
Value[LOG_ALL]: 0
Value[LOG_TRACE]: 1
Value[LOG_DEBUG]: 2
Value[LOG_INFO]: 3
Value[LOG_WARNING]: 4
Value[LOG_ERROR]: 5
Value[LOG_FATAL]: 6
Value[LOG_NONE]: 7
Enum 03: KeyboardKey (110 values)
Name: KeyboardKey
Description: Keyboard keys (US keyboard layout)
Value[KEY_NULL]: 0
Value[KEY_APOSTROPHE]: 39
Value[KEY_COMMA]: 44
Value[KEY_MINUS]: 45
Value[KEY_PERIOD]: 46
Value[KEY_SLASH]: 47
Value[KEY_ZERO]: 48
Value[KEY_ONE]: 49
Value[KEY_TWO]: 50
Value[KEY_THREE]: 51
Value[KEY_FOUR]: 52
Value[KEY_FIVE]: 53
Value[KEY_SIX]: 54
Value[KEY_SEVEN]: 55
Value[KEY_EIGHT]: 56
Value[KEY_NINE]: 57
Value[KEY_SEMICOLON]: 59
Value[KEY_EQUAL]: 61
Value[KEY_A]: 65
Value[KEY_B]: 66
Value[KEY_C]: 67
Value[KEY_D]: 68
Value[KEY_E]: 69
Value[KEY_F]: 70
Value[KEY_G]: 71
Value[KEY_H]: 72
Value[KEY_I]: 73
Value[KEY_J]: 74
Value[KEY_K]: 75
Value[KEY_L]: 76
Value[KEY_M]: 77
Value[KEY_N]: 78
Value[KEY_O]: 79
Value[KEY_P]: 80
Value[KEY_Q]: 81
Value[KEY_R]: 82
Value[KEY_S]: 83
Value[KEY_T]: 84
Value[KEY_U]: 85
Value[KEY_V]: 86
Value[KEY_W]: 87
Value[KEY_X]: 88
Value[KEY_Y]: 89
Value[KEY_Z]: 90
Value[KEY_LEFT_BRACKET]: 91
Value[KEY_BACKSLASH]: 92
Value[KEY_RIGHT_BRACKET]: 93
Value[KEY_GRAVE]: 96
Value[KEY_SPACE]: 32
Value[KEY_ESCAPE]: 256
Value[KEY_ENTER]: 257
Value[KEY_TAB]: 258
Value[KEY_BACKSPACE]: 259
Value[KEY_INSERT]: 260
Value[KEY_DELETE]: 261
Value[KEY_RIGHT]: 262
Value[KEY_LEFT]: 263
Value[KEY_DOWN]: 264
Value[KEY_UP]: 265
Value[KEY_PAGE_UP]: 266
Value[KEY_PAGE_DOWN]: 267
Value[KEY_HOME]: 268
Value[KEY_END]: 269
Value[KEY_CAPS_LOCK]: 280
Value[KEY_SCROLL_LOCK]: 281
Value[KEY_NUM_LOCK]: 282
Value[KEY_PRINT_SCREEN]: 283
Value[KEY_PAUSE]: 284
Value[KEY_F1]: 290
Value[KEY_F2]: 291
Value[KEY_F3]: 292
Value[KEY_F4]: 293
Value[KEY_F5]: 294
Value[KEY_F6]: 295
Value[KEY_F7]: 296
Value[KEY_F8]: 297
Value[KEY_F9]: 298
Value[KEY_F10]: 299
Value[KEY_F11]: 300
Value[KEY_F12]: 301
Value[KEY_LEFT_SHIFT]: 340
Value[KEY_LEFT_CONTROL]: 341
Value[KEY_LEFT_ALT]: 342
Value[KEY_LEFT_SUPER]: 343
Value[KEY_RIGHT_SHIFT]: 344
Value[KEY_RIGHT_CONTROL]: 345
Value[KEY_RIGHT_ALT]: 346
Value[KEY_RIGHT_SUPER]: 347
Value[KEY_KB_MENU]: 348
Value[KEY_KP_0]: 320
Value[KEY_KP_1]: 321
Value[KEY_KP_2]: 322
Value[KEY_KP_3]: 323
Value[KEY_KP_4]: 324
Value[KEY_KP_5]: 325
Value[KEY_KP_6]: 326
Value[KEY_KP_7]: 327
Value[KEY_KP_8]: 328
Value[KEY_KP_9]: 329
Value[KEY_KP_DECIMAL]: 330
Value[KEY_KP_DIVIDE]: 331
Value[KEY_KP_MULTIPLY]: 332
Value[KEY_KP_SUBTRACT]: 333
Value[KEY_KP_ADD]: 334
Value[KEY_KP_ENTER]: 335
Value[KEY_KP_EQUAL]: 336
Value[KEY_BACK]: 4
Value[KEY_MENU]: 82
Value[KEY_VOLUME_UP]: 24
Value[KEY_VOLUME_DOWN]: 25
Enum 04: MouseButton (7 values)
Name: MouseButton
Description: Mouse buttons
Value[MOUSE_BUTTON_LEFT]: 0
Value[MOUSE_BUTTON_RIGHT]: 1
Value[MOUSE_BUTTON_MIDDLE]: 2
Value[MOUSE_BUTTON_SIDE]: 3
Value[MOUSE_BUTTON_EXTRA]: 4
Value[MOUSE_BUTTON_FORWARD]: 5
Value[MOUSE_BUTTON_BACK]: 6
Enum 05: MouseCursor (11 values)
Name: MouseCursor
Description: Mouse cursor
Value[MOUSE_CURSOR_DEFAULT]: 0
Value[MOUSE_CURSOR_ARROW]: 1
Value[MOUSE_CURSOR_IBEAM]: 2
Value[MOUSE_CURSOR_CROSSHAIR]: 3
Value[MOUSE_CURSOR_POINTING_HAND]: 4
Value[MOUSE_CURSOR_RESIZE_EW]: 5
Value[MOUSE_CURSOR_RESIZE_NS]: 6
Value[MOUSE_CURSOR_RESIZE_NWSE]: 7
Value[MOUSE_CURSOR_RESIZE_NESW]: 8
Value[MOUSE_CURSOR_RESIZE_ALL]: 9
Value[MOUSE_CURSOR_NOT_ALLOWED]: 10
Enum 06: GamepadButton (18 values)
Name: GamepadButton
Description: Gamepad buttons
Value[GAMEPAD_BUTTON_UNKNOWN]: 0
Value[GAMEPAD_BUTTON_LEFT_FACE_UP]: 1
Value[GAMEPAD_BUTTON_LEFT_FACE_RIGHT]: 2
Value[GAMEPAD_BUTTON_LEFT_FACE_DOWN]: 3
Value[GAMEPAD_BUTTON_LEFT_FACE_LEFT]: 4
Value[GAMEPAD_BUTTON_RIGHT_FACE_UP]: 5
Value[GAMEPAD_BUTTON_RIGHT_FACE_RIGHT]: 6
Value[GAMEPAD_BUTTON_RIGHT_FACE_DOWN]: 7
Value[GAMEPAD_BUTTON_RIGHT_FACE_LEFT]: 8
Value[GAMEPAD_BUTTON_LEFT_TRIGGER_1]: 9
Value[GAMEPAD_BUTTON_LEFT_TRIGGER_2]: 10
Value[GAMEPAD_BUTTON_RIGHT_TRIGGER_1]: 11
Value[GAMEPAD_BUTTON_RIGHT_TRIGGER_2]: 12
Value[GAMEPAD_BUTTON_MIDDLE_LEFT]: 13
Value[GAMEPAD_BUTTON_MIDDLE]: 14
Value[GAMEPAD_BUTTON_MIDDLE_RIGHT]: 15
Value[GAMEPAD_BUTTON_LEFT_THUMB]: 16
Value[GAMEPAD_BUTTON_RIGHT_THUMB]: 17
Enum 07: GamepadAxis (6 values)
Name: GamepadAxis
Description: Gamepad axis
Value[GAMEPAD_AXIS_LEFT_X]: 0
Value[GAMEPAD_AXIS_LEFT_Y]: 1
Value[GAMEPAD_AXIS_RIGHT_X]: 2
Value[GAMEPAD_AXIS_RIGHT_Y]: 3
Value[GAMEPAD_AXIS_LEFT_TRIGGER]: 4
Value[GAMEPAD_AXIS_RIGHT_TRIGGER]: 5
Enum 08: MaterialMapIndex (11 values)
Name: MaterialMapIndex
Description: Material map index
Value[MATERIAL_MAP_ALBEDO]: 0
Value[MATERIAL_MAP_METALNESS]: 1
Value[MATERIAL_MAP_NORMAL]: 2
Value[MATERIAL_MAP_ROUGHNESS]: 3
Value[MATERIAL_MAP_OCCLUSION]: 4
Value[MATERIAL_MAP_EMISSION]: 5
Value[MATERIAL_MAP_HEIGHT]: 6
Value[MATERIAL_MAP_CUBEMAP]: 7
Value[MATERIAL_MAP_IRRADIANCE]: 8
Value[MATERIAL_MAP_PREFILTER]: 9
Value[MATERIAL_MAP_BRDF]: 10
Enum 09: ShaderLocationIndex (26 values)
Name: ShaderLocationIndex
Description: Shader location index
Value[SHADER_LOC_VERTEX_POSITION]: 0
Value[SHADER_LOC_VERTEX_TEXCOORD01]: 1
Value[SHADER_LOC_VERTEX_TEXCOORD02]: 2
Value[SHADER_LOC_VERTEX_NORMAL]: 3
Value[SHADER_LOC_VERTEX_TANGENT]: 4
Value[SHADER_LOC_VERTEX_COLOR]: 5
Value[SHADER_LOC_MATRIX_MVP]: 6
Value[SHADER_LOC_MATRIX_VIEW]: 7
Value[SHADER_LOC_MATRIX_PROJECTION]: 8
Value[SHADER_LOC_MATRIX_MODEL]: 9
Value[SHADER_LOC_MATRIX_NORMAL]: 10
Value[SHADER_LOC_VECTOR_VIEW]: 11
Value[SHADER_LOC_COLOR_DIFFUSE]: 12
Value[SHADER_LOC_COLOR_SPECULAR]: 13
Value[SHADER_LOC_COLOR_AMBIENT]: 14
Value[SHADER_LOC_MAP_ALBEDO]: 15
Value[SHADER_LOC_MAP_METALNESS]: 16
Value[SHADER_LOC_MAP_NORMAL]: 17
Value[SHADER_LOC_MAP_ROUGHNESS]: 18
Value[SHADER_LOC_MAP_OCCLUSION]: 19
Value[SHADER_LOC_MAP_EMISSION]: 20
Value[SHADER_LOC_MAP_HEIGHT]: 21
Value[SHADER_LOC_MAP_CUBEMAP]: 22
Value[SHADER_LOC_MAP_IRRADIANCE]: 23
Value[SHADER_LOC_MAP_PREFILTER]: 24
Value[SHADER_LOC_MAP_BRDF]: 25
Enum 10: ShaderUniformDataType (9 values)
Name: ShaderUniformDataType
Description: Shader uniform data type
Value[SHADER_UNIFORM_FLOAT]: 0
Value[SHADER_UNIFORM_VEC2]: 1
Value[SHADER_UNIFORM_VEC3]: 2
Value[SHADER_UNIFORM_VEC4]: 3
Value[SHADER_UNIFORM_INT]: 4
Value[SHADER_UNIFORM_IVEC2]: 5
Value[SHADER_UNIFORM_IVEC3]: 6
Value[SHADER_UNIFORM_IVEC4]: 7
Value[SHADER_UNIFORM_SAMPLER2D]: 8
Enum 11: ShaderAttributeDataType (4 values)
Name: ShaderAttributeDataType
Description: Shader attribute data types
Value[SHADER_ATTRIB_FLOAT]: 0
Value[SHADER_ATTRIB_VEC2]: 1
Value[SHADER_ATTRIB_VEC3]: 2
Value[SHADER_ATTRIB_VEC4]: 3
Enum 12: PixelFormat (21 values)
Name: PixelFormat
Description: Pixel formats
Value[PIXELFORMAT_UNCOMPRESSED_GRAYSCALE]: 1
Value[PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA]: 2
Value[PIXELFORMAT_UNCOMPRESSED_R5G6B5]: 3
Value[PIXELFORMAT_UNCOMPRESSED_R8G8B8]: 4
Value[PIXELFORMAT_UNCOMPRESSED_R5G5B5A1]: 5
Value[PIXELFORMAT_UNCOMPRESSED_R4G4B4A4]: 6
Value[PIXELFORMAT_UNCOMPRESSED_R8G8B8A8]: 7
Value[PIXELFORMAT_UNCOMPRESSED_R32]: 8
Value[PIXELFORMAT_UNCOMPRESSED_R32G32B32]: 9
Value[PIXELFORMAT_UNCOMPRESSED_R32G32B32A32]: 10
Value[PIXELFORMAT_COMPRESSED_DXT1_RGB]: 11
Value[PIXELFORMAT_COMPRESSED_DXT1_RGBA]: 12
Value[PIXELFORMAT_COMPRESSED_DXT3_RGBA]: 13
Value[PIXELFORMAT_COMPRESSED_DXT5_RGBA]: 14
Value[PIXELFORMAT_COMPRESSED_ETC1_RGB]: 15
Value[PIXELFORMAT_COMPRESSED_ETC2_RGB]: 16
Value[PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA]: 17
Value[PIXELFORMAT_COMPRESSED_PVRT_RGB]: 18
Value[PIXELFORMAT_COMPRESSED_PVRT_RGBA]: 19
Value[PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA]: 20
Value[PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA]: 21
Enum 13: TextureFilter (6 values)
Name: TextureFilter
Description: Texture parameters: filter mode
Value[TEXTURE_FILTER_POINT]: 0
Value[TEXTURE_FILTER_BILINEAR]: 1
Value[TEXTURE_FILTER_TRILINEAR]: 2
Value[TEXTURE_FILTER_ANISOTROPIC_4X]: 3
Value[TEXTURE_FILTER_ANISOTROPIC_8X]: 4
Value[TEXTURE_FILTER_ANISOTROPIC_16X]: 5
Enum 14: TextureWrap (4 values)
Name: TextureWrap
Description: Texture parameters: wrap mode
Value[TEXTURE_WRAP_REPEAT]: 0
Value[TEXTURE_WRAP_CLAMP]: 1
Value[TEXTURE_WRAP_MIRROR_REPEAT]: 2
Value[TEXTURE_WRAP_MIRROR_CLAMP]: 3
Enum 15: CubemapLayout (6 values)
Name: CubemapLayout
Description: Cubemap layouts
Value[CUBEMAP_LAYOUT_AUTO_DETECT]: 0
Value[CUBEMAP_LAYOUT_LINE_VERTICAL]: 1
Value[CUBEMAP_LAYOUT_LINE_HORIZONTAL]: 2
Value[CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR]: 3
Value[CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE]: 4
Value[CUBEMAP_LAYOUT_PANORAMA]: 5
Enum 16: FontType (3 values)
Name: FontType
Description: Font type, defines generation method
Value[FONT_DEFAULT]: 0
Value[FONT_BITMAP]: 1
Value[FONT_SDF]: 2
Enum 17: BlendMode (7 values)
Name: BlendMode
Description: Color blending modes (pre-defined)
Value[BLEND_ALPHA]: 0
Value[BLEND_ADDITIVE]: 1
Value[BLEND_MULTIPLIED]: 2
Value[BLEND_ADD_COLORS]: 3
Value[BLEND_SUBTRACT_COLORS]: 4
Value[BLEND_ALPHA_PREMUL]: 5
Value[BLEND_CUSTOM]: 6
Enum 18: Gesture (11 values)
Name: Gesture
Description: Gesture
Value[GESTURE_NONE]: 0
Value[GESTURE_TAP]: 1
Value[GESTURE_DOUBLETAP]: 2
Value[GESTURE_HOLD]: 4
Value[GESTURE_DRAG]: 8
Value[GESTURE_SWIPE_RIGHT]: 16
Value[GESTURE_SWIPE_LEFT]: 32
Value[GESTURE_SWIPE_UP]: 64
Value[GESTURE_SWIPE_DOWN]: 128
Value[GESTURE_PINCH_IN]: 256
Value[GESTURE_PINCH_OUT]: 512
Enum 19: CameraMode (5 values)
Name: CameraMode
Description: Camera system modes
Value[CAMERA_CUSTOM]: 0
Value[CAMERA_FREE]: 1
Value[CAMERA_ORBITAL]: 2
Value[CAMERA_FIRST_PERSON]: 3
Value[CAMERA_THIRD_PERSON]: 4
Enum 20: CameraProjection (2 values)
Name: CameraProjection
Description: Camera projection
Value[CAMERA_PERSPECTIVE]: 0
Value[CAMERA_ORTHOGRAPHIC]: 1
Enum 21: NPatchLayout (3 values)
Name: NPatchLayout
Description: N-patch layout
Value[NPATCH_NINE_PATCH]: 0
Value[NPATCH_THREE_PATCH_VERTICAL]: 1
Value[NPATCH_THREE_PATCH_HORIZONTAL]: 2
Callbacks found: 6
Callback 001: TraceLogCallback() (3 input parameters)
Name: TraceLogCallback
Return type: void
Description: Logging: Redirect trace log messages
Param[1]: logLevel (type: int)
Param[2]: text (type: const char *)
Param[3]: args (type: va_list)
Callback 002: LoadFileDataCallback() (2 input parameters)
Name: LoadFileDataCallback
Return type: unsigned char *
Description: FileIO: Load binary data
Param[1]: fileName (type: const char *)
Param[2]: bytesRead (type: unsigned int *)
Callback 003: SaveFileDataCallback() (3 input parameters)
Name: SaveFileDataCallback
Return type: bool
Description: FileIO: Save binary data
Param[1]: fileName (type: const char *)
Param[2]: data (type: void *)
Param[3]: bytesToWrite (type: unsigned int)
Callback 004: LoadFileTextCallback() (1 input parameters)
Name: LoadFileTextCallback
Return type: char *
Description: FileIO: Load text data
Param[1]: fileName (type: const char *)
Callback 005: SaveFileTextCallback() (2 input parameters)
Name: SaveFileTextCallback
Return type: bool
Description: FileIO: Save text data
Param[1]: fileName (type: const char *)
Param[2]: text (type: char *)
Callback 006: AudioCallback() (2 input parameters)
Name: AudioCallback
Return type: void
Description:
Param[1]: bufferData (type: void *)
Param[2]: frames (type: unsigned int)
Functions found: 499
Function 001: InitWindow() (3 input parameters)
Name: InitWindow
Return type: void
Description: Initialize window and OpenGL context
Param[1]: width (type: int)
Param[2]: height (type: int)
Param[3]: title (type: const char *)
Function 002: WindowShouldClose() (0 input parameters)
Name: WindowShouldClose
Return type: bool
Description: Check if KEY_ESCAPE pressed or Close icon pressed
No input parameters
Function 003: CloseWindow() (0 input parameters)
Name: CloseWindow
Return type: void
Description: Close window and unload OpenGL context
No input parameters
Function 004: IsWindowReady() (0 input parameters)
Name: IsWindowReady
Return type: bool
Description: Check if window has been initialized successfully
No input parameters
Function 005: IsWindowFullscreen() (0 input parameters)
Name: IsWindowFullscreen
Return type: bool
Description: Check if window is currently fullscreen
No input parameters
Function 006: IsWindowHidden() (0 input parameters)
Name: IsWindowHidden
Return type: bool
Description: Check if window is currently hidden (only PLATFORM_DESKTOP)
No input parameters
Function 007: IsWindowMinimized() (0 input parameters)
Name: IsWindowMinimized
Return type: bool
Description: Check if window is currently minimized (only PLATFORM_DESKTOP)
No input parameters
Function 008: IsWindowMaximized() (0 input parameters)
Name: IsWindowMaximized
Return type: bool
Description: Check if window is currently maximized (only PLATFORM_DESKTOP)
No input parameters
Function 009: IsWindowFocused() (0 input parameters)
Name: IsWindowFocused
Return type: bool
Description: Check if window is currently focused (only PLATFORM_DESKTOP)
No input parameters
Function 010: IsWindowResized() (0 input parameters)
Name: IsWindowResized
Return type: bool
Description: Check if window has been resized last frame
No input parameters
Function 011: IsWindowState() (1 input parameters)
Name: IsWindowState
Return type: bool
Description: Check if one specific window flag is enabled
Param[1]: flag (type: unsigned int)
Function 012: SetWindowState() (1 input parameters)
Name: SetWindowState
Return type: void
Description: Set window configuration state using flags (only PLATFORM_DESKTOP)