diff options
| author | lazaray <[email protected]> | 2022-05-04 11:06:01 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-05-04 11:06:01 +0200 |
| commit | df6caea25db9c9fdf9a9040f853a87fbe1c7867f (patch) | |
| tree | acc2f2e849bf0af34ad7f3b51984c5ff127aa4bc /parser/raylib_api.txt | |
| parent | 8cb03ef52445dc63b0685918169491ba0038c888 (diff) | |
| download | raylib-df6caea25db9c9fdf9a9040f853a87fbe1c7867f.tar.gz raylib-df6caea25db9c9fdf9a9040f853a87fbe1c7867f.zip | |
Parser improvements (#2461)
* Fix parser function description detection
Some functions in easings.h are defined on a single line and include a
division which was mistaken for the start of the description.
* Fix parser detection of macros including spaces
* Add support for self-referencing structs to parser
* Fix parser code style
* Fix parser handling of multiple fields on one line
* Increase parser MAX_STRUCT_FIELDS
For internal rlglData State struct (internal structs are still not
supported but this makes it less wrong).
* Add description helper to parser
* Regenerate parser output
* Add cakkbacks to parser
* Regenerate parser output
* Refactor funcLines to be an array of line numbers
It used to be an array of pointers into the text buffer but was changed
to be an array of pointers to the lines. Now it is an array of line
numbers like the others.
* Fix code style
* Move array size from name to type
* Regenerate parser output
Diffstat (limited to 'parser/raylib_api.txt')
| -rw-r--r-- | parser/raylib_api.txt | 78 |
1 files changed, 59 insertions, 19 deletions
diff --git a/parser/raylib_api.txt b/parser/raylib_api.txt index cf673d4d..972b4d65 100644 --- a/parser/raylib_api.txt +++ b/parser/raylib_api.txt @@ -122,7 +122,7 @@ Struct 15: Mesh (15 fields) 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 second texture coordinates (useful for lightmaps) (shader-location = 5) + 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) @@ -149,7 +149,7 @@ Struct 18: Material (3 fields) 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 params[4] // Material generic parameters (if required) + Field[3]: float[4] params // Material generic parameters (if required) Struct 19: Transform (3 fields) Name: Transform Description: Transform, vectex transformation data @@ -159,7 +159,7 @@ Struct 19: Transform (3 fields) Struct 20: BoneInfo (2 fields) Name: BoneInfo Description: Bone, skeletal animation bone - Field[1]: char name[32] // Bone name + Field[1]: char[32] name // Bone name Field[2]: int parent // Bone parent Struct 21: Model (9 fields) Name: Model @@ -237,19 +237,19 @@ Struct 30: VrDeviceInfo (10 fields) 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 lensDistortionValues[4] // Lens distortion constant parameters - Field[10]: float chromaAbCorrection[4] // Chromatic aberration correction parameters + 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 projection[2] // VR projection matrices (per eye) - Field[2]: Matrix viewOffset[2] // VR view offset matrices (per eye) - Field[3]: float leftLensCenter[2] // VR left lens center - Field[4]: float rightLensCenter[2] // VR right lens center - Field[5]: float leftScreenCenter[2] // VR left screen center - Field[6]: float rightScreenCenter[2] // VR right screen center - Field[7]: float scale[2] // VR distortion scale - Field[8]: float scaleIn[2] // VR distortion scale in + 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 @@ -1281,7 +1281,7 @@ Function 121: GetApplicationDirectory() (0 input parameters) Function 122: GetDirectoryFiles() (2 input parameters) Name: GetDirectoryFiles Return type: char ** - Description: Get filenames in a directory path (memory should be freed) + Description: Get filenames in a directory path (memory must be freed) Param[1]: dirPath (type: const char *) Param[2]: count (type: int *) Function 123: ClearDirectoryFiles() (0 input parameters) @@ -1302,7 +1302,7 @@ Function 125: IsFileDropped() (0 input parameters) Function 126: GetDroppedFiles() (1 input parameters) Name: GetDroppedFiles Return type: char ** - Description: Get dropped files names (memory should be freed) + Description: Get dropped files names (memory must be freed) Param[1]: count (type: int *) Function 127: ClearDroppedFiles() (0 input parameters) Name: ClearDroppedFiles @@ -1317,28 +1317,28 @@ Function 128: GetFileModTime() (1 input parameters) Function 129: CompressData() (3 input parameters) Name: CompressData Return type: unsigned char * - Description: Compress data (DEFLATE algorithm) + Description: Compress data (DEFLATE algorithm), memory must be MemFree() Param[1]: data (type: const unsigned char *) Param[2]: dataSize (type: int) Param[3]: compDataSize (type: int *) Function 130: DecompressData() (3 input parameters) Name: DecompressData Return type: unsigned char * - Description: Decompress data (DEFLATE algorithm) + Description: Decompress data (DEFLATE algorithm), memory must be MemFree() Param[1]: compData (type: const unsigned char *) Param[2]: compDataSize (type: int) Param[3]: dataSize (type: int *) Function 131: EncodeDataBase64() (3 input parameters) Name: EncodeDataBase64 Return type: char * - Description: Encode data to Base64 string + Description: Encode data to Base64 string, memory must be MemFree() Param[1]: data (type: const unsigned char *) Param[2]: dataSize (type: int) Param[3]: outputSize (type: int *) Function 132: DecodeDataBase64() (2 input parameters) Name: DecodeDataBase64 Return type: unsigned char * - Description: Decode Base64 string data + Description: Decode Base64 string data, memory must be MemFree() Param[1]: data (type: const unsigned char *) Param[2]: outputSize (type: int *) Function 133: SaveStorageValue() (2 input parameters) @@ -3782,6 +3782,46 @@ Function 499: DetachAudioStreamProcessor() (2 input parameters) Param[1]: stream (type: AudioStream) Param[2]: processor (type: AudioCallback) +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) + Defines found: 52 Define 001: RAYLIB_H |
