raylib 5.0.0.3__cp311-cp311-manylinux2014_x86_64.whl → 5.5.0.0.dev2__cp311-cp311-manylinux2014_x86_64.whl
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.
- pyray/__init__.pyi +269 -74
- raylib/__init__.pyi +266 -67
- raylib/_raylib_cffi.cpython-311-x86_64-linux-gnu.so +0 -0
- raylib/build.py +47 -14
- raylib/defines.py +27 -5
- raylib/enums.py +16 -10
- raylib/glfw3.h.modified +5618 -0
- raylib/physac.h.modified +165 -0
- raylib/raygui.h.modified +865 -0
- raylib/raylib.h.modified +1439 -0
- raylib/raymath.h.modified +247 -0
- raylib/rlgl.h.modified +522 -0
- raylib/version.py +1 -1
- {raylib-5.0.0.3.dist-info → raylib-5.5.0.0.dev2.dist-info}/METADATA +63 -26
- raylib-5.5.0.0.dev2.dist-info/RECORD +21 -0
- {raylib-5.0.0.3.dist-info → raylib-5.5.0.0.dev2.dist-info}/WHEEL +1 -1
- raylib/_raylib_cffi.abi3.so +0 -0
- raylib-5.0.0.3.dist-info/RECORD +0 -15
- {raylib-5.0.0.3.dist-info → raylib-5.5.0.0.dev2.dist-info}/LICENSE +0 -0
- {raylib-5.0.0.3.dist-info → raylib-5.5.0.0.dev2.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: raylib
|
|
3
|
-
Version: 5.0.0.
|
|
3
|
+
Version: 5.5.0.0.dev2
|
|
4
4
|
Summary: Python CFFI bindings for Raylib
|
|
5
5
|
Home-page: https://github.com/electronstudio/raylib-python-cffi
|
|
6
6
|
Author: Electron Studio
|
|
@@ -17,9 +17,11 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
License-File: LICENSE
|
|
20
|
-
Requires-Dist: cffi
|
|
20
|
+
Requires-Dist: cffi>=1.17.1
|
|
21
21
|
|
|
22
|
-
# Python Bindings for Raylib 5.
|
|
22
|
+
# Python Bindings for Raylib 5.5
|
|
23
|
+
## Libraries: raymath, raygui, rlgl, physac and GLFW
|
|
24
|
+
## Backends: Desktop, SDL, DRM, Web
|
|
23
25
|
|
|
24
26
|
Chatroom: [Discord](https://discord.gg/fKDwt85aX6) or [Matrix](https://matrix.to/#/#raylib-python-cffi:matrix.org)
|
|
25
27
|
|
|
@@ -29,23 +31,23 @@ original Raylib.
|
|
|
29
31
|
* Faster, fewer bugs and easier to maintain than ctypes.
|
|
30
32
|
* Commercial-friendly license.
|
|
31
33
|
* Docstrings and auto-completion.
|
|
32
|
-
|
|
34
|
+
|
|
33
35
|
|
|
34
36
|
[Full documentation](http://electronstudio.github.io/raylib-python-cffi)
|
|
35
37
|
|
|
36
38
|
# Quickstart
|
|
37
39
|
|
|
38
|
-
`pip3 install raylib`
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
40
|
+
`pip3 install raylib==5.0.0.4`
|
|
41
|
+
```python
|
|
42
|
+
from pyray import *
|
|
43
|
+
init_window(800, 450, "Hello")
|
|
44
|
+
while not window_should_close():
|
|
45
|
+
begin_drawing()
|
|
46
|
+
clear_background(WHITE)
|
|
47
|
+
draw_text("Hello world", 190, 200, 20, VIOLET)
|
|
48
|
+
end_drawing()
|
|
49
|
+
close_window()
|
|
50
|
+
```
|
|
49
51
|
|
|
50
52
|
# Installation
|
|
51
53
|
|
|
@@ -56,13 +58,37 @@ First make sure you have the latest pip installed:
|
|
|
56
58
|
Then install
|
|
57
59
|
|
|
58
60
|
python3 -m pip install setuptools
|
|
59
|
-
python3 -m pip install raylib
|
|
60
|
-
|
|
61
|
-
On most platforms it should install a binary wheel (Windows 10 x64, MacOS 10.15 x64, Linux Ubuntu1804 x64).
|
|
61
|
+
python3 -m pip install raylib==5.0.0.4
|
|
62
62
|
|
|
63
|
-
If yours isn't available then pip will attempt to build from source, in which case you will need to have Raylib development libs installed, e.g.
|
|
63
|
+
On most platforms it should install a binary wheel. If yours isn't available then pip will attempt to build from source, in which case you will need to have Raylib development libs installed, e.g.
|
|
64
64
|
using homebrew, apt, etc.
|
|
65
65
|
|
|
66
|
+
## Windows
|
|
67
|
+
|
|
68
|
+
Binaries require x64 Windows 10 or newer. (For x86 or older Windows you will have to build from source.)
|
|
69
|
+
|
|
70
|
+
Use an [official Windows Python release](https://www.python.org/downloads/windows/) rather than WSL, MSYS, etc.
|
|
71
|
+
|
|
72
|
+
## MacOS
|
|
73
|
+
|
|
74
|
+
Binaries require:
|
|
75
|
+
* arm64 MacOS 14
|
|
76
|
+
* x64 MacOS 12, or newer.
|
|
77
|
+
|
|
78
|
+
Older MacOS requires building from source but this is usually simple:
|
|
79
|
+
|
|
80
|
+
brew install pkg-config
|
|
81
|
+
brew install raylib
|
|
82
|
+
python3 -m pip install raylib==5.0.0.4
|
|
83
|
+
|
|
84
|
+
## Linux
|
|
85
|
+
|
|
86
|
+
Binaries require OS newer than Ubuntu 2020, x64 or arm64. Otherwise build from source.
|
|
87
|
+
(Pip should attempt automatically but will need Raylib itself installed and also pkg-config.)
|
|
88
|
+
|
|
89
|
+
The arm64 builds are built on Raspberry Pi arm64 Bullseye
|
|
90
|
+
so may not work on other boards.
|
|
91
|
+
|
|
66
92
|
## Raspberry Pi
|
|
67
93
|
|
|
68
94
|
[Using on Rasperry Pi](RPI.rst)
|
|
@@ -75,12 +101,23 @@ There is now a separate dynamic version of this binding:
|
|
|
75
101
|
|
|
76
102
|
It works on some systems where the static version doesn't, [but be sure to read these caveats before using it](https://electronstudio.github.io/raylib-python-cffi/dynamic.html)
|
|
77
103
|
|
|
78
|
-
##
|
|
104
|
+
## SDL backend
|
|
105
|
+
|
|
106
|
+
This is not well tested but has better support for controllers:
|
|
107
|
+
|
|
108
|
+
python3 -m pip uninstall raylib
|
|
109
|
+
python3 -m pip install raylib_sdl
|
|
110
|
+
|
|
111
|
+
You can't have multiple backends installed at once.
|
|
112
|
+
|
|
113
|
+
## DRM backend
|
|
114
|
+
|
|
115
|
+
This uses the Linux framebuffer for devices that don't run X11/Wayland:
|
|
79
116
|
|
|
80
|
-
|
|
81
|
-
|
|
117
|
+
python3 -m pip uninstall raylib
|
|
118
|
+
python3 -m pip install raylib_drm
|
|
82
119
|
|
|
83
|
-
|
|
120
|
+
You can't have multiple backends installed at once.
|
|
84
121
|
|
|
85
122
|
## Problems?
|
|
86
123
|
|
|
@@ -164,9 +201,9 @@ A related library (that is a work in progress!):
|
|
|
164
201
|
* Converting more examples from C to Python
|
|
165
202
|
* Testing on more platforms
|
|
166
203
|
|
|
167
|
-
# License
|
|
204
|
+
# License
|
|
168
205
|
|
|
169
|
-
|
|
206
|
+
Eclipse Public License, so you are free to
|
|
170
207
|
statically link and use in non-free / proprietary / commercial projects!
|
|
171
208
|
|
|
172
209
|
# Performance
|
|
@@ -179,7 +216,7 @@ If you need more performance, do in this order:
|
|
|
179
216
|
in your update loop
|
|
180
217
|
and then only convert them to C data structures when you have to call the C functions for drawing.
|
|
181
218
|
|
|
182
|
-
3. The raylib.* functions are potentially
|
|
219
|
+
3. The raylib.* functions are potentially *slightly* faster than the pyray.* equivalents, so if you need a tiny bit more performance
|
|
183
220
|
you can switch your inner loop functions to these.
|
|
184
221
|
|
|
185
222
|
4. There is a version of Python that is faster than Pypy: GraalPy. However it's not fully compatible with all Python
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
pyray/__init__.py,sha256=6sEm8KxRaK2B2PQo7ZlbXkHoxBDLW43wYSs_Cl7rUMg,7119
|
|
2
|
+
pyray/__init__.pyi,sha256=YTMTiZuK5ZUv6fFxv2uaafNo1jxG5uVDw6Lii7Gnths,157652
|
|
3
|
+
raylib/__init__.py,sha256=DWXPmoq7tC5wzZsrt6rReGy1RflyZwk-SdF-9lBZHok,919
|
|
4
|
+
raylib/__init__.pyi,sha256=7nDwS_FZmBK6C1Iw3O1A1fK-5NkmpJGz94oW7nClvHY,145607
|
|
5
|
+
raylib/_raylib_cffi.cpython-311-x86_64-linux-gnu.so,sha256=3J81zYDIMECstsi8afWfbcmslY17h7d_ZjXPv-EYWDs,6368752
|
|
6
|
+
raylib/build.py,sha256=vF0eAp5y3CZv6dLM-4EQnXWmkXwohQ9Z17vTy9AD2cY,9964
|
|
7
|
+
raylib/colors.py,sha256=_u-mYrpdx7_v_4wnJrnSu_m36ixKJWbort780_V6rTw,1523
|
|
8
|
+
raylib/defines.py,sha256=_brO9OSA1Kzg9aiGXhiYyMmiJxbOkvHU_kLjLLNLJB4,16983
|
|
9
|
+
raylib/enums.py,sha256=pT4AwJYqrjVKVyWtYdgDStGY35X1q-pT7kEP3jPxTkk,17818
|
|
10
|
+
raylib/glfw3.h.modified,sha256=jC6-1XuWxG2FMnRhuXTKuI7KIEhPTwwO2OtNGEDOcvs,213261
|
|
11
|
+
raylib/physac.h.modified,sha256=UG9-bqfL71k4MxaW3DcaP9a5Mcga66CrufVHaUhgYjM,9724
|
|
12
|
+
raylib/raygui.h.modified,sha256=75djppnwPjTjTfNVcUaXKxGau2PqUisL9oy_yVXQgV8,46107
|
|
13
|
+
raylib/raylib.h.modified,sha256=P2ByCGhTYNUnmFI0bMlqAmJlvcGjONUlszzhevA5Vk0,104250
|
|
14
|
+
raylib/raymath.h.modified,sha256=jV6K62Nck8nTv89pqJoBVMouhwuj4yJAodjP7fQk128,28166
|
|
15
|
+
raylib/rlgl.h.modified,sha256=CWlw2nho5Yzn-CizWGqhEVNfp4_lFB30HjSlV6he1EM,36729
|
|
16
|
+
raylib/version.py,sha256=3Y4xVZcMQHuz26MK_RDAx7uUp1iG3oIm-DR1QBvW8Hk,28
|
|
17
|
+
raylib-5.5.0.0.dev2.dist-info/LICENSE,sha256=C-zxZWe-t3-iUrdmRjHdF3yPmhiJ5ImVtFN5xxMOUwM,14198
|
|
18
|
+
raylib-5.5.0.0.dev2.dist-info/METADATA,sha256=NdwaFCqKRFPMdCraQ1imMaM7rMRRa9FLOHwNzRQUGUw,8882
|
|
19
|
+
raylib-5.5.0.0.dev2.dist-info/WHEEL,sha256=psqLctY23KHVzJBRA0eV4Xgo09aO-tWXBAEHEiSxnw8,113
|
|
20
|
+
raylib-5.5.0.0.dev2.dist-info/top_level.txt,sha256=PnMBDWaUP4jsbn_NewagcC9FjHYpzSAIQuhxNzt9hkg,13
|
|
21
|
+
raylib-5.5.0.0.dev2.dist-info/RECORD,,
|
raylib/_raylib_cffi.abi3.so
DELETED
|
Binary file
|
raylib-5.0.0.3.dist-info/RECORD
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
pyray/__init__.py,sha256=6sEm8KxRaK2B2PQo7ZlbXkHoxBDLW43wYSs_Cl7rUMg,7119
|
|
2
|
-
pyray/__init__.pyi,sha256=NzZYOclAa6OEJkekHN704GI9AKnAXh-YrSv_QR-1TQg,149512
|
|
3
|
-
raylib/__init__.py,sha256=DWXPmoq7tC5wzZsrt6rReGy1RflyZwk-SdF-9lBZHok,919
|
|
4
|
-
raylib/__init__.pyi,sha256=3YBqdluKw1mXCDJI_vkp188Y7N2uxd3FKMHGJ6xlx0I,137557
|
|
5
|
-
raylib/_raylib_cffi.abi3.so,sha256=ZBF2JuQG6FKRLu0PogcTCfC_qQlb_PkLcMwFRzwBQJI,6169448
|
|
6
|
-
raylib/build.py,sha256=GkLvtK5cxhIUmqNW113QNGt-fFmqGxq6qCwrAn_HlzM,8460
|
|
7
|
-
raylib/colors.py,sha256=_u-mYrpdx7_v_4wnJrnSu_m36ixKJWbort780_V6rTw,1523
|
|
8
|
-
raylib/defines.py,sha256=lMv6zU8WSkaH5Dj5Ydx0AlggeA-r76xePcA1M7EudnA,15951
|
|
9
|
-
raylib/enums.py,sha256=RtQpN23zViI2mQSHPPc0Ay4IvNdiDk_xggdMPLCR0ng,17586
|
|
10
|
-
raylib/version.py,sha256=kuKcU79UeiMEhJ65u2Xk2MIB8Bc2rN6wJHdZ3MYmvP4,23
|
|
11
|
-
raylib-5.0.0.3.dist-info/LICENSE,sha256=C-zxZWe-t3-iUrdmRjHdF3yPmhiJ5ImVtFN5xxMOUwM,14198
|
|
12
|
-
raylib-5.0.0.3.dist-info/METADATA,sha256=ekuSWjQ6Lv64-mRVN_CgrO7r0XZOYNdphmnKd3I_uHQ,8059
|
|
13
|
-
raylib-5.0.0.3.dist-info/WHEEL,sha256=pfSFiGL5UDG-rx-1mdq2qhOVzfVlBtmfj4S31BskapY,113
|
|
14
|
-
raylib-5.0.0.3.dist-info/top_level.txt,sha256=PnMBDWaUP4jsbn_NewagcC9FjHYpzSAIQuhxNzt9hkg,13
|
|
15
|
-
raylib-5.0.0.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|