Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update raylib_api.* by CI #3692

Merged
merged 6 commits into from
Dec 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/parse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Parse raylib_api

on:
workflow_dispatch:
push:
paths:
- "src/raylib.h"

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Update parse files
working-directory: parser
run: |
make raylib_api
mv raylib_api.* output

- name: Diff parse files
id: diff
run: |
git add -N parser
git diff --name-only --exit-code
continue-on-error: true

- name: Commit parse files
if: steps.diff.outcome == 'failure'
run: |
set -x
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
git add parser
git commit -m "Update raylib_api.* by CI"
git push
94 changes: 74 additions & 20 deletions parser/output/raylib_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -1231,11 +1231,6 @@
"name": "vScreenSize",
"description": "Vertical size in meters"
},
{
"type": "float",
"name": "vScreenCenter",
"description": "Screen center in meters"
},
{
"type": "float",
"name": "eyeToScreenDistance",
Expand Down Expand Up @@ -4637,7 +4632,7 @@
"returnType": "void",
"params": [
{
"type": "AutomationEventList *",
"type": "AutomationEventList",
"name": "list"
}
]
Expand Down Expand Up @@ -5172,6 +5167,16 @@
}
]
},
{
"name": "GetShapesTexture",
"description": "Get texture that is used for shapes drawing",
"returnType": "Texture2D"
},
{
"name": "GetShapesTextureRectangle",
"description": "Get texture source rectangle that is used for shapes drawing",
"returnType": "Rectangle"
},
{
"name": "DrawPixel",
"description": "Draw a pixel",
Expand Down Expand Up @@ -6703,6 +6708,29 @@
}
]
},
{
"name": "LoadImageAnimFromMemory",
"description": "Load image sequence from memory buffer",
"returnType": "Image",
"params": [
{
"type": "const char *",
"name": "fileType"
},
{
"type": "const unsigned char *",
"name": "fileData"
},
{
"type": "int",
"name": "dataSize"
},
{
"type": "int *",
"name": "frames"
}
]
},
{
"name": "LoadImageFromMemory",
"description": "Load image from memory buffer, fileType refers to extension: i.e. '.png'",
Expand Down Expand Up @@ -9194,7 +9222,7 @@
"returnType": "char *",
"params": [
{
"type": "char *",
"type": "const char *",
"name": "text"
},
{
Expand Down Expand Up @@ -9342,6 +9370,17 @@
}
]
},
{
"name": "TextToFloat",
"description": "Get float value from text (negative values not supported)",
"returnType": "float",
"params": [
{
"type": "const char *",
"name": "text"
}
]
},
{
"name": "DrawLine3D",
"description": "Draw a line in 3D world space",
Expand Down Expand Up @@ -10220,39 +10259,54 @@
]
},
{
"name": "ExportMesh",
"description": "Export mesh data to file, returns true on success",
"returnType": "bool",
"name": "GetMeshBoundingBox",
"description": "Compute mesh bounding box limits",
"returnType": "BoundingBox",
"params": [
{
"type": "Mesh",
"name": "mesh"
},
}
]
},
{
"name": "GenMeshTangents",
"description": "Compute mesh tangents",
"returnType": "void",
"params": [
{
"type": "const char *",
"name": "fileName"
"type": "Mesh *",
"name": "mesh"
}
]
},
{
"name": "GetMeshBoundingBox",
"description": "Compute mesh bounding box limits",
"returnType": "BoundingBox",
"name": "ExportMesh",
"description": "Export mesh data to file, returns true on success",
"returnType": "bool",
"params": [
{
"type": "Mesh",
"name": "mesh"
},
{
"type": "const char *",
"name": "fileName"
}
]
},
{
"name": "GenMeshTangents",
"description": "Compute mesh tangents",
"returnType": "void",
"name": "ExportMeshAsCode",
"description": "Export mesh as code file (.h) defining multiple arrays of vertex attributes",
"returnType": "bool",
"params": [
{
"type": "Mesh *",
"type": "Mesh",
"name": "mesh"
},
{
"type": "const char *",
"name": "fileName"
}
]
},
Expand Down
65 changes: 49 additions & 16 deletions parser/output/raylib_api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1231,11 +1231,6 @@ return {
name = "vScreenSize",
description = "Vertical size in meters"
},
{
type = "float",
name = "vScreenCenter",
description = "Screen center in meters"
},
{
type = "float",
name = "eyeToScreenDistance",
Expand Down Expand Up @@ -4150,7 +4145,7 @@ return {
description = "Unload automation events list from file",
returnType = "void",
params = {
{type = "AutomationEventList *", name = "list"}
{type = "AutomationEventList", name = "list"}
}
},
{
Expand Down Expand Up @@ -4539,6 +4534,16 @@ return {
{type = "Rectangle", name = "source"}
}
},
{
name = "GetShapesTexture",
description = "Get texture that is used for shapes drawing",
returnType = "Texture2D"
},
{
name = "GetShapesTextureRectangle",
description = "Get texture source rectangle that is used for shapes drawing",
returnType = "Rectangle"
},
{
name = "DrawPixel",
description = "Draw a pixel",
Expand Down Expand Up @@ -5263,6 +5268,17 @@ return {
{type = "int *", name = "frames"}
}
},
{
name = "LoadImageAnimFromMemory",
description = "Load image sequence from memory buffer",
returnType = "Image",
params = {
{type = "const char *", name = "fileType"},
{type = "const unsigned char *", name = "fileData"},
{type = "int", name = "dataSize"},
{type = "int *", name = "frames"}
}
},
{
name = "LoadImageFromMemory",
description = "Load image from memory buffer, fileType refers to extension: i.e. '.png'",
Expand Down Expand Up @@ -6616,7 +6632,7 @@ return {
description = "Replace text string (WARNING: memory must be freed!)",
returnType = "char *",
params = {
{type = "char *", name = "text"},
{type = "const char *", name = "text"},
{type = "const char *", name = "replace"},
{type = "const char *", name = "by"}
}
Expand Down Expand Up @@ -6702,6 +6718,14 @@ return {
{type = "const char *", name = "text"}
}
},
{
name = "TextToFloat",
description = "Get float value from text (negative values not supported)",
returnType = "float",
params = {
{type = "const char *", name = "text"}
}
},
{
name = "DrawLine3D",
description = "Draw a line in 3D world space",
Expand Down Expand Up @@ -7126,15 +7150,6 @@ return {
{type = "int", name = "instances"}
}
},
{
name = "ExportMesh",
description = "Export mesh data to file, returns true on success",
returnType = "bool",
params = {
{type = "Mesh", name = "mesh"},
{type = "const char *", name = "fileName"}
}
},
{
name = "GetMeshBoundingBox",
description = "Compute mesh bounding box limits",
Expand All @@ -7151,6 +7166,24 @@ return {
{type = "Mesh *", name = "mesh"}
}
},
{
name = "ExportMesh",
description = "Export mesh data to file, returns true on success",
returnType = "bool",
params = {
{type = "Mesh", name = "mesh"},
{type = "const char *", name = "fileName"}
}
},
{
name = "ExportMeshAsCode",
description = "Export mesh as code file (.h) defining multiple arrays of vertex attributes",
returnType = "bool",
params = {
{type = "Mesh", name = "mesh"},
{type = "const char *", name = "fileName"}
}
},
{
name = "GenMeshPoly",
description = "Generate polygonal mesh",
Expand Down
Loading