raylib 4.2.1.2__cp39-cp39-win_amd64.whl → 4.5.0.1__cp39-cp39-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/_raylib_cffi.pyd CHANGED
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
- 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,160 +1,162 @@
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
- License-File: LICENSE
18
- Requires-Dist: cffi (>=1.14.6)
19
- Requires-Dist: inflection
20
-
21
- # Python Bindings for Raylib 4.2
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 raylib
56
-
57
- On most platforms it should install a binary wheel (Windows 10 x64, MacOS 10.15 x64, Linux Ubuntu1804 x64).
58
-
59
- 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.
60
- using homebrew, apt, etc.
61
-
62
- ## Raspberry Pi
63
-
64
- [Using on Rasperry Pi](RPI.rst)
65
-
66
- ## Dynamic binding version
67
-
68
- There is now a separate dynamic version of this binding:
69
-
70
- python3 -m pip install raylib_dynamic
71
-
72
- 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)
73
-
74
- ## Beta testing
75
-
76
- If you find a bug, it may be fixed in the [latest dev release](https://github.com/electronstudio/raylib-python-cffi/releases).
77
- You can install an alpha or beta version by specifying the exact version number like this:
78
-
79
- python3 -m pip install raylib==4.2.0.0.dev4
80
-
81
- ## Problems?
82
-
83
- 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)
84
- to let us know what you did.
85
-
86
- If you need help you can try asking [on Discord](https://discord.gg/raylib).
87
-
88
- If it still doesn't work, [submit an issue](https://github.com/electronstudio/raylib-python-cffi/issues).
89
-
90
-
91
- # How to use
92
-
93
- There are two APIs, you can use either or both:
94
-
95
- ### If you are familiar with C coding and the Raylib C library and you want to use an exact copy of the C API
96
-
97
- Use [the C API](https://electronstudio.github.io/raylib-python-cffi/raylib.html).
98
-
99
- ### If you prefer a slightly more Pythonistic API and don't mind it might be slightly slower
100
-
101
- Use [the Python API](https://electronstudio.github.io/raylib-python-cffi/pyray.html).
102
-
103
- # App showcase
104
-
105
- [Tanki](https://github.com/pkulev/tanki)
106
-
107
- [Alloy Bloxel Editor](https://pebaz.itch.io/alloy-bloxel-editor)
108
-
109
- Add your app here!
110
-
111
- # RLZero
112
-
113
- A related library (that is a work in progress!):
114
-
115
- [A simplified API for Raylib for use in education and to enable beginners to create 3d games](https://github.com/electronstudio/rlzero)
116
-
117
- # Help wanted
118
-
119
- * Converting more examples from C to Python
120
- * Testing on more platforms
121
-
122
- # License (updated)
123
-
124
- The bindings are now under the Eclipse Public License, so you are free to
125
- statically link and use in non-free / proprietary / commercial projects!
126
-
127
- # Performance
128
-
129
- For fastest performance use Pypy rather than standard Python.
130
-
131
- Every call to C is costly, so it's slightly faster if you use Python data structures and functions when calculating
132
- in your update loop
133
- and then only convert them to C data structures when you have to call the C functions for drawing.
134
-
135
- ## Bunnymark
136
-
137
-
138
- | Library | Implementation | Bunnies (60 FPS) | Percentage |
139
- | ------------- | ------------- | ------------- | ------------- |
140
- | Raylib 3.7 | C | 168100 | 100% |
141
- | Raylib Python CFFI 3.7 | Pypy 3.7 | 33800 | 20% |
142
- | Raylib Python CFFI 3.7 | Python 3.9 | 7700 | 4.5% |
143
- | Raylib Python CFFI 3.7 | Python 3.9 Nuitka | 8600 | 5.1% |
144
- | Raylib Python CFFI 3.7 Dynamic | Python 3.9 | 6300 | 3.7% |
145
-
146
- # Packaging your app
147
-
148
- You can create a standalone binary using the Nuitka compiler. For example, here is how to package Bunnymark:
149
-
150
- pip3 install nuitka
151
- cd examples/textures
152
- python3 -m nuitka --onefile --linux-onefile-icon resources/wabbit_alpha.png textures_bunnymark.py
153
-
154
- # Advert
155
-
156
- [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.
157
-
158
- [Coding Games With Pygame Zero & Python](https://github.com/electronstudio/pygame-zero-book) is
159
- a book for Python beginners.
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.pyd,sha256=foJmToLV9syhLYcSpFmaC_ztwk7JrUwitQRjDm4yL1o,2009600
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=2xSj8c4s_gFbWpcImYQptdXS3JLuzC2uK5Om8I_SEKg,100
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: cp39-cp39-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.pyd,sha256=b1eRFAEIY5fhryszVm4NJjc2Wkr7L4484H5juJdLoLw,2103808
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=fVcVlLzi8CGi_Ul8vjMdn8gER25dn5GBg9E6k9z41-Y,100
14
- raylib-4.2.1.2.dist-info/top_level.txt,sha256=PnMBDWaUP4jsbn_NewagcC9FjHYpzSAIQuhxNzt9hkg,13
15
- raylib-4.2.1.2.dist-info/RECORD,,