raylib 5.5.0.2__tar.gz → 5.5.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of raylib might be problematic. Click here for more details.
- {raylib-5.5.0.2 → raylib-5.5.0.3}/PKG-INFO +35 -13
- raylib-5.5.0.2/raylib.egg-info/PKG-INFO → raylib-5.5.0.3/README.md +24 -27
- {raylib-5.5.0.2 → raylib-5.5.0.3}/pyproject.toml +1 -1
- {raylib-5.5.0.2 → raylib-5.5.0.3}/pyray/__init__.py +1 -1
- {raylib-5.5.0.2 → raylib-5.5.0.3}/pyray/__init__.pyi +2274 -2203
- {raylib-5.5.0.2 → raylib-5.5.0.3}/raylib/__init__.py +9 -5
- {raylib-5.5.0.2 → raylib-5.5.0.3}/raylib/__init__.pyi +2176 -2156
- {raylib-5.5.0.2 → raylib-5.5.0.3}/raylib/build.py +107 -41
- {raylib-5.5.0.2 → raylib-5.5.0.3}/raylib/defines.py +2 -4
- {raylib-5.5.0.2 → raylib-5.5.0.3}/raylib/enums.py +40 -0
- raylib-5.5.0.3/raylib/physac.h.modified +171 -0
- {raylib-5.5.0.2 → raylib-5.5.0.3}/raylib/raygui.h.modified +2 -2
- raylib-5.5.0.3/raylib/version.py +1 -0
- raylib-5.5.0.2/README.md → raylib-5.5.0.3/raylib.egg-info/PKG-INFO +49 -9
- {raylib-5.5.0.2 → raylib-5.5.0.3}/setup.py +1 -4
- raylib-5.5.0.3/version.py +1 -0
- raylib-5.5.0.2/raylib/physac.h.modified +0 -165
- raylib-5.5.0.2/raylib/version.py +0 -1
- raylib-5.5.0.2/version.py +0 -1
- {raylib-5.5.0.2 → raylib-5.5.0.3}/LICENSE +0 -0
- {raylib-5.5.0.2 → raylib-5.5.0.3}/MANIFEST.in +0 -0
- {raylib-5.5.0.2 → raylib-5.5.0.3}/pyray/py.typed +0 -0
- {raylib-5.5.0.2 → raylib-5.5.0.3}/raylib/colors.py +0 -0
- {raylib-5.5.0.2 → raylib-5.5.0.3}/raylib/glfw3.h.modified +0 -0
- {raylib-5.5.0.2 → raylib-5.5.0.3}/raylib/py.typed +0 -0
- {raylib-5.5.0.2 → raylib-5.5.0.3}/raylib/raylib.h.modified +0 -0
- {raylib-5.5.0.2 → raylib-5.5.0.3}/raylib/raymath.h.modified +0 -0
- {raylib-5.5.0.2 → raylib-5.5.0.3}/raylib/rlgl.h.modified +0 -0
- {raylib-5.5.0.2 → raylib-5.5.0.3}/raylib.egg-info/SOURCES.txt +0 -0
- {raylib-5.5.0.2 → raylib-5.5.0.3}/raylib.egg-info/dependency_links.txt +0 -0
- {raylib-5.5.0.2 → raylib-5.5.0.3}/raylib.egg-info/requires.txt +0 -0
- {raylib-5.5.0.2 → raylib-5.5.0.3}/raylib.egg-info/top_level.txt +0 -0
- {raylib-5.5.0.2 → raylib-5.5.0.3}/setup.cfg +0 -0
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: raylib
|
|
3
|
-
Version: 5.5.0.
|
|
3
|
+
Version: 5.5.0.3
|
|
4
4
|
Summary: Python CFFI bindings for Raylib
|
|
5
5
|
Home-page: https://github.com/electronstudio/raylib-python-cffi
|
|
6
6
|
Author: Electron Studio
|
|
7
7
|
Author-email: github@electronstudio.co.uk
|
|
8
|
-
License: EPL-2.0
|
|
9
|
-
Classifier: License :: OSI Approved :: Eclipse Public License 2.0 (EPL-2.0)
|
|
10
8
|
Classifier: Programming Language :: Python :: 3
|
|
11
9
|
Classifier: Programming Language :: Python :: 3.13
|
|
12
10
|
Classifier: Programming Language :: Python :: 3.12
|
|
@@ -15,6 +13,15 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
15
13
|
Description-Content-Type: text/markdown
|
|
16
14
|
License-File: LICENSE
|
|
17
15
|
Requires-Dist: cffi>=1.17.1
|
|
16
|
+
Dynamic: author
|
|
17
|
+
Dynamic: author-email
|
|
18
|
+
Dynamic: classifier
|
|
19
|
+
Dynamic: description
|
|
20
|
+
Dynamic: description-content-type
|
|
21
|
+
Dynamic: home-page
|
|
22
|
+
Dynamic: license-file
|
|
23
|
+
Dynamic: requires-dist
|
|
24
|
+
Dynamic: summary
|
|
18
25
|
|
|
19
26
|
# Python Bindings for Raylib 5.5
|
|
20
27
|
## Libraries: raymath, raygui, rlgl, physac and GLFW
|
|
@@ -23,7 +30,7 @@ Requires-Dist: cffi>=1.17.1
|
|
|
23
30
|
|
|
24
31
|

