raylib 4.2.1.2__pp39-pypy39_pp73-win_amd64.whl → 4.5.0.1__pp39-pypy39_pp73-win_amd64.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.
Potentially problematic release.
This version of raylib might be problematic. Click here for more details.
- pyray/__init__.pyi +170 -106
- raylib/__init__.pyi +184 -111
- raylib/_raylib_cffi.pypy39-pp73-win_amd64.pyd +0 -0
- raylib/enums.py +17 -13
- raylib/version.py +1 -1
- {raylib-4.2.1.2.dist-info → raylib-4.5.0.1.dist-info}/METADATA +162 -160
- raylib-4.5.0.1.dist-info/RECORD +15 -0
- {raylib-4.2.1.2.dist-info → raylib-4.5.0.1.dist-info}/WHEEL +1 -1
- raylib-4.2.1.2.dist-info/RECORD +0 -15
- {raylib-4.2.1.2.dist-info → raylib-4.5.0.1.dist-info}/LICENSE +0 -0
- {raylib-4.2.1.2.dist-info → raylib-4.5.0.1.dist-info}/top_level.txt +0 -0
|
Binary file
|
raylib/enums.py
CHANGED
|
@@ -305,6 +305,7 @@ class BlendMode(IntEnum):
|
|
|
305
305
|
BLEND_SUBTRACT_COLORS = 4
|
|
306
306
|
BLEND_ALPHA_PREMULTIPLY = 5
|
|
307
307
|
BLEND_CUSTOM = 6
|
|
308
|
+
BLEND_CUSTOM_SEPARATE = 7
|
|
308
309
|
|
|
309
310
|
class Gesture(IntEnum):
|
|
310
311
|
GESTURE_NONE = 0
|
|
@@ -420,6 +421,9 @@ class GuiDropdownBoxProperty(IntEnum):
|
|
|
420
421
|
class GuiTextBoxProperty(IntEnum):
|
|
421
422
|
TEXT_INNER_PADDING = 16
|
|
422
423
|
TEXT_LINES_SPACING = 17
|
|
424
|
+
TEXT_ALIGNMENT_VERTICAL = 18
|
|
425
|
+
TEXT_MULTILINE = 19
|
|
426
|
+
TEXT_WRAP_MODE = 20
|
|
423
427
|
|
|
424
428
|
class GuiSpinnerProperty(IntEnum):
|
|
425
429
|
SPIN_BUTTON_WIDTH = 16
|
|
@@ -645,19 +649,19 @@ class GuiIconName(IntEnum):
|
|
|
645
649
|
ICON_FILE_NEW = 203
|
|
646
650
|
ICON_FOLDER_ADD = 204
|
|
647
651
|
ICON_ALARM = 205
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
652
|
+
ICON_CPU = 206
|
|
653
|
+
ICON_ROM = 207
|
|
654
|
+
ICON_STEP_OVER = 208
|
|
655
|
+
ICON_STEP_INTO = 209
|
|
656
|
+
ICON_STEP_OUT = 210
|
|
657
|
+
ICON_RESTART = 211
|
|
658
|
+
ICON_BREAKPOINT_ON = 212
|
|
659
|
+
ICON_BREAKPOINT_OFF = 213
|
|
660
|
+
ICON_BURGER_MENU = 214
|
|
661
|
+
ICON_CASE_SENSITIVE = 215
|
|
662
|
+
ICON_REG_EXP = 216
|
|
663
|
+
ICON_FOLDER = 217
|
|
664
|
+
ICON_FILE = 218
|
|
661
665
|
ICON_219 = 219
|
|
662
666
|
ICON_220 = 220
|
|
663
667
|
ICON_221 = 221
|
raylib/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "4.
|
|
1
|
+
__version__ = "4.5.0.1"
|
|
@@ -1,160 +1,162 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: raylib
|
|
3
|
-
Version: 4.
|
|
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
|
-
Platform: UNKNOWN
|
|
10
|
-
Classifier: License :: OSI Approved :: Eclipse Public License 2.0 (EPL-2.0)
|
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
Requires-Dist:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
If
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
[
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
|
141
|
-
|
|
|
142
|
-
| Raylib
|
|
143
|
-
| Raylib Python CFFI 3.7 |
|
|
144
|
-
| Raylib Python CFFI 3.7
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
[
|
|
159
|
-
|
|
160
|
-
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: raylib
|
|
3
|
+
Version: 4.5.0.1
|
|
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
|
+
Platform: UNKNOWN
|
|
10
|
+
Classifier: License :: OSI Approved :: Eclipse Public License 2.0 (EPL-2.0)
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
License-File: LICENSE
|
|
19
|
+
Requires-Dist: cffi >=1.14.6
|
|
20
|
+
Requires-Dist: inflection
|
|
21
|
+
|
|
22
|
+
# Python Bindings for Raylib 4.5
|
|
23
|
+
|
|
24
|
+
New CFFI API static bindings.
|
|
25
|
+
* Automatically generated to be as close as possible to
|
|
26
|
+
original Raylib.
|
|
27
|
+
* Faster, fewer bugs and easier to maintain than ctypes.
|
|
28
|
+
* Commercial-friendly license.
|
|
29
|
+
* Docstrings and auto-completion.
|
|
30
|
+
* **Now includes extra libraries: raymath, raygui, rlgl and physac**
|
|
31
|
+
|
|
32
|
+
[Full documentation](http://electronstudio.github.io/raylib-python-cffi)
|
|
33
|
+
|
|
34
|
+
# Quickstart
|
|
35
|
+
|
|
36
|
+
`pip3 install raylib`
|
|
37
|
+
|
|
38
|
+
from pyray import *
|
|
39
|
+
init_window(800, 450, "Hello")
|
|
40
|
+
while not window_should_close():
|
|
41
|
+
begin_drawing()
|
|
42
|
+
clear_background(WHITE)
|
|
43
|
+
draw_text("Hello world", 190, 200, 20, VIOLET)
|
|
44
|
+
end_drawing()
|
|
45
|
+
close_window()
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
# Installation
|
|
49
|
+
|
|
50
|
+
First make sure you have the latest pip installed:
|
|
51
|
+
|
|
52
|
+
python3 -m pip install --upgrade pip
|
|
53
|
+
|
|
54
|
+
Then install
|
|
55
|
+
|
|
56
|
+
python3 -m pip install setuptools
|
|
57
|
+
python3 -m pip install raylib
|
|
58
|
+
|
|
59
|
+
On most platforms it should install a binary wheel (Windows 10 x64, MacOS 10.15 x64, Linux Ubuntu1804 x64).
|
|
60
|
+
|
|
61
|
+
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.
|
|
62
|
+
using homebrew, apt, etc.
|
|
63
|
+
|
|
64
|
+
## Raspberry Pi
|
|
65
|
+
|
|
66
|
+
[Using on Rasperry Pi](RPI.rst)
|
|
67
|
+
|
|
68
|
+
## Dynamic binding version
|
|
69
|
+
|
|
70
|
+
There is now a separate dynamic version of this binding:
|
|
71
|
+
|
|
72
|
+
python3 -m pip install raylib_dynamic
|
|
73
|
+
|
|
74
|
+
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)
|
|
75
|
+
|
|
76
|
+
## Beta testing
|
|
77
|
+
|
|
78
|
+
If you find a bug, it may be fixed in the [latest dev release](https://github.com/electronstudio/raylib-python-cffi/releases).
|
|
79
|
+
You can install an alpha or beta version by specifying the exact version number like this:
|
|
80
|
+
|
|
81
|
+
python3 -m pip install raylib==4.2.0.0.dev4
|
|
82
|
+
|
|
83
|
+
## Problems?
|
|
84
|
+
|
|
85
|
+
If it doesn't work, [try to build manually.](BUILDING.rst). If that works then [submit an issue](https://github.com/electronstudio/raylib-python-cffi/issues)
|
|
86
|
+
to let us know what you did.
|
|
87
|
+
|
|
88
|
+
If you need help you can try asking [on Discord](https://discord.gg/raylib).
|
|
89
|
+
|
|
90
|
+
If it still doesn't work, [submit an issue](https://github.com/electronstudio/raylib-python-cffi/issues).
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
# How to use
|
|
94
|
+
|
|
95
|
+
There are two APIs, you can use either or both:
|
|
96
|
+
|
|
97
|
+
### If you are familiar with C coding and the Raylib C library and you want to use an exact copy of the C API
|
|
98
|
+
|
|
99
|
+
Use [the C API](https://electronstudio.github.io/raylib-python-cffi/raylib.html).
|
|
100
|
+
|
|
101
|
+
### If you prefer a slightly more Pythonistic API and don't mind it might be slightly slower
|
|
102
|
+
|
|
103
|
+
Use [the Python API](https://electronstudio.github.io/raylib-python-cffi/pyray.html).
|
|
104
|
+
|
|
105
|
+
# App showcase
|
|
106
|
+
|
|
107
|
+
[Tanki](https://github.com/pkulev/tanki)
|
|
108
|
+
|
|
109
|
+
[Alloy Bloxel Editor](https://pebaz.itch.io/alloy-bloxel-editor)
|
|
110
|
+
|
|
111
|
+
Add your app here!
|
|
112
|
+
|
|
113
|
+
# RLZero
|
|
114
|
+
|
|
115
|
+
A related library (that is a work in progress!):
|
|
116
|
+
|
|
117
|
+
[A simplified API for Raylib for use in education and to enable beginners to create 3d games](https://github.com/electronstudio/rlzero)
|
|
118
|
+
|
|
119
|
+
# Help wanted
|
|
120
|
+
|
|
121
|
+
* Converting more examples from C to Python
|
|
122
|
+
* Testing on more platforms
|
|
123
|
+
|
|
124
|
+
# License (updated)
|
|
125
|
+
|
|
126
|
+
The bindings are now under the Eclipse Public License, so you are free to
|
|
127
|
+
statically link and use in non-free / proprietary / commercial projects!
|
|
128
|
+
|
|
129
|
+
# Performance
|
|
130
|
+
|
|
131
|
+
For fastest performance use Pypy rather than standard Python.
|
|
132
|
+
|
|
133
|
+
Every call to C is costly, so it's slightly faster if you use Python data structures and functions when calculating
|
|
134
|
+
in your update loop
|
|
135
|
+
and then only convert them to C data structures when you have to call the C functions for drawing.
|
|
136
|
+
|
|
137
|
+
## Bunnymark
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
| Library | Implementation | Bunnies (60 FPS) | Percentage |
|
|
141
|
+
| ------------- | ------------- | ------------- | ------------- |
|
|
142
|
+
| Raylib 3.7 | C | 168100 | 100% |
|
|
143
|
+
| Raylib Python CFFI 3.7 | Pypy 3.7 | 33800 | 20% |
|
|
144
|
+
| Raylib Python CFFI 3.7 | Python 3.9 | 7700 | 4.5% |
|
|
145
|
+
| Raylib Python CFFI 3.7 | Python 3.9 Nuitka | 8600 | 5.1% |
|
|
146
|
+
| Raylib Python CFFI 3.7 Dynamic | Python 3.9 | 6300 | 3.7% |
|
|
147
|
+
|
|
148
|
+
# Packaging your app
|
|
149
|
+
|
|
150
|
+
You can create a standalone binary using the Nuitka compiler. For example, here is how to package Bunnymark:
|
|
151
|
+
|
|
152
|
+
pip3 install nuitka
|
|
153
|
+
cd examples/textures
|
|
154
|
+
python3 -m nuitka --onefile --linux-onefile-icon resources/wabbit_alpha.png textures_bunnymark.py
|
|
155
|
+
|
|
156
|
+
# Advert
|
|
157
|
+
|
|
158
|
+
[RetroWar: 8-bit Party Battle](https://store.steampowered.com/app/664240/RetroWar_8bit_Party_Battle/?git) is out now. Defeat up to 15 of your friends in a tournament of 80s-inspired retro mini games.
|
|
159
|
+
|
|
160
|
+
[Coding Games With Pygame Zero & Python](https://github.com/electronstudio/pygame-zero-book) is
|
|
161
|
+
a book for Python beginners.
|
|
162
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
pyray/__init__.py,sha256=Af7qdbuGgvYnoOp6splbRiW4IVzve-mWh2zvhHy9nOc,4357
|
|
2
|
+
pyray/__init__.pyi,sha256=AURuDTHJJlg3Iq9Rf7e1Bh-pYhXGgwFBkO8LJrbzaFk,163579
|
|
3
|
+
raylib/__init__.py,sha256=nZu2b7SrtLs-ZJ2VjtDee9CYMVVYw4Ck2wAJK7uSSVA,943
|
|
4
|
+
raylib/__init__.pyi,sha256=rCXQFnqgjkXI02sHt1m0BEqwBTjrLVYCJ-TxvfanMQo,151136
|
|
5
|
+
raylib/_raylib_cffi.pypy39-pp73-win_amd64.pyd,sha256=vlaXmXMs1UtPFpYggOL-gfaOSNbnUVnawbTdXqjnbH8,1728000
|
|
6
|
+
raylib/build.py,sha256=0M75eBfzPaWKxu3fEHRbf0UHl4GifCwyP4uMeCfPaYc,7969
|
|
7
|
+
raylib/colors.py,sha256=T9U1gPicGYVYLwpP73jH_J83FH1-6a9XT163M0sbJlU,1564
|
|
8
|
+
raylib/defines.py,sha256=2rnXgvmO8qzo_mSarDLR9Cdhg9qO10eMiK2Ozjybg0Y,383
|
|
9
|
+
raylib/enums.py,sha256=aRMhQOmHKd5OW1DtHmYBVt_pIeEoVRNQ77bAo2pNVYs,17939
|
|
10
|
+
raylib/version.py,sha256=WQ3S39ClTjOJlhfs5GyN4mrFlo8B_pukp2Tey4fqIaA,23
|
|
11
|
+
raylib-4.5.0.1.dist-info/LICENSE,sha256=IrIDo_K_o1_ycu1XcC0VSu2JZuoJeMRM7KZljyxgvFE,14474
|
|
12
|
+
raylib-4.5.0.1.dist-info/METADATA,sha256=K3VbahjhqnQNIgU76oHoj96c6sRDbLYB5-UW7wXQw8A,5682
|
|
13
|
+
raylib-4.5.0.1.dist-info/WHEEL,sha256=HJHyzLu3gaFYQiUEyj2FqRdruAwI6g5VxGKSDETCuew,107
|
|
14
|
+
raylib-4.5.0.1.dist-info/top_level.txt,sha256=PnMBDWaUP4jsbn_NewagcC9FjHYpzSAIQuhxNzt9hkg,13
|
|
15
|
+
raylib-4.5.0.1.dist-info/RECORD,,
|
raylib-4.2.1.2.dist-info/RECORD
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
pyray/__init__.py,sha256=Af7qdbuGgvYnoOp6splbRiW4IVzve-mWh2zvhHy9nOc,4357
|
|
2
|
-
pyray/__init__.pyi,sha256=RElKkwsw3M6dgV5ZI_EEZTUB6VHFNdMx6NGnLjfC9LM,161268
|
|
3
|
-
raylib/__init__.py,sha256=nZu2b7SrtLs-ZJ2VjtDee9CYMVVYw4Ck2wAJK7uSSVA,943
|
|
4
|
-
raylib/__init__.pyi,sha256=53HNBI6aqfK5XohXZWEmtbs7yrmT-Tw1ORVuj1uym4Y,148681
|
|
5
|
-
raylib/_raylib_cffi.pypy39-pp73-win_amd64.pyd,sha256=O-UYhUqsKFttnFRrob2dAYyE_bzRgOjVCrMc2suQzn8,1828352
|
|
6
|
-
raylib/build.py,sha256=0M75eBfzPaWKxu3fEHRbf0UHl4GifCwyP4uMeCfPaYc,7969
|
|
7
|
-
raylib/colors.py,sha256=T9U1gPicGYVYLwpP73jH_J83FH1-6a9XT163M0sbJlU,1564
|
|
8
|
-
raylib/defines.py,sha256=2rnXgvmO8qzo_mSarDLR9Cdhg9qO10eMiK2Ozjybg0Y,383
|
|
9
|
-
raylib/enums.py,sha256=odOE97a9OdH4p4s3eVpjRpE4B009-aFuOh5lgHzSd8k,17755
|
|
10
|
-
raylib/version.py,sha256=z8jH64GjGcMa7npZwDazdeDq358VWPUhLfuu6EgShQ4,23
|
|
11
|
-
raylib-4.2.1.2.dist-info/LICENSE,sha256=IrIDo_K_o1_ycu1XcC0VSu2JZuoJeMRM7KZljyxgvFE,14474
|
|
12
|
-
raylib-4.2.1.2.dist-info/METADATA,sha256=TkoqD48ykafMmB5K-BCcqT-q8cbFZqXz3AJnJvuYnRM,5433
|
|
13
|
-
raylib-4.2.1.2.dist-info/WHEEL,sha256=kbzA5tyEuvWcVsltnhCG02Vwq0RkG0K4o74bVDVA1mQ,107
|
|
14
|
-
raylib-4.2.1.2.dist-info/top_level.txt,sha256=PnMBDWaUP4jsbn_NewagcC9FjHYpzSAIQuhxNzt9hkg,13
|
|
15
|
-
raylib-4.2.1.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|