raylib 4.2.1.2__pp37-pypy37_pp73-win_amd64.whl → 4.5.0.1__pp37-pypy37_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.

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
- ICON_206 = 206
649
- ICON_207 = 207
650
- ICON_208 = 208
651
- ICON_209 = 209
652
- ICON_210 = 210
653
- ICON_211 = 211
654
- ICON_212 = 212
655
- ICON_213 = 213
656
- ICON_214 = 214
657
- ICON_215 = 215
658
- ICON_216 = 216
659
- ICON_217 = 217
660
- ICON_218 = 218
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.2.1.2"
1
+ __version__ = "4.5.0.1"
@@ -1,159 +1,161 @@
1
- Metadata-Version: 2.1
2
- Name: raylib
3
- Version: 4.2.1.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
- 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.10
13
- Classifier: Programming Language :: Python :: 3.9
14
- Classifier: Programming Language :: Python :: 3.8
15
- Classifier: Programming Language :: Python :: 3.7
16
- Description-Content-Type: text/markdown
17
- Requires-Dist: cffi (>=1.14.6)
18
- Requires-Dist: inflection
19
-
20
- # Python Bindings for Raylib 4.2
21
-
22
- New CFFI API static bindings.
23
- * Automatically generated to be as close as possible to
24
- original Raylib.
25
- * Faster, fewer bugs and easier to maintain than ctypes.
26
- * Commercial-friendly license.
27
- * Docstrings and auto-completion.
28
- * **Now includes extra libraries: raymath, raygui, rlgl and physac**
29
-
30
- [Full documentation](http://electronstudio.github.io/raylib-python-cffi)
31
-
32
- # Quickstart
33
-
34
- `pip3 install raylib`
35
-
36
- from pyray import *
37
- init_window(800, 450, "Hello")
38
- while not window_should_close():
39
- begin_drawing()
40
- clear_background(WHITE)
41
- draw_text("Hello world", 190, 200, 20, VIOLET)
42
- end_drawing()
43
- close_window()
44
-
45
-
46
- # Installation
47
-
48
- First make sure you have the latest pip installed:
49
-
50
- python3 -m pip install --upgrade pip
51
-
52
- Then install
53
-
54
- python3 -m pip install raylib
55
-
56
- On most platforms it should install a binary wheel (Windows 10 x64, MacOS 10.15 x64, Linux Ubuntu1804 x64).
57
-
58
- 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.
59
- using homebrew, apt, etc.
60
-
61
- ## Raspberry Pi
62
-
63
- [Using on Rasperry Pi](RPI.rst)
64
-
65
- ## Dynamic binding version
66
-
67
- There is now a separate dynamic version of this binding:
68
-
69
- python3 -m pip install raylib_dynamic
70
-
71
- 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)
72
-
73
- ## Beta testing
74
-
75
- If you find a bug, it may be fixed in the [latest dev release](https://github.com/electronstudio/raylib-python-cffi/releases).
76
- You can install an alpha or beta version by specifying the exact version number like this:
77
-
78
- python3 -m pip install raylib==4.2.0.0.dev4
79
-
80
- ## Problems?
81
-
82
- 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)
83
- to let us know what you did.
84
-
85
- If you need help you can try asking [on Discord](https://discord.gg/raylib).
86
-
87
- If it still doesn't work, [submit an issue](https://github.com/electronstudio/raylib-python-cffi/issues).
88
-
89
-
90
- # How to use
91
-
92
- There are two APIs, you can use either or both:
93
-
94
- ### If you are familiar with C coding and the Raylib C library and you want to use an exact copy of the C API
95
-
96
- Use [the C API](https://electronstudio.github.io/raylib-python-cffi/raylib.html).
97
-
98
- ### If you prefer a slightly more Pythonistic API and don't mind it might be slightly slower
99
-
100
- Use [the Python API](https://electronstudio.github.io/raylib-python-cffi/pyray.html).
101
-
102
- # App showcase
103
-
104
- [Tanki](https://github.com/pkulev/tanki)
105
-
106
- [Alloy Bloxel Editor](https://pebaz.itch.io/alloy-bloxel-editor)
107
-
108
- Add your app here!
109
-
110
- # RLZero
111
-
112
- A related library (that is a work in progress!):
113
-
114
- [A simplified API for Raylib for use in education and to enable beginners to create 3d games](https://github.com/electronstudio/rlzero)
115
-
116
- # Help wanted
117
-
118
- * Converting more examples from C to Python
119
- * Testing on more platforms
120
-
121
- # License (updated)
122
-
123
- The bindings are now under the Eclipse Public License, so you are free to
124
- statically link and use in non-free / proprietary / commercial projects!
125
-
126
- # Performance
127
-
128
- For fastest performance use Pypy rather than standard Python.
129
-
130
- Every call to C is costly, so it's slightly faster if you use Python data structures and functions when calculating
131
- in your update loop
132
- and then only convert them to C data structures when you have to call the C functions for drawing.
133
-
134
- ## Bunnymark
135
-
136
-
137
- | Library | Implementation | Bunnies (60 FPS) | Percentage |
138
- | ------------- | ------------- | ------------- | ------------- |
139
- | Raylib 3.7 | C | 168100 | 100% |
140
- | Raylib Python CFFI 3.7 | Pypy 3.7 | 33800 | 20% |
141
- | Raylib Python CFFI 3.7 | Python 3.9 | 7700 | 4.5% |
142
- | Raylib Python CFFI 3.7 | Python 3.9 Nuitka | 8600 | 5.1% |
143
- | Raylib Python CFFI 3.7 Dynamic | Python 3.9 | 6300 | 3.7% |
144
-
145
- # Packaging your app
146
-
147
- You can create a standalone binary using the Nuitka compiler. For example, here is how to package Bunnymark:
148
-
149
- pip3 install nuitka
150
- cd examples/textures
151
- python3 -m nuitka --onefile --linux-onefile-icon resources/wabbit_alpha.png textures_bunnymark.py
152
-
153
- # Advert
154
-
155
- [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.
156
-
157
- [Coding Games With Pygame Zero & Python](https://github.com/electronstudio/pygame-zero-book) is
158
- a book for Python beginners.
159
-
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
+ Requires-Dist: cffi >=1.14.6
19
+ Requires-Dist: inflection
20
+
21
+ # Python Bindings for Raylib 4.5
22
+
23
+ New CFFI API static bindings.
24
+ * Automatically generated to be as close as possible to
25
+ original Raylib.
26
+ * Faster, fewer bugs and easier to maintain than ctypes.
27
+ * Commercial-friendly license.
28
+ * Docstrings and auto-completion.
29
+ * **Now includes extra libraries: raymath, raygui, rlgl and physac**
30
+
31
+ [Full documentation](http://electronstudio.github.io/raylib-python-cffi)
32
+
33
+ # Quickstart
34
+
35
+ `pip3 install raylib`
36
+
37
+ from pyray import *
38
+ init_window(800, 450, "Hello")
39
+ while not window_should_close():
40
+ begin_drawing()
41
+ clear_background(WHITE)
42
+ draw_text("Hello world", 190, 200, 20, VIOLET)
43
+ end_drawing()
44
+ close_window()
45
+
46
+
47
+ # Installation
48
+
49
+ First make sure you have the latest pip installed:
50
+
51
+ python3 -m pip install --upgrade pip
52
+
53
+ Then install
54
+
55
+ python3 -m pip install setuptools
56
+ python3 -m pip install raylib
57
+
58
+ On most platforms it should install a binary wheel (Windows 10 x64, MacOS 10.15 x64, Linux Ubuntu1804 x64).
59
+
60
+ 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.
61
+ using homebrew, apt, etc.
62
+
63
+ ## Raspberry Pi
64
+
65
+ [Using on Rasperry Pi](RPI.rst)
66
+
67
+ ## Dynamic binding version
68
+
69
+ There is now a separate dynamic version of this binding:
70
+
71
+ python3 -m pip install raylib_dynamic
72
+
73
+ 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)
74
+
75
+ ## Beta testing
76
+
77
+ If you find a bug, it may be fixed in the [latest dev release](https://github.com/electronstudio/raylib-python-cffi/releases).
78
+ You can install an alpha or beta version by specifying the exact version number like this:
79
+
80
+ python3 -m pip install raylib==4.2.0.0.dev4
81
+
82
+ ## Problems?
83
+
84
+ 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)
85
+ to let us know what you did.
86
+
87
+ If you need help you can try asking [on Discord](https://discord.gg/raylib).
88
+
89
+ If it still doesn't work, [submit an issue](https://github.com/electronstudio/raylib-python-cffi/issues).
90
+
91
+
92
+ # How to use
93
+
94
+ There are two APIs, you can use either or both:
95
+
96
+ ### If you are familiar with C coding and the Raylib C library and you want to use an exact copy of the C API
97
+
98
+ Use [the C API](https://electronstudio.github.io/raylib-python-cffi/raylib.html).
99
+
100
+ ### If you prefer a slightly more Pythonistic API and don't mind it might be slightly slower
101
+
102
+ Use [the Python API](https://electronstudio.github.io/raylib-python-cffi/pyray.html).
103
+
104
+ # App showcase
105
+
106
+ [Tanki](https://github.com/pkulev/tanki)
107
+
108
+ [Alloy Bloxel Editor](https://pebaz.itch.io/alloy-bloxel-editor)
109
+
110
+ Add your app here!
111
+
112
+ # RLZero
113
+
114
+ A related library (that is a work in progress!):
115
+
116
+ [A simplified API for Raylib for use in education and to enable beginners to create 3d games](https://github.com/electronstudio/rlzero)
117
+
118
+ # Help wanted
119
+
120
+ * Converting more examples from C to Python
121
+ * Testing on more platforms
122
+
123
+ # License (updated)
124
+
125
+ The bindings are now under the Eclipse Public License, so you are free to
126
+ statically link and use in non-free / proprietary / commercial projects!
127
+
128
+ # Performance
129
+
130
+ For fastest performance use Pypy rather than standard Python.
131
+
132
+ Every call to C is costly, so it's slightly faster if you use Python data structures and functions when calculating
133
+ in your update loop
134
+ and then only convert them to C data structures when you have to call the C functions for drawing.
135
+
136
+ ## Bunnymark
137
+
138
+
139
+ | Library | Implementation | Bunnies (60 FPS) | Percentage |
140
+ | ------------- | ------------- | ------------- | ------------- |
141
+ | Raylib 3.7 | C | 168100 | 100% |
142
+ | Raylib Python CFFI 3.7 | Pypy 3.7 | 33800 | 20% |
143
+ | Raylib Python CFFI 3.7 | Python 3.9 | 7700 | 4.5% |
144
+ | Raylib Python CFFI 3.7 | Python 3.9 Nuitka | 8600 | 5.1% |
145
+ | Raylib Python CFFI 3.7 Dynamic | Python 3.9 | 6300 | 3.7% |
146
+
147
+ # Packaging your app
148
+
149
+ You can create a standalone binary using the Nuitka compiler. For example, here is how to package Bunnymark:
150
+
151
+ pip3 install nuitka
152
+ cd examples/textures
153
+ python3 -m nuitka --onefile --linux-onefile-icon resources/wabbit_alpha.png textures_bunnymark.py
154
+
155
+ # Advert
156
+
157
+ [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.
158
+
159
+ [Coding Games With Pygame Zero & Python](https://github.com/electronstudio/pygame-zero-book) is
160
+ a book for Python beginners.
161
+
@@ -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.pypy37-pp73-win_amd64.pyd,sha256=IzdHkpEf0T2HfUH2fjlKLaqtPbZSEMnsEhsw6dr2k-U,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=KCvr9tOju3c3D0TjoD-ChIxIBlFrqDitCjWhQBfz6ZM,5659
13
+ raylib-4.5.0.1.dist-info/WHEEL,sha256=JnzCsUHxyjsmd_CHnPlf1TKNofFrt-y2POTXU6f7wps,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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.37.1)
2
+ Generator: bdist_wheel (0.41.2)
3
3
  Root-Is-Purelib: false
4
4
  Tag: pp37-pypy37_pp73-win_amd64
5
5
 
@@ -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.pypy37-pp73-win_amd64.pyd,sha256=nkus4H2dAaogt-CV7HSOZiWjXo5n795QNiEDBUr3mLM,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=g12k62kjOjeZZo2YqHUhxWHbZ1srkSZRyXErsr3kYdY,5411
13
- raylib-4.2.1.2.dist-info/WHEEL,sha256=Ut7uqN9dGLPqzGl_YXDFeMyPjGKjOo0e9GUmMGhME9c,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,,