|
|
25
32
|
|
|
26
|
-
|
|
33
|
+
[](https://pepy.tech/projects/raylib)
|
|
27
34
|
|
|
28
35
|
HELP WANTED: [writing examples](https://github.com/electronstudio/raylib-python-cffi/issues/155)
|
|
29
36
|
|
|
@@ -37,12 +44,9 @@ original Raylib.
|
|
|
37
44
|
* Docstrings and auto-completion.
|
|
38
45
|
* Type checking with Mypy
|
|
39
46
|
|
|
40
|
-
|
|
41
|
-
[Full documentation](http://electronstudio.github.io/raylib-python-cffi)
|
|
42
|
-
|
|
43
47
|
# Quickstart
|
|
44
48
|
|
|
45
|
-
`pip3 install raylib==5.5.0.
|
|
49
|
+
`pip3 install raylib==5.5.0.3 --break-system-packages`
|
|
46
50
|
```python
|
|
47
51
|
from pyray import *
|
|
48
52
|
init_window(800, 450, "Hello")
|
|
@@ -54,16 +58,34 @@ while not window_should_close():
|
|
|
54
58
|
close_window()
|
|
55
59
|
```
|
|
56
60
|
|
|
61
|
+
# Links
|
|
62
|
+
|
|
63
|
+
* [Tutorial video](https://www.youtube.com/watch?v=UoAsDlUwjy0&lc=UgxCR-tvnQJITZr2IvN4AaABAg)
|
|
64
|
+
* [Full documentation](https://electronstudio.github.io/raylib-python-cffi)
|
|
65
|
+
* [Imgui integration](https://github.com/Scr44gr/raylib-imgui)
|
|
66
|
+
* [Examples](https://github.com/electronstudio/raylib-python-cffi/tree/master/examples)
|
|
67
|
+
* [Blep's examples](https://github.com/blep/pyray_examples)
|
|
68
|
+
* [Raylib Python Discord](https://discord.gg/fKDwt85aX6)
|
|
69
|
+
* [Raylib General Discord](https://discord.com/invite/raylib)
|
|
70
|
+
* [Python video player](https://github.com/anrayliu/pyvidplayer2)
|
|
71
|
+
* [A Vector2 class](https://github.com/electronstudio/raylib-python-cffi/blob/master/examples/extra/vector2_extended.py)
|
|
72
|
+
* [Raylib C FAQ](https://github.com/raysan5/raylib/wiki/Frequently-Asked-Questions/)
|
|
73
|
+
|
|
57
74
|
# Installation
|
|
58
75
|
|
|
59
|
-
|
|
76
|
+
If you are on a modern Linux you will probably want to create a venv:
|
|
77
|
+
|
|
78
|
+
python3 -m venv venv
|
|
79
|
+
source venv/bin/activate
|
|
80
|
+
|
|
81
|
+
Then make sure you have the latest pip installed:
|
|
60
82
|
|
|
61
83
|
python3 -m pip install --upgrade pip
|
|
62
84
|
|
|
63
85
|
Then install
|
|
64
86
|
|
|
65
87
|
python3 -m pip install setuptools
|
|
66
|
-
python3 -m pip install raylib==5.5.0.
|
|
88
|
+
python3 -m pip install raylib==5.5.0.3
|
|
67
89
|
|
|
68
90
|
On most platforms it should install a binary wheel. If yours isn't available then pip will attempt to build from
|
|
69
91
|
source, in which case you will need to have Raylib development libs installed, e.g.
|
|
@@ -85,7 +107,7 @@ Older MacOS requires building from source but this is usually simple:
|
|
|
85
107
|
|
|
86
108
|
brew install pkg-config
|
|
87
109
|
brew install raylib
|
|
88
|
-
python3 -m pip install raylib==5.5.0.
|
|
110
|
+
python3 -m pip install raylib==5.5.0.3
|
|
89
111
|
|
|
90
112
|
(I do have binaries for arm64 MacOS 11, 12 and 13 but I have no way of testing they work, so post an issue
|
|
91
113
|
if you want to test them.)
|
|
@@ -199,7 +221,7 @@ Point your browser to http://localhost:8000
|
|
|
199
221
|
Some features may not work, so you can disable them like this:
|
|
200
222
|
|
|
201
223
|
```python
|
|
202
|
-
if platform.system() != "Emscripten": # audio
|
|
224
|
+
if platform.system() != "Emscripten": # audio may not work on current version of emscripten
|
|
203
225
|
init_audio_device()
|
|
204
226
|
```
|
|
205
227
|
|
|
@@ -1,21 +1,3 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: raylib
|
|
3
|
-
Version: 5.5.0.2
|
|
4
|
-
Summary: Python CFFI bindings for Raylib
|
|
5
|
-
Home-page: https://github.com/electronstudio/raylib-python-cffi
|
|
6
|
-
Author: Electron Studio
|
|
7
|
-
Author-email: github@electronstudio.co.uk
|
|
8
|
-
License: EPL-2.0
|
|
9
|
-
Classifier: License :: OSI Approved :: Eclipse Public License 2.0 (EPL-2.0)
|
|
10
|
-
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
-
Description-Content-Type: text/markdown
|
|
16
|
-
License-File: LICENSE
|
|
17
|
-
Requires-Dist: cffi>=1.17.1
|
|
18
|
-
|
|
19
1
|
# Python Bindings for Raylib 5.5
|
|
20
2
|
## Libraries: raymath, raygui, rlgl, physac and GLFW
|
|
21
3
|
## Backends: Desktop, SDL, DRM, Web
|
|
@@ -23,7 +5,7 @@ Requires-Dist: cffi>=1.17.1
|
|
|
23
5
|
|
|
24
6
|

|
|
25
7
|
|
|
26
|
-
|
|
8
|
+
[](https://pepy.tech/projects/raylib)
|
|
27
9
|
|
|
28
10
|
HELP WANTED: [writing examples](https://github.com/electronstudio/raylib-python-cffi/issues/155)
|
|
29
11
|
|
|
@@ -37,12 +19,9 @@ original Raylib.
|
|
|
37
19
|
* Docstrings and auto-completion.
|
|
38
20
|
* Type checking with Mypy
|
|
39
21
|
|
|
40
|
-
|
|
41
|
-
[Full documentation](http://electronstudio.github.io/raylib-python-cffi)
|
|
42
|
-
|
|
43
22
|
# Quickstart
|
|
44
23
|
|
|
45
|
-
`pip3 install raylib==5.5.0.
|
|
24
|
+
`pip3 install raylib==5.5.0.3 --break-system-packages`
|
|
46
25
|
```python
|
|
47
26
|
from pyray import *
|
|
48
27
|
init_window(800, 450, "Hello")
|
|
@@ -54,16 +33,34 @@ while not window_should_close():
|
|
|
54
33
|
close_window()
|
|
55
34
|
```
|
|
56
35
|
|
|
36
|
+
# Links
|
|
37
|
+
|
|
38
|
+
* [Tutorial video](https://www.youtube.com/watch?v=UoAsDlUwjy0&lc=UgxCR-tvnQJITZr2IvN4AaABAg)
|
|
39
|
+
* [Full documentation](https://electronstudio.github.io/raylib-python-cffi)
|
|
40
|
+
* [Imgui integration](https://github.com/Scr44gr/raylib-imgui)
|
|
41
|
+
* [Examples](https://github.com/electronstudio/raylib-python-cffi/tree/master/examples)
|
|
42
|
+
* [Blep's examples](https://github.com/blep/pyray_examples)
|
|
43
|
+
* [Raylib Python Discord](https://discord.gg/fKDwt85aX6)
|
|
44
|
+
* [Raylib General Discord](https://discord.com/invite/raylib)
|
|
45
|
+
* [Python video player](https://github.com/anrayliu/pyvidplayer2)
|
|
46
|
+
* [A Vector2 class](https://github.com/electronstudio/raylib-python-cffi/blob/master/examples/extra/vector2_extended.py)
|
|
47
|
+
* [Raylib C FAQ](https://github.com/raysan5/raylib/wiki/Frequently-Asked-Questions/)
|
|
48
|
+
|
|
57
49
|
# Installation
|
|
58
50
|
|
|
59
|
-
|
|
51
|
+
If you are on a modern Linux you will probably want to create a venv:
|
|
52
|
+
|
|
53
|
+
python3 -m venv venv
|
|
54
|
+
source venv/bin/activate
|
|
55
|
+
|
|
56
|
+
Then make sure you have the latest pip installed:
|
|
60
57
|
|
|
61
58
|
python3 -m pip install --upgrade pip
|
|
62
59
|
|
|
63
60
|
Then install
|
|
64
61
|
|
|
65
62
|
python3 -m pip install setuptools
|
|
66
|
-
python3 -m pip install raylib==5.5.0.
|
|
63
|
+
python3 -m pip install raylib==5.5.0.3
|
|
67
64
|
|
|
68
65
|
On most platforms it should install a binary wheel. If yours isn't available then pip will attempt to build from
|
|
69
66
|
source, in which case you will need to have Raylib development libs installed, e.g.
|
|
@@ -85,7 +82,7 @@ Older MacOS requires building from source but this is usually simple:
|
|
|
85
82
|
|
|
86
83
|
brew install pkg-config
|
|
87
84
|
brew install raylib
|
|
88
|
-
python3 -m pip install raylib==5.5.0.
|
|
85
|
+
python3 -m pip install raylib==5.5.0.3
|
|
89
86
|
|
|
90
87
|
(I do have binaries for arm64 MacOS 11, 12 and 13 but I have no way of testing they work, so post an issue
|
|
91
88
|
if you want to test them.)
|
|
@@ -199,7 +196,7 @@ Point your browser to http://localhost:8000
|
|
|
199
196
|
Some features may not work, so you can disable them like this:
|
|
200
197
|
|
|
201
198
|
```python
|
|
202
|
-
if platform.system() != "Emscripten": # audio
|
|
199
|
+
if platform.system() != "Emscripten": # audio may not work on current version of emscripten
|
|
203
200
|
init_audio_device()
|
|
204
201
|
```
|
|
205
202
|
|
|
@@ -126,7 +126,7 @@ def _make_struct_constructor_function(struct):
|
|
|
126
126
|
or isinstance(arg, (array, bytes, bytearray, memoryview)))):
|
|
127
127
|
arg = ffi.from_buffer(field[1].type, arg)
|
|
128
128
|
modified_args.append(arg)
|
|
129
|
-
s = ffi.new(f"
|
|
129
|
+
s = ffi.new(f"{struct} *", modified_args)[0]
|
|
130
130
|
global_weakkeydict[s] = modified_args
|
|
131
131
|
return s
|
|
132
132
|
|