Browse Source

build raylib_api without the 'vectex' tyops (#2749)

Dor Shapira 2 years ago
parent
commit
0d04ceafbf
4 changed files with 526 additions and 220 deletions
  1. 165 23
      parser/output/raylib_api.json
  2. 97 21
      parser/output/raylib_api.lua
  3. 209 158
      parser/output/raylib_api.txt
  4. 55 18
      parser/output/raylib_api.xml

+ 165 - 23
parser/output/raylib_api.json

@@ -9,7 +9,7 @@
     {
     {
       "name": "RAYLIB_VERSION",
       "name": "RAYLIB_VERSION",
       "type": "STRING",
       "type": "STRING",
-      "value": "4.2",
+      "value": "4.5-dev",
       "description": ""
       "description": ""
     },
     },
     {
     {
@@ -729,7 +729,7 @@
         {
         {
           "type": "float",
           "type": "float",
           "name": "fovy",
           "name": "fovy",
-          "description": "Camera field-of-view apperture in Y (degrees) in perspective, used as near plane width in orthographic"
+          "description": "Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographic"
         },
         },
         {
         {
           "type": "int",
           "type": "int",
@@ -905,7 +905,7 @@
     },
     },
     {
     {
       "name": "Transform",
       "name": "Transform",
-      "description": "Transform, vectex transformation data",
+      "description": "Transform, vertex transformation data",
       "fields": [
       "fields": [
         {
         {
           "type": "Vector3",
           "type": "Vector3",
@@ -2051,7 +2051,7 @@
         {
         {
           "name": "MOUSE_BUTTON_FORWARD",
           "name": "MOUSE_BUTTON_FORWARD",
           "value": 5,
           "value": 5,
-          "description": "Mouse button fordward (advanced mouse device)"
+          "description": "Mouse button forward (advanced mouse device)"
         },
         },
         {
         {
           "name": "MOUSE_BUTTON_BACK",
           "name": "MOUSE_BUTTON_BACK",
@@ -2795,6 +2795,11 @@
           "name": "BLEND_CUSTOM",
           "name": "BLEND_CUSTOM",
           "value": 6,
           "value": 6,
           "description": "Blend textures using custom src/dst factors (use rlSetBlendMode())"
           "description": "Blend textures using custom src/dst factors (use rlSetBlendMode())"
+        },
+        {
+          "name": "BLEND_CUSTOM_SEPARATE",
+          "value": 7,
+          "description": "Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendModeSeparate())"
         }
         }
       ]
       ]
     },
     },
@@ -3971,7 +3976,7 @@
       "returnType": "void *",
       "returnType": "void *",
       "params": [
       "params": [
         {
         {
-          "type": "int",
+          "type": "unsigned int",
           "name": "size"
           "name": "size"
         }
         }
       ]
       ]
@@ -3986,7 +3991,7 @@
           "name": "ptr"
           "name": "ptr"
         },
         },
         {
         {
-          "type": "int",
+          "type": "unsigned int",
           "name": "size"
           "name": "size"
         }
         }
       ]
       ]
@@ -5995,6 +6000,25 @@
         }
         }
       ]
       ]
     },
     },
+    {
+      "name": "CheckCollisionPointPoly",
+      "description": "Check if point is within a polygon described by array of vertices",
+      "returnType": "bool",
+      "params": [
+        {
+          "type": "Vector2",
+          "name": "point"
+        },
+        {
+          "type": "Vector2 *",
+          "name": "points"
+        },
+        {
+          "type": "int",
+          "name": "pointCount"
+        }
+      ]
+    },
     {
     {
       "name": "CheckCollisionLines",
       "name": "CheckCollisionLines",
       "description": "Check the collision between two lines defined by two points each, returns collision point by reference",
       "description": "Check the collision between two lines defined by two points each, returns collision point by reference",
@@ -6331,6 +6355,33 @@
         }
         }
       ]
       ]
     },
     },
