Skip to content

Commit

Permalink
change float values in json files to string to make the parser happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ryupold committed Jun 5, 2023
1 parent 6d063ad commit b83ee33
Show file tree
Hide file tree
Showing 5 changed files with 237 additions and 121 deletions.
87 changes: 75 additions & 12 deletions bindings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3460,6 +3460,26 @@
"description": "Export image data to file, returns true on success",
"custom": false
},
{
"name": "ExportImageToMemory",
"params": [
{
"name": "image",
"typ": "Image"
},
{
"name": "fileType",
"typ": "[*:0]const u8"
},
{
"name": "fileSize",
"typ": "?[*]i32"
}
],
"returnType": "?[*]u8",
"description": "Export image to memory buffer",
"custom": false
},
{
"name": "ExportImageAsCode",
"params": [
Expand Down Expand Up @@ -3497,7 +3517,7 @@
"custom": false
},
{
"name": "GenImageGradientV",
"name": "GenImageGradientLinear",
"params": [
{
"name": "width",
Expand All @@ -3508,20 +3528,24 @@
"typ": "i32"
},
{
"name": "top",
"name": "direction",
"typ": "i32"
},
{
"name": "start",
"typ": "Color"
},
{
"name": "bottom",
"name": "end",
"typ": "Color"
}
],
"returnType": "Image",
"description": "Generate image: vertical gradient",
"description": "Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradient",
"custom": false
},
{
"name": "GenImageGradientH",
"name": "GenImageGradientRadial",
"params": [
{
"name": "width",
Expand All @@ -3532,20 +3556,24 @@
"typ": "i32"
},
{
"name": "left",
"name": "density",
"typ": "f32"
},
{
"name": "inner",
"typ": "Color"
},
{
"name": "right",
"name": "outer",
"typ": "Color"
}
],
"returnType": "Image",
"description": "Generate image: horizontal gradient",
"description": "Generate image: radial gradient",
"custom": false
},
{
"name": "GenImageGradientRadial",
"name": "GenImageGradientSquare",
"params": [
{
"name": "width",
Expand All @@ -3569,7 +3597,7 @@
}
],
"returnType": "Image",
"description": "Generate image: radial gradient",
"description": "Generate image: square gradient",
"custom": false
},
{
Expand Down Expand Up @@ -4032,6 +4060,22 @@
"description": "Flip image horizontally",
"custom": false
},
{
"name": "ImageRotate",
"params": [
{
"name": "image",
"typ": "*Image"
},
{
"name": "degrees",
"typ": "i32"
}
],
"returnType": "void",
"description": "Rotate image by input angle in degrees (-359 to 359) ",
"custom": false
},
{
"name": "ImageRotateCW",
"params": [
Expand Down Expand Up @@ -14001,6 +14045,11 @@
"name": "RL_OPENGL_ES_20",
"value": 5,
"description": "OpenGL ES 2.0 (GLSL 100)"
},
{
"name": "RL_OPENGL_ES_30",
"value": 6,
"description": "OpenGL ES 3.0 (GLSL 300 es) "
}
],
"description": "OpenGL version",
Expand Down Expand Up @@ -15954,7 +16003,7 @@
{
"name": "PI",
"typ": "f32",
"value": "3.1415927410125732",
"value": "3.14159265358979323846",
"description": "",
"custom": false
},
Expand Down Expand Up @@ -16189,6 +16238,20 @@
"description": "Maximum number of shader locations supported",
"custom": false
},
{
"name": "RL_CULL_DISTANCE_NEAR",
"typ": "f64",
"value": "0.01",
"description": "Default near cull distance",
"custom": false
},
{
"name": "RL_CULL_DISTANCE_FAR",
"typ": "f64",
"value": "1000.0",
"description": "Default far cull distance",
"custom": false
},
{
"name": "RL_TEXTURE_WRAP_S",
"typ": "i32",
Expand Down Expand Up @@ -16878,7 +16941,7 @@
{
"name": "EPSILON",
"typ": "f32",
"value": "0.0000009999999974752427",
"value": "0.000001",
"description": "",
"custom": false
}
Expand Down
70 changes: 56 additions & 14 deletions raylib.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
{
"name": "RAYLIB_VERSION_MAJOR",
"type": "INT",
"value": 4,
"value": "4",
"description": ""
},
{
"name": "RAYLIB_VERSION_MINOR",
"type": "INT",
"value": 6,
"value": "6",
"description": ""
},
{
"name": "RAYLIB_VERSION_PATCH",
"type": "INT",
"value": 0,
"value": "0",
"description": ""
},
{
Expand All @@ -45,7 +45,7 @@
{
"name": "PI",
"type": "FLOAT",
"value": 3.14159265358979323846,
"value": "3.14159265358979323846",
"description": ""
},
{
Expand Down Expand Up @@ -6206,6 +6206,25 @@
}
]
},
{
"name": "ExportImageToMemory",
"description": "Export image to memory buffer",
"returnType": "unsigned char *",
"params": [
{
"type": "Image",
"name": "image"
},
{
"type": "const char *",
"name": "fileType"
},
{
"type": "int *",
"name": "fileSize"
}
]
},
{
"name": "ExportImageAsCode",
"description": "Export image as code file defining an array of bytes, returns true on success",
Expand Down Expand Up @@ -6241,8 +6260,8 @@
]
},
{
"name": "GenImageGradientV",
"description": "Generate image: vertical gradient",
"name": "GenImageGradientLinear",
"description": "Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradient",
"returnType": "Image",
"params": [
{
Expand All @@ -6253,19 +6272,23 @@
"type": "int",
"name": "height"
},
{
"type": "int",
"name": "direction"
},
{
"type": "Color",
"name": "top"
"name": "start"
},
{
"type": "Color",
"name": "bottom"
"name": "end"
}
]
},
{
"name": "GenImageGradientH",
"description": "Generate image: horizontal gradient",
"name": "GenImageGradientRadial",
"description": "Generate image: radial gradient",
"returnType": "Image",
"params": [
{
Expand All @@ -6276,19 +6299,23 @@
"type": "int",
"name": "height"
},
{
"type": "float",
"name": "density"
},
{
"type": "Color",
"name": "left"
"name": "inner"
},
{
"type": "Color",
"name": "right"
"name": "outer"
}
]
},
{
"name": "GenImageGradientRadial",
"description": "Generate image: radial gradient",
"name": "GenImageGradientSquare",
"description": "Generate image: square gradient",
"returnType": "Image",
"params": [
{
Expand Down Expand Up @@ -6749,6 +6776,21 @@
}
]
},
{
"name": "ImageRotate",
"description": "Rotate image by input angle in degrees (-359 to 359) ",
"returnType": "void",
"params": [
{
"type": "Image *",
"name": "image"
},
{
"type": "int",
"name": "degrees"
}
]
},
{
"name": "ImageRotateCW",
"description": "Rotate image clockwise 90deg",
Expand Down
4 changes: 2 additions & 2 deletions raymath.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
{
"name": "PI",
"type": "FLOAT",
"value": 3.14159265358979323846,
"value": "3.14159265358979323846",
"description": ""
},
{
"name": "EPSILON",
"type": "FLOAT",
"value": 0.000001,
"value": "0.000001",
"description": ""
},
{
Expand Down
Loading

0 comments on commit b83ee33

Please sign in to comment.