raylib 5.0.0.5__cp313-cp313-manylinux2014_aarch64.whl → 5.5.0.3__cp313-cp313-manylinux2014_aarch64.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__.py +4 -5
- pyray/__init__.pyi +2401 -2118
- raylib/__init__.py +9 -5
- raylib/__init__.pyi +2291 -2059
- raylib/_raylib_cffi.cpython-313-aarch64-linux-gnu.so +0 -0
- raylib/build.py +145 -47
- raylib/defines.py +29 -9
- raylib/enums.py +56 -11
- raylib/glfw3.h.modified +226 -110
- raylib/physac.h.modified +74 -68
- raylib/raygui.h.modified +55 -33
- raylib/raylib.h.modified +133 -94
- raylib/raymath.h.modified +40 -10
- raylib/rlgl.h.modified +55 -38
- raylib/version.py +1 -1
- {raylib-5.0.0.5.dist-info → raylib-5.5.0.3.dist-info}/METADATA +158 -63
- raylib-5.5.0.3.dist-info/RECORD +23 -0
- {raylib-5.0.0.5.dist-info → raylib-5.5.0.3.dist-info}/WHEEL +1 -1
- raylib-5.0.0.5.dist-info/RECORD +0 -23
- {raylib-5.0.0.5.dist-info → raylib-5.5.0.3.dist-info/licenses}/LICENSE +0 -0
- {raylib-5.0.0.5.dist-info → raylib-5.5.0.3.dist-info}/top_level.txt +0 -0
pyray/__init__.py
CHANGED
|
@@ -29,9 +29,8 @@ current_module = __import__(__name__)
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
def _underscore(word: str) -> str:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"""
|
|
32
|
+
word = re.sub('2D$', '_2d', word)
|
|
33
|
+
word = re.sub('3D$', '_3d', word)
|
|
35
34
|
word = re.sub(r"([A-Z]+)([A-Z][a-z])", r'\1_\2', word)
|
|
36
35
|
word = re.sub(r"([a-z\d])([A-Z])", r'\1_\2', word)
|
|
37
36
|
word = word.replace("-", "_")
|
|
@@ -127,7 +126,7 @@ def _make_struct_constructor_function(struct):
|
|
|
127
126
|
or isinstance(arg, (array, bytes, bytearray, memoryview)))):
|
|
128
127
|
arg = ffi.from_buffer(field[1].type, arg)
|
|
129
128
|
modified_args.append(arg)
|
|
130
|
-
s = ffi.new(f"
|
|
129
|
+
s = ffi.new(f"{struct} *", modified_args)[0]
|
|
131
130
|
global_weakkeydict[s] = modified_args
|
|
132
131
|
return s
|
|
133
132
|
|
|
@@ -136,7 +135,7 @@ def _make_struct_constructor_function(struct):
|
|
|
136
135
|
|
|
137
136
|
for name, attr in getmembers(rl):
|
|
138
137
|
# print(name, attr)
|
|
139
|
-
uname = _underscore(name)
|
|
138
|
+
uname = _underscore(name)
|
|
140
139
|
if isbuiltin(attr) or str(type(attr)) == "<class '_cffi_backend.__FFIFunctionWrapper'>" or str(
|
|
141
140
|
type(attr)) == "<class '_cffi_backend._CDataBase'>":
|
|
142
141
|
# print(attr.__call__)
|