+    {
+      "name": "GenImagePerlinNoise",
+      "description": "Generate image: perlin noise",
+      "returnType": "Image",
+      "params": [
+        {
+          "type": "int",
+          "name": "width"
+        },
+        {
+          "type": "int",
+          "name": "height"
+        },
+        {
+          "type": "int",
+          "name": "offsetX"
+        },
+        {
+          "type": "int",
+          "name": "offsetY"
+        },
+        {
+          "type": "float",
+          "name": "scale"
+        }
+      ]
+    },
     {
     {
       "name": "GenImageCellular",
       "name": "GenImageCellular",
       "description": "Generate image: cellular algorithm, bigger tileSize means bigger cells",
       "description": "Generate image: cellular algorithm, bigger tileSize means bigger cells",
@@ -6963,7 +7014,7 @@
     },
     },
     {
     {
       "name": "ImageDrawCircle",
       "name": "ImageDrawCircle",
-      "description": "Draw circle within an image",
+      "description": "Draw a filled circle within an image",
       "returnType": "void",
       "returnType": "void",
       "params": [
       "params": [
         {
         {
@@ -6990,7 +7041,57 @@
     },
     },
     {
     {
       "name": "ImageDrawCircleV",
       "name": "ImageDrawCircleV",
-      "description": "Draw circle within an image (Vector version)",
+      "description": "Draw a filled circle within an image (Vector version)",
+      "returnType": "void",
+      "params": [
+        {
+          "type": "Image *",
+          "name": "dst"
+        },
+        {
+          "type": "Vector2",
+          "name": "center"
+        },
+        {
+          "type": "int",
+          "name": "radius"
+        },
+        {
+          "type": "Color",
+          "name": "color"
+        }
+      ]
+    },
+    {
+      "name": "ImageDrawCircleLines",
+      "description": "Draw circle outline within an image",
+      "returnType": "void",
+      "params": [
+        {
+          "type": "Image *",
+          "name": "dst"
+        },
+        {
+          "type": "int",
+          "name": "centerX"
+        },
+        {
+          "type": "int",
+          "name": "centerY"
+        },
+        {
+          "type": "int",
+          "name": "radius"
+        },
+        {
+          "type": "Color",
+          "name": "color"
+        }
+      ]
+    },
+    {
+      "name": "ImageDrawCircleLinesV",
+      "description": "Draw circle outline within an image (Vector version)",
       "returnType": "void",
       "returnType": "void",
       "params": [
       "params": [
         {
         {
@@ -8221,6 +8322,32 @@
         }
         }
       ]
       ]
     },
     },
+    {
+      "name": "LoadUTF8",
+      "description": "Load UTF-8 text encoded from codepoints array",
+      "returnType": "char *",
+      "params": [
+        {
+          "type": "const int *",
+          "name": "codepoints"
+        },
+        {
+          "type": "int",
+          "name": "length"
+        }
+      ]
+    },
+    {
+      "name": "UnloadUTF8",
+      "description": "Unload UTF-8 text encoded from codepoints array",
+      "returnType": "void",
+      "params": [
+        {
+          "type": "char *",
+          "name": "text"
+        }
+      ]
+    },
     {
     {
       "name": "LoadCodepoints",
       "name": "LoadCodepoints",
       "description": "Load all codepoints from a UTF-8 text string, codepoints count returned by parameter",
       "description": "Load all codepoints from a UTF-8 text string, codepoints count returned by parameter",
@@ -8269,37 +8396,52 @@
         },
         },
         {
         {
           "type": "int *",
           "type": "int *",
-          "name": "bytesProcessed"
+          "name": "codepointSize"
         }
         }
       ]
       ]
     },
     },
     {
     {
-      "name": "CodepointToUTF8",
-      "description": "Encode one codepoint into UTF-8 byte array (array length returned as parameter)",
-      "returnType": "const char *",
+      "name": "GetCodepointNext",
+      "description": "Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure",
+      "returnType": "int",
       "params": [
       "params": [
         {
         {
-          "type": "int",
-          "name": "codepoint"
+          "type": "const char *",
+          "name": "text"
         },
         },
         {
         {
           "type": "int *",
           "type": "int *",
-          "name": "byteSize"
+          "name": "codepointSize"
         }
         }
       ]
       ]
     },
     },
     {
     {
-      "name": "TextCodepointsToUTF8",
-      "description": "Encode text as codepoints array into UTF-8 text string (WARNING: memory must be freed!)",
-      "returnType": "char *",
+      "name": "GetCodepointPrevious",
+      "description": "Get previous codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure",
+      "returnType": "int",
       "params": [
       "params": [
         {
         {
-          "type": "const int *",
-          "name": "codepoints"
+          "type": "const char *",
+          "name": "text"
         },
         },
+        {
+          "type": "int *",
+          "name": "codepointSize"
+        }
+      ]
+    },
+    {
+      "name": "CodepointToUTF8",
+      "description": "Encode one codepoint into UTF-8 byte array (array length returned as parameter)",
+      "returnType": "const char *",
+      "params": [
         {
         {
           "type": "int",
           "type": "int",
-          "name": "length"
+          "name": "codepoint"
+        },
+        {
+          "type": "int *",
+          "name": "utf8Size"
         }
         }
       ]
       ]
     },
     },
