Skip to content

Commit 623c2a6

Browse files
update to raylib 4.2-dev and re-add physac and raygui from their own repos.
1 parent 3e729ec commit 623c2a6

18 files changed

+2130
-801
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ jobs:
4343
sudo make install
4444
sudo cp ../src/extras/* /usr/local/include/
4545
46+
- name: Copy extras
47+
run: |
48+
sudo cp physac/src/physac.h /usr/local/include/
49+
sudo cp raygui/src/raygui.h /usr/local/include/
50+
4651
- name: Build raylib-python-cffi
4752
run: |
4853
python -m pip install --upgrade pip
@@ -85,7 +90,10 @@ jobs:
8590
make -j2
8691
sudo make install
8792
sudo cp ../src/extras/* /usr/local/include/
88-
93+
- name: Copy extras
94+
run: |
95+
sudo cp physac/src/physac.h /usr/local/include/
96+
sudo cp raygui/src/raygui.h /usr/local/include/
8997
- name: Build raylib-python-cffi
9098
run: |
9199
python -m pip install --upgrade pip
@@ -126,6 +134,10 @@ jobs:
126134
make -j2
127135
sudo make install
128136
sudo cp ../src/extras/* /usr/local/include/
137+
- name: Copy extras
138+
run: |
139+
sudo cp physac/src/physac.h /usr/local/include/
140+
sudo cp raygui/src/raygui.h /usr/local/include/
129141
- name: Build raylib-python-cffi
130142
run: |
131143
python -m pip install --upgrade pip
@@ -221,6 +233,10 @@ jobs:
221233
cmake -DINCLUDE_EVERYTHING=on -DSUPPORT_FILEFORMAT_JPG=on -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release ..
222234
make -j2
223235
sudo make install
236+
- name: Copy extras
237+
run: |
238+
sudo cp physac/src/physac.h /usr/local/include/
239+
sudo cp raygui/src/raygui.h /usr/local/include/
224240
225241
- name: Build raylib-python-cffi
226242
run: |

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
[submodule "raylib-c"]
22
path = raylib-c
33
url = https://github.com/raysan5/raylib.git
4+
[submodule "raygui"]
5+
path = raygui
6+
url = https://github.com/raysan5/raygui.git
7+
[submodule "physac"]
8+
path = physac
9+
url = https://github.com/raysan5/physac.git

create_stub_pyray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def pointer(struct):
102102
if ffi.typeof(struct).kind == "struct":
103103
if ffi.typeof(struct).fields is None:
104104
print("weird empty struct, skipping "+struct, file=sys.stderr)
105-
break
105+
continue
106106
print(f"class {struct}:")
107107
print(f' """ struct """')
108108
sig = ""

create_stub_static.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class struct: ...
9595
if ffi.typeof(struct).kind == "struct":
9696
# if ffi.typeof(struct).fields is None:
9797
# print("weird empty struct, skipping", file=sys.stderr)
98-
# break
98+
# continue
9999
print(f"{struct}: struct")
100100
# sig = ""
101101
# for arg in ffi.typeof(struct).fields:

docs-src/pyray.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
Python API
22
==============
33

4-
.. comment::
5-
6-
Link to API reference:
7-
toctree::
8-
:maxdepth: 1
9-
10-
autoapi/pyray/index
11-
12-
134
This is a wrapper around the C API with some syntactic sugar.
145

156
The API is *still the same as Raylib*, so you should still reply on `the official Raylib docs <https://www.raylib.com/cheatsheet/cheatsheet.html>`_, except:

0 commit comments

Comments
 (0)