@@ -10685,7 +10827,7 @@
     },
     },
     {
     {
       "name": "AttachAudioStreamProcessor",
       "name": "AttachAudioStreamProcessor",
-      "description": "",
+      "description": "Attach audio stream processor to stream",
       "returnType": "void",
       "returnType": "void",
       "params": [
       "params": [
         {
         {
@@ -10700,7 +10842,7 @@
     },
     },
     {
     {
       "name": "DetachAudioStreamProcessor",
       "name": "DetachAudioStreamProcessor",
-      "description": "",
+      "description": "Detach audio stream processor from stream",
       "returnType": "void",
       "returnType": "void",
       "params": [
       "params": [
         {
         {

+ 97 - 21
parser/output/raylib_api.lua

@@ -9,7 +9,7 @@ return {
     {
     {
       name = "RAYLIB_VERSION",
       name = "RAYLIB_VERSION",
       type = "STRING",
       type = "STRING",
-      value = "4.2",
+      value = "4.5-dev",
       description = ""
       description = ""
     },
     },
     {
     {
@@ -729,7 +729,7 @@ return {
         {
         {
           type = "float",
           type = "float",
           name = "fovy",
           name = "fovy",
-          description = "Camera field-of-view apperture in Y (degrees) in perspective, used as near plane width in orthographic"
+          description = "Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographic"
         },
         },
         {
         {
           type = "int",
           type = "int",
@@ -905,7 +905,7 @@ return {
     },
     },
     {
     {
       name = "Transform",
       name = "Transform",
-      description = "Transform, vectex transformation data",
+      description = "Transform, vertex transformation data",
       fields = {
       fields = {
         {
         {
           type = "Vector3",
           type = "Vector3",
@@ -2051,7 +2051,7 @@ return {
         {
         {
           name = "MOUSE_BUTTON_FORWARD",
           name = "MOUSE_BUTTON_FORWARD",
           value = 5,
           value = 5,
-          description = "Mouse button fordward (advanced mouse device)"
+          description = "Mouse button forward (advanced mouse device)"
         },
         },
         {
         {
           name = "MOUSE_BUTTON_BACK",
           name = "MOUSE_BUTTON_BACK",
@@ -2795,6 +2795,11 @@ return {
           name = "BLEND_CUSTOM",
           name = "BLEND_CUSTOM",
           value = 6,
           value = 6,
           description = "Blend textures using custom src/dst factors (use rlSetBlendMode())"
           description = "Blend textures using custom src/dst factors (use rlSetBlendMode())"
+        },
+        {
+          name = "BLEND_CUSTOM_SEPARATE",
+          value = 7,
+          description = "Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendModeSeparate())"
         }
         }
       }
       }
     },
     },
@@ -3673,7 +3678,7 @@ return {
       description = "Internal memory allocator",
       description = "Internal memory allocator",
       returnType = "void *",
       returnType = "void *",
       params = {
       params = {
-        {type = "int", name = "size"}
+        {type = "unsigned int", name = "size"}
       }
       }
     },
     },
     {
     {
@@ -3682,7 +3687,7 @@ return {
       returnType = "void *",
       returnType = "void *",
       params = {
       params = {
         {type = "void *", name = "ptr"},
         {type = "void *", name = "ptr"},
-        {type = "int", name = "size"}
+        {type = "unsigned int", name = "size"}
       }
       }
     },
     },
     {
     {
@@ -4846,6 +4851,16 @@ return {
         {type = "Vector2", name = "p3"}
         {type = "Vector2", name = "p3"}
       }
       }
     },
     },
+    {
+      name = "CheckCollisionPointPoly",
+      description = "Check if point is within a polygon described by array of vertices",
+      returnType = "bool",
+      params = {
+        {type = "Vector2", name = "point"},
+        {type = "Vector2 *", name = "points"},
+        {type = "int", name = "pointCount"}
+      }
+    },
     {
     {
       name = "CheckCollisionLines",
       name = "CheckCollisionLines",
       description = "Check the collision between two lines defined by two points each, returns collision point by reference",
       description = "Check the collision between two lines defined by two points each, returns collision point by reference",
@@ -5023,6 +5038,18 @@ return {
         {type = "float", name = "factor"}
         {type = "float", name = "factor"}
       }
       }
     },
     },
+    {
+      name = "GenImagePerlinNoise",
+      description = "Generate image: perlin noise",
+      returnType = "Image",
+      params = {
+        {type = "int", name = "width"},
+        {type = "int", name = "height"},
+        {type = "int", name = "offsetX"},
+        {type = "int", name = "offsetY"},
+        {type = "float", name = "scale"}
+      }
+    },
     {
     {
       name = "GenImageCellular",
       name = "GenImageCellular",
       description = "Generate image: cellular algorithm, bigger tileSize means bigger cells",
       description = "Generate image: cellular algorithm, bigger tileSize means bigger cells",
@@ -5382,7 +5409,7 @@ return {
     },
     },
     {
     {
       name = "ImageDrawCircle",
       name = "ImageDrawCircle",
-      description = "Draw circle within an image",
+      description = "Draw a filled circle within an image",
       returnType = "void",
       returnType = "void",
       params = {
       params = {
         {type = "Image *", name = "dst"},
         {type = "Image *", name = "dst"},
@@ -5394,7 +5421,30 @@ return {
     },
     },
     {
     {
       name = "ImageDrawCircleV",
       name = "ImageDrawCircleV",
-      description = "Draw circle within an image (Vector version)",
+      description = "Draw a filled circle within an image (Vector version)",
+      returnType = "void",
+      params = {
+        {type = "Image *", name = "dst"},
+        {type = "Vector2", name = "center"},
+        {type = "int", name = "radius"},
+        {type = "Color", name = "color"}
+      }
+    },
+    {
+      name = "ImageDrawCircleLines",
+      description = "Draw circle outline within an image",
+      returnType = "void",
+      params = {
+        {type = "Image *", name = "dst"},
+        {type = "int", name = "centerX"},
+        {type = "int", name = "centerY"},
+        {type = "int", name = "radius"},
+        {type = "Color", name = "color"}
+      }
+    },
+    {
+      name = "ImageDrawCircleLinesV",
+      description = "Draw circle outline within an image (Vector version)",
       returnType = "void",
       returnType = "void",
       params = {
       params = {
         {type = "Image *", name = "dst"},
         {type = "Image *", name = "dst"},
@@ -6019,6 +6069,23 @@ return {
         {type = "int", name = "codepoint"}
         {type = "int", name = "codepoint"}
       }
       }
     },
     },
+    {
+      name = "LoadUTF8",
+      description = "Load UTF-8 text encoded from codepoints array",
+      returnType = "char *",
+      params = {
+        {type = "const int *", name = "codepoints"},
+        {type = "int", name = "length"}
+      }
+    },
+    {
+      name = "UnloadUTF8",
+      description = "Unload UTF-8 text encoded from codepoints array",
+      returnType = "void",
+      params = {
+        {type = "char *", name = "text"}
+      }
+    },
     {
     {
       name = "LoadCodepoints",
       name = "LoadCodepoints",
       description = "Load all codepoints from a UTF-8 text string, codepoints count returned by parameter",
       description = "Load all codepoints from a UTF-8 text string, codepoints count returned by parameter",
@@ -6050,25 +6117,34 @@ return {
       returnType = "int",
       returnType = "int",
       params = {
       params = {
         {type = "const char *", name = "text"},
         {type = "const char *", name = "text"},
-        {type = "int *", name = "bytesProcessed"}
+        {type = "int *", name = "codepointSize"}
       }
       }
     },
     },
     {
     {
-      name = "CodepointToUTF8",
-      description = "Encode one codepoint into UTF-8 byte array (array length returned as parameter)",
-      returnType = "const char *",
+      name = "GetCodepointNext",
+      description = "Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure",
+      returnType = "int",
       params = {
       params = {
-        {type = "int", name = "codepoint"},
-        {type = "int *", name = "byteSize"}
+        {type = "const char *", name = "text"},
+        {type = "int *", name = "codepointSize"}
       }
       }
     },
     },
     {
     {
-      name = "TextCodepointsToUTF8",
-      description = "Encode text as codepoints array into UTF-8 text string (WARNING: memory must be freed!)",
-      returnType = "char *",
+      name = "GetCodepointPrevious",
+      description = "Get previous codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure",
+      returnType = "int",
       params = {
       params = {
-        {type = "const int *", name = "codepoints"},
-        {type = "int", name = "length"}
+        {type = "const char *", name = "text"},
+        {type = "int *", name = "codepointSize"}
+      }
+    },
+    {
+      name = "CodepointToUTF8",
+      description = "Encode one codepoint into UTF-8 byte array (array length returned as parameter)",
+      returnType = "const char *",
+      params = {
+        {type = "int", name = "codepoint"},
+        {type = "int *", name = "utf8Size"}
       }
       }
     },
     },
     {
     {
@@ -7415,7 +7491,7 @@ return {
     },
     },
     {
     {
       name = "AttachAudioStreamProcessor",
       name = "AttachAudioStreamProcessor",
-      description = "",
+      description = "Attach audio stream processor to stream",
       returnType = "void",
       returnType = "void",
       params = {
       params = {
         {type = "AudioStream", name = "stream"},
         {type = "AudioStream", name = "stream"},
@@ -7424,7 +7500,7 @@ return {
     },
     },
     {
     {
       name = "DetachAudioStreamProcessor",
       name = "DetachAudioStreamProcessor",
-      description = "",
+      description = "Detach audio stream processor from stream",
       returnType = "void",
       returnType = "void",
       params = {
       params = {
         {type = "AudioStream", name = "stream"},
         {type = "AudioStream", name = "stream"},

File diff suppressed because it is too large
+ 209 - 158
parser/output/raylib_api.txt


+ 55 - 18
parser/output/raylib_api.xml

@@ -2,7 +2,7 @@
 <raylibAPI>
 <raylibAPI>
     <Defines count="53">
     <Defines count="53">
         <Define name="RAYLIB_H" type="GUARD" value="" desc="" />
         <Define name="RAYLIB_H" type="GUARD" value="" desc="" />
-        <Define name="RAYLIB_VERSION" type="STRING" value="4.2" desc="" />
+        <Define name="RAYLIB_VERSION" type="STRING" value="4.5-dev" desc="" />
         <Define name="__declspec(x)" type="MACRO" value="__attribute__((x))" desc="" />
         <Define name="__declspec(x)" type="MACRO" value="__attribute__((x))" desc="" />
         <Define name="RLAPI" type="UNKNOWN" value="__declspec(dllexport)" desc="We are building the library as a Win32 shared library (.dll)" />
         <Define name="RLAPI" type="UNKNOWN" value="__declspec(dllexport)" desc="We are building the library as a Win32 shared library (.dll)" />
         <Define name="PI" type="FLOAT" value="3.14159265358979323846" desc="" />
         <Define name="PI" type="FLOAT" value="3.14159265358979323846" desc="" />
@@ -147,7 +147,7 @@
             <Field type="Vector3" name="position" desc="Camera position" />
             <Field type="Vector3" name="position" desc="Camera position" />
             <Field type="Vector3" name="target" desc="Camera target it looks-at" />
             <Field type="Vector3" name="target" desc="Camera target it looks-at" />
             <Field type="Vector3" name="up" desc="Camera up vector (rotation over its axis)" />
             <Field type="Vector3" name="up" desc="Camera up vector (rotation over its axis)" />
-            <Field type="float" name="fovy" desc="Camera field-of-view apperture in Y (degrees) in perspective, used as near plane width in orthographic" />
+            <Field type="float" name="fovy" desc="Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographic" />
             <Field type="int" name="projection" desc="Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC" />
             <Field type="int" name="projection" desc="Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC" />
         </Struct>
         </Struct>
         <Struct name="Camera2D" fieldCount="4" desc="Camera2D, defines position/orientation in 2d space">
         <Struct name="Camera2D" fieldCount="4" desc="Camera2D, defines position/orientation in 2d space">
@@ -187,7 +187,7 @@
             <Field type="MaterialMap *" name="maps" desc="Material maps array (MAX_MATERIAL_MAPS)" />
             <Field type="MaterialMap *" name="maps" desc="Material maps array (MAX_MATERIAL_MAPS)" />
             <Field type="float[4]" name="params" desc="Material generic parameters (if required)" />
             <Field type="float[4]" name="params" desc="Material generic parameters (if required)" />
         </Struct>
         </Struct>
-        <Struct name="Transform" fieldCount="3" desc="Transform, vectex transformation data">
+        <Struct name="Transform" fieldCount="3" desc="Transform, vertex transformation data">
             <Field type="Vector3" name="translation" desc="Translation" />
             <Field type="Vector3" name="translation" desc="Translation" />
             <Field type="Quaternion" name="rotation" desc="Rotation" />
             <Field type="Quaternion" name="rotation" desc="Rotation" />
             <Field type="Vector3" name="scale" desc="Scale" />
             <Field type="Vector3" name="scale" desc="Scale" />
@@ -433,7 +433,7 @@
             <Value name="MOUSE_BUTTON_MIDDLE" integer="2" desc="Mouse button middle (pressed wheel)" />
             <Value name="MOUSE_BUTTON_MIDDLE" integer="2" desc="Mouse button middle (pressed wheel)" />
             <Value name="MOUSE_BUTTON_SIDE" integer="3" desc="Mouse button side (advanced mouse device)" />
             <Value name="MOUSE_BUTTON_SIDE" integer="3" desc="Mouse button side (advanced mouse device)" />
             <Value name="MOUSE_BUTTON_EXTRA" integer="4" desc="Mouse button extra (advanced mouse device)" />
             <Value name="MOUSE_BUTTON_EXTRA" integer="4" desc="Mouse button extra (advanced mouse device)" />
-            <Value name="MOUSE_BUTTON_FORWARD" integer="5" desc="Mouse button fordward (advanced mouse device)" />
+            <Value name="MOUSE_BUTTON_FORWARD" integer="5" desc="Mouse button forward (advanced mouse device)" />
             <Value name="MOUSE_BUTTON_BACK" integer="6" desc="Mouse button back (advanced mouse device)" />
             <Value name="MOUSE_BUTTON_BACK" integer="6" desc="Mouse button back (advanced mouse device)" />
         </Enum>
         </Enum>
         <Enum name="MouseCursor" valueCount="11" desc="Mouse cursor">
         <Enum name="MouseCursor" valueCount="11" desc="Mouse cursor">
@@ -585,7 +585,7 @@
             <Value name="FONT_BITMAP" integer="1" desc="Bitmap font generation, no anti-aliasing" />
             <Value name="FONT_BITMAP" integer="1" desc="Bitmap font generation, no anti-aliasing" />
             <Value name="FONT_SDF" integer="2" desc="SDF font generation, requires external shader" />
             <Value name="FONT_SDF" integer="2" desc="SDF font generation, requires external shader" />
         </Enum>
         </Enum>
-        <Enum name="BlendMode" valueCount="7" desc="Color blending modes (pre-defined)">
+        <Enum name="BlendMode" valueCount="8" desc="Color blending modes (pre-defined)">
             <Value name="BLEND_ALPHA" integer="0" desc="Blend textures considering alpha (default)" />
             <Value name="BLEND_ALPHA" integer="0" desc="Blend textures considering alpha (default)" />
             <Value name="BLEND_ADDITIVE" integer="1" desc="Blend textures adding colors" />
             <Value name="BLEND_ADDITIVE" integer="1" desc="Blend textures adding colors" />
             <Value name="BLEND_MULTIPLIED" integer="2" desc="Blend textures multiplying colors" />
             <Value name="BLEND_MULTIPLIED" integer="2" desc="Blend textures multiplying colors" />
@@ -593,6 +593,7 @@
             <Value name="BLEND_SUBTRACT_COLORS" integer="4" desc="Blend textures subtracting colors (alternative)" />
             <Value name="BLEND_SUBTRACT_COLORS" integer="4" desc="Blend textures subtracting colors (alternative)" />
             <Value name="BLEND_ALPHA_PREMULTIPLY" integer="5" desc="Blend premultiplied textures considering alpha" />
             <Value name="BLEND_ALPHA_PREMULTIPLY" integer="5" desc="Blend premultiplied textures considering alpha" />
             <Value name="BLEND_CUSTOM" integer="6" desc="Blend textures using custom src/dst factors (use rlSetBlendMode())" />
             <Value name="BLEND_CUSTOM" integer="6" desc="Blend textures using custom src/dst factors (use rlSetBlendMode())" />
+            <Value name="BLEND_CUSTOM_SEPARATE" integer="7" desc="Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendModeSeparate())" />
         </Enum>
         </Enum>
         <Enum name="Gesture" valueCount="11" desc="Gesture">
         <Enum name="Gesture" valueCount="11" desc="Gesture">
             <Value name="GESTURE_NONE" integer="0" desc="No gesture" />
             <Value name="GESTURE_NONE" integer="0" desc="No gesture" />
@@ -651,7 +652,7 @@
             <Param type="unsigned int" name="frames" desc="" />
             <Param type="unsigned int" name="frames" desc="" />
         </Callback>
         </Callback>
     </Callbacks>
     </Callbacks>
-    <Functions count="502">
+    <Functions count="509">
         <Function name="InitWindow" retType="void" paramCount="3" desc="Initialize window and OpenGL context">
         <Function name="InitWindow" retType="void" paramCount="3" desc="Initialize window and OpenGL context">
             <Param type="int" name="width" desc="" />
             <Param type="int" name="width" desc="" />
             <Param type="int" name="height" desc="" />
             <Param type="int" name="height" desc="" />
@@ -935,11 +936,11 @@
             <Param type="int" name="logLevel" desc="" />
             <Param type="int" name="logLevel" desc="" />
         </Function>
         </Function>
         <Function name="MemAlloc" retType="void *" paramCount="1" desc="Internal memory allocator">
         <Function name="MemAlloc" retType="void *" paramCount="1" desc="Internal memory allocator">
-            <Param type="int" name="size" desc="" />
+            <Param type="unsigned int" name="size" desc="" />
         </Function>
         </Function>
         <Function name="MemRealloc" retType="void *" paramCount="2" desc="Internal memory reallocator">
         <Function name="MemRealloc" retType="void *" paramCount="2" desc="Internal memory reallocator">
             <Param type="void *" name="ptr" desc="" />
             <Param type="void *" name="ptr" desc="" />
-            <Param type="int" name="size" desc="" />
+            <Param type="unsigned int" name="size" desc="" />
         </Function>
         </Function>
         <Function name="MemFree" retType="void" paramCount="1" desc="Internal memory free">
         <Function name="MemFree" retType="void" paramCount="1" desc="Internal memory free">
             <Param type="void *" name="ptr" desc="" />
             <Param type="void *" name="ptr" desc="" />
@@ -1486,6 +1487,11 @@
             <Param type="Vector2" name="p2" desc="" />
             <Param type="Vector2" name="p2" desc="" />
             <Param type="Vector2" name="p3" desc="" />
             <Param type="Vector2" name="p3" desc="" />
         </Function>
         </Function>
+        <Function name="CheckCollisionPointPoly" retType="bool" paramCount="3" desc="Check if point is within a polygon described by array of vertices">
+            <Param type="Vector2" name="point" desc="" />
+            <Param type="Vector2 *" name="points" desc="" />
+            <Param type="int" name="pointCount" desc="" />
+        </Function>
         <Function name="CheckCollisionLines" retType="bool" paramCount="5" desc="Check the collision between two lines defined by two points each, returns collision point by reference">
         <Function name="CheckCollisionLines" retType="bool" paramCount="5" desc="Check the collision between two lines defined by two points each, returns collision point by reference">
             <Param type="Vector2" name="startPos1" desc="" />
             <Param type="Vector2" name="startPos1" desc="" />
             <Param type="Vector2" name="endPos1" desc="" />
             <Param type="Vector2" name="endPos1" desc="" />
@@ -1575,6 +1581,13 @@
             <Param type="int" name="height" desc="" />
             <Param type="int" name="height" desc="" />
             <Param type="float" name="factor" desc="" />
             <Param type="float" name="factor" desc="" />
         </Function>
         </Function>
+        <Function name="GenImagePerlinNoise" retType="Image" paramCount="5" desc="Generate image: perlin noise">
+            <Param type="int" name="width" desc="" />
+            <Param type="int" name="height" desc="" />
+            <Param type="int" name="offsetX" desc="" />
+            <Param type="int" name="offsetY" desc="" />
+            <Param type="float" name="scale" desc="" />
+        </Function>
         <Function name="GenImageCellular" retType="Image" paramCount="3" desc="Generate image: cellular algorithm, bigger tileSize means bigger cells">
         <Function name="GenImageCellular" retType="Image" paramCount="3" desc="Generate image: cellular algorithm, bigger tileSize means bigger cells">
             <Param type="int" name="width" desc="" />
             <Param type="int" name="width" desc="" />
             <Param type="int" name="height" desc="" />
             <Param type="int" name="height" desc="" />
@@ -1742,14 +1755,27 @@
             <Param type="Vector2" name="end" desc="" />
             <Param type="Vector2" name="end" desc="" />
             <Param type="Color" name="color" desc="" />
             <Param type="Color" name="color" desc="" />
         </Function>
         </Function>
-        <Function name="ImageDrawCircle" retType="void" paramCount="5" desc="Draw circle within an image">
+        <Function name="ImageDrawCircle" retType="void" paramCount="5" desc="Draw a filled circle within an image">
             <Param type="Image *" name="dst" desc="" />
             <Param type="Image *" name="dst" desc="" />
             <Param type="int" name="centerX" desc="" />
             <Param type="int" name="centerX" desc="" />
             <Param type="int" name="centerY" desc="" />
             <Param type="int" name="centerY" desc="" />
             <Param type="int" name="radius" desc="" />
             <Param type="int" name="radius" desc="" />
             <Param type="Color" name="color" desc="" />
             <Param type="Color" name="color" desc="" />
         </Function>
         </Function>
-        <Function name="ImageDrawCircleV" retType="void" paramCount="4" desc="Draw circle within an image (Vector version)">
+        <Function name="ImageDrawCircleV" retType="void" paramCount="4" desc="Draw a filled circle within an image (Vector version)">
+            <Param type="Image *" name="dst" desc="" />
+            <Param type="Vector2" name="center" desc="" />
+            <Param type="int" name="radius" desc="" />
+            <Param type="Color" name="color" desc="" />
+        </Function>
+        <Function name="ImageDrawCircleLines" retType="void" paramCount="5" desc="Draw circle outline within an image">
+            <Param type="Image *" name="dst" desc="" />
+            <Param type="int" name="centerX" desc="" />
+            <Param type="int" name="centerY" desc="" />
+            <Param type="int" name="radius" desc="" />
+            <Param type="Color" name="color" desc="" />
+        </Function>
+        <Function name="ImageDrawCircleLinesV" retType="void" paramCount="4" desc="Draw circle outline within an image (Vector version)">
             <Param type="Image *" name="dst" desc="" />
             <Param type="Image *" name="dst" desc="" />
             <Param type="Vector2" name="center" desc="" />
             <Param type="Vector2" name="center" desc="" />
             <Param type="int" name="radius" desc="" />
             <Param type="int" name="radius" desc="" />
@@ -2073,6 +2099,13 @@
             <Param type="Font" name="font" desc="" />
             <Param type="Font" name="font" desc="" />
             <Param type="int" name="codepoint" desc="" />
             <Param type="int" name="codepoint" desc="" />
         </Function>
         </Function>
+        <Function name="LoadUTF8" retType="char *" paramCount="2" desc="Load UTF-8 text encoded from codepoints array">
+            <Param type="const int *" name="codepoints" desc="" />
+            <Param type="int" name="length" desc="" />
+        </Function>
+        <Function name="UnloadUTF8" retType="void" paramCount="1" desc="Unload UTF-8 text encoded from codepoints array">
+            <Param type="char *" name="text" desc="" />
+        </Function>
         <Function name="LoadCodepoints" retType="int *" paramCount="2" desc="Load all codepoints from a UTF-8 text string, codepoints count returned by parameter">
         <Function name="LoadCodepoints" retType="int *" paramCount="2" desc="Load all codepoints from a UTF-8 text string, codepoints count returned by parameter">
             <Param type="const char *" name="text" desc="" />
             <Param type="const char *" name="text" desc="" />
             <Param type="int *" name="count" desc="" />
             <Param type="int *" name="count" desc="" />
@@ -2085,15 +2118,19 @@
         </Function>
         </Function>
         <Function name="GetCodepoint" retType="int" paramCount="2" desc="Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure">
         <Function name="GetCodepoint" retType="int" paramCount="2" desc="Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure">
             <Param type="const char *" name="text" desc="" />
             <Param type="const char *" name="text" desc="" />
-            <Param type="int *" name="bytesProcessed" desc="" />
+            <Param type="int *" name="codepointSize" desc="" />
+        </Function>
+        <Function name="GetCodepointNext" retType="int" paramCount="2" desc="Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure">
+            <Param type="const char *" name="text" desc="" />
+            <Param type="int *" name="codepointSize" desc="" />
+        </Function>
+        <Function name="GetCodepointPrevious" retType="int" paramCount="2" desc="Get previous codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure">
+            <Param type="const char *" name="text" desc="" />
+            <Param type="int *" name="codepointSize" desc="" />
         </Function>
         </Function>
         <Function name="CodepointToUTF8" retType="const char *" paramCount="2" desc="Encode one codepoint into UTF-8 byte array (array length returned as parameter)">
         <Function name="CodepointToUTF8" retType="const char *" paramCount="2" desc="Encode one codepoint into UTF-8 byte array (array length returned as parameter)">
             <Param type="int" name="codepoint" desc="" />
             <Param type="int" name="codepoint" desc="" />
-            <Param type="int *" name="byteSize" desc="" />
-        </Function>
-        <Function name="TextCodepointsToUTF8" retType="char *" paramCount="2" desc="Encode text as codepoints array into UTF-8 text string (WARNING: memory must be freed!)">
-            <Param type="const int *" name="codepoints" desc="" />
-            <Param type="int" name="length" desc="" />
+            <Param type="int *" name="utf8Size" desc="" />
         </Function>
         </Function>
         <Function name="TextCopy" retType="int" paramCount="2" desc="Copy one string to another, returns bytes copied">
         <Function name="TextCopy" retType="int" paramCount="2" desc="Copy one string to another, returns bytes copied">
             <Param type="char *" name="dst" desc="" />
             <Param type="char *" name="dst" desc="" />
@@ -2729,11 +2766,11 @@
             <Param type="AudioStream" name="stream" desc="" />
             <Param type="AudioStream" name="stream" desc="" />
             <Param type="AudioCallback" name="callback" desc="" />
             <Param type="AudioCallback" name="callback" desc="" />
         </Function>
         </Function>
-        <Function name="AttachAudioStreamProcessor" retType="void" paramCount="2" desc="">
+        <Function name="AttachAudioStreamProcessor" retType="void" paramCount="2" desc="Attach audio stream processor to stream">
             <Param type="AudioStream" name="stream" desc="" />
             <Param type="AudioStream" name="stream" desc="" />
             <Param type="AudioCallback" name="processor" desc="" />
             <Param type="AudioCallback" name="processor" desc="" />
         </Function>
         </Function>
-        <Function name="DetachAudioStreamProcessor" retType="void" paramCount="2" desc="">
+        <Function name="DetachAudioStreamProcessor" retType="void" paramCount="2" desc="Detach audio stream processor from stream">
             <Param type="AudioStream" name="stream" desc="" />
             <Param type="AudioStream" name="stream" desc="" />
             <Param type="AudioCallback" name="processor" desc="" />
             <Param type="AudioCallback" name="processor" desc="" />
         </Function>
         </Function>

Some files were not shown because too many files changed in this diff