raylib 5.0.0.3__pp310-pypy310_pp73-manylinux2014_x86_64.whl → 5.5.0.0.dev3__pp310-pypy310_pp73-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.
Potentially problematic release.
This version of raylib might be problematic. Click here for more details.
- pyray/__init__.pyi +298 -97
- raylib/__init__.pyi +295 -90
- raylib/_raylib_cffi.pypy310-pp73-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 +1441 -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.dev3.dist-info}/METADATA +76 -32
- raylib-5.5.0.0.dev3.dist-info/RECORD +21 -0
- {raylib-5.0.0.3.dist-info → raylib-5.5.0.0.dev3.dist-info}/WHEEL +1 -1
- raylib-5.0.0.3.dist-info/RECORD +0 -15
- {raylib-5.0.0.3.dist-info → raylib-5.5.0.0.dev3.dist-info}/LICENSE +0 -0
- {raylib-5.0.0.3.dist-info → raylib-5.5.0.0.dev3.dist-info}/top_level.txt +0 -0
|
Binary file
|
raylib/build.py
CHANGED
|
@@ -25,12 +25,13 @@ import sys
|
|
|
25
25
|
import subprocess
|
|
26
26
|
import time
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
RAYLIB_PLATFORM = os.getenv("RAYLIB_PLATFORM", "Desktop")
|
|
30
29
|
|
|
31
30
|
def check_raylib_installed():
|
|
32
31
|
return subprocess.run(['pkg-config', '--exists', 'raylib'], text=True, stdout=subprocess.PIPE).returncode == 0
|
|
33
32
|
|
|
33
|
+
def check_SDL_installed():
|
|
34
|
+
return subprocess.run(['pkg-config', '--exists', 'sdl2'], text=True, stdout=subprocess.PIPE).returncode == 0
|
|
34
35
|
|
|
35
36
|
def get_the_include_path():
|
|
36
37
|
return subprocess.run(['pkg-config', '--variable=includedir', 'raylib'], text=True,
|
|
@@ -106,6 +107,9 @@ def build_unix():
|
|
|
106
107
|
if not check_raylib_installed():
|
|
107
108
|
raise Exception("ERROR: raylib not found by pkg-config. Please install pkg-config and Raylib.")
|
|
108
109
|
|
|
110
|
+
if RAYLIB_PLATFORM=="SDL" and not check_SDL_installed():
|
|
111
|
+
raise Exception("ERROR: SDL2 not found by pkg-config. Please install pkg-config and SDL2.")
|
|
112
|
+
|
|
109
113
|
raylib_h = get_the_include_path() + "/raylib.h"
|
|
110
114
|
rlgl_h = get_the_include_path() + "/rlgl.h"
|
|
111
115
|
raymath_h = get_the_include_path() + "/raymath.h"
|
|
@@ -126,7 +130,7 @@ def build_unix():
|
|
|
126
130
|
"""
|
|
127
131
|
|
|
128
132
|
glfw3_h = get_the_include_path() + "/GLFW/glfw3.h"
|
|
129
|
-
if check_header_exists(glfw3_h):
|
|
133
|
+
if RAYLIB_PLATFORM=="Desktop" and check_header_exists(glfw3_h):
|
|
130
134
|
ffi_includes += """
|
|
131
135
|
#include "GLFW/glfw3.h"
|
|
132
136
|
"""
|
|
@@ -154,7 +158,7 @@ def build_unix():
|
|
|
154
158
|
ffibuilder.cdef(pre_process_header(raygui_h))
|
|
155
159
|
if os.path.isfile(physac_h):
|
|
156
160
|
ffibuilder.cdef(pre_process_header(physac_h))
|
|
157
|
-
if os.path.isfile(glfw3_h):
|
|
161
|
+
if RAYLIB_PLATFORM=="Desktop" and os.path.isfile(glfw3_h):
|
|
158
162
|
ffibuilder.cdef(pre_process_header(glfw3_h))
|
|
159
163
|
|
|
160
164
|
|
|
@@ -163,17 +167,29 @@ def build_unix():
|
|
|
163
167
|
extra_link_args = [get_the_lib_path() + '/libraylib.a', '-framework', 'OpenGL', '-framework', 'Cocoa',
|
|
164
168
|
'-framework', 'IOKit', '-framework', 'CoreFoundation', '-framework',
|
|
165
169
|
'CoreVideo']
|
|
170
|
+
if RAYLIB_PLATFORM=="SDL":
|
|
171
|
+
extra_link_args += ['/usr/local/lib/libSDL2.a', '-framework', 'CoreHaptics', '-framework', 'ForceFeedback',
|
|
172
|
+
'-framework', 'GameController']
|
|
166
173
|
libraries = []
|
|
167
|
-
extra_compile_args = ["-Wno-error=incompatible-function-pointer-types"]
|
|
174
|
+
extra_compile_args = ["-Wno-error=incompatible-function-pointer-types", "-D_CFFI_NO_LIMITED_API"]
|
|
168
175
|
else: #platform.system() == "Linux":
|
|
169
176
|
print("BUILDING FOR LINUX")
|
|
170
177
|
extra_link_args = get_lib_flags() + [ '-lm', '-lpthread', '-lGL',
|
|
171
178
|
'-lrt', '-lm', '-ldl', '-lX11', '-lpthread', '-latomic']
|
|
172
|
-
|
|
173
|
-
|
|
179
|
+
if RAYLIB_PLATFORM=="SDL":
|
|
180
|
+
extra_link_args += ['-lSDL2']
|
|
181
|
+
elif RAYLIB_PLATFORM=="DRM":
|
|
182
|
+
extra_link_args += ['-lEGL', '-lgbm']
|
|
183
|
+
extra_compile_args = ["-Wno-incompatible-pointer-types", "-D_CFFI_NO_LIMITED_API"]
|
|
184
|
+
libraries = [] # Not sure why but we put them in extra_link_args instead so *shouldnt* be needed here
|
|
185
|
+
|
|
174
186
|
|
|
187
|
+
print("extra_link_args: "+str(extra_link_args))
|
|
188
|
+
print("extra_compile_args: "+str(extra_compile_args))
|
|
189
|
+
print("libraries: "+str(libraries))
|
|
175
190
|
ffibuilder.set_source("raylib._raylib_cffi",
|
|
176
191
|
ffi_includes,
|
|
192
|
+
py_limited_api=False,
|
|
177
193
|
include_dirs=[get_the_include_path()],
|
|
178
194
|
extra_link_args=extra_link_args,
|
|
179
195
|
extra_compile_args=extra_compile_args,
|
|
@@ -183,24 +199,41 @@ def build_unix():
|
|
|
183
199
|
def build_windows():
|
|
184
200
|
print("BUILDING FOR WINDOWS")
|
|
185
201
|
ffibuilder.cdef(open("raylib/raylib.h.modified").read())
|
|
186
|
-
|
|
202
|
+
if RAYLIB_PLATFORM=="Desktop":
|
|
203
|
+
ffibuilder.cdef(open("raylib/glfw3.h.modified").read())
|
|
187
204
|
ffibuilder.cdef(open("raylib/rlgl.h.modified").read())
|
|
188
205
|
ffibuilder.cdef(open("raylib/raygui.h.modified").read())
|
|
189
206
|
ffibuilder.cdef(open("raylib/physac.h.modified").read())
|
|
190
207
|
ffibuilder.cdef(open("raylib/raymath.h.modified").read())
|
|
191
|
-
|
|
208
|
+
|
|
209
|
+
ffi_includes = """
|
|
192
210
|
#include "raylib.h"
|
|
193
|
-
#include "rlgl.h"
|
|
211
|
+
#include "rlgl.h"
|
|
194
212
|
#include "raymath.h"
|
|
195
|
-
|
|
213
|
+
"""
|
|
214
|
+
|
|
215
|
+
if RAYLIB_PLATFORM=="Desktop":
|
|
216
|
+
ffi_includes += """
|
|
217
|
+
#include "GLFW/glfw3.h"
|
|
218
|
+
"""
|
|
219
|
+
|
|
220
|
+
ffi_includes += """
|
|
196
221
|
#define RAYGUI_IMPLEMENTATION
|
|
197
222
|
#define RAYGUI_SUPPORT_RICONS
|
|
198
223
|
#include "raygui.h"
|
|
199
224
|
#define PHYSAC_IMPLEMENTATION
|
|
200
|
-
#include "physac.h"
|
|
201
|
-
"""
|
|
225
|
+
#include "physac.h"
|
|
226
|
+
"""
|
|
227
|
+
libraries = ['raylib', 'gdi32', 'shell32', 'user32', 'OpenGL32', 'winmm']
|
|
228
|
+
if RAYLIB_PLATFORM=="SDL":
|
|
229
|
+
libraries += ['SDL2']
|
|
230
|
+
|
|
231
|
+
print("libraries: "+str(libraries))
|
|
232
|
+
ffibuilder.set_source("raylib._raylib_cffi", ffi_includes,
|
|
202
233
|
extra_link_args=['/NODEFAULTLIB:MSVCRTD'],
|
|
203
|
-
|
|
234
|
+
extra_compile_args=["/D_CFFI_NO_LIMITED_API"],
|
|
235
|
+
py_limited_api=False,
|
|
236
|
+
libraries=libraries,
|
|
204
237
|
include_dirs=['D:\\a\\raylib-python-cffi\\raylib-python-cffi\\raylib-c\\src',
|
|
205
238
|
'D:\\a\\raylib-python-cffi\\raylib-python-cffi\\raylib-c\\src\\external\\glfw\\include',
|
|
206
239
|
'D:\\a\\raylib-python-cffi\\raylib-python-cffi\\raygui\\src',
|
raylib/defines.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import raylib
|
|
2
2
|
|
|
3
3
|
RAYLIB_VERSION_MAJOR: int = 5
|
|
4
|
-
RAYLIB_VERSION_MINOR: int =
|
|
4
|
+
RAYLIB_VERSION_MINOR: int = 5
|
|
5
5
|
RAYLIB_VERSION_PATCH: int = 0
|
|
6
|
-
RAYLIB_VERSION: str = "5.
|
|
6
|
+
RAYLIB_VERSION: str = "5.5-dev"
|
|
7
7
|
PI: float = 3.141592653589793
|
|
8
8
|
DEG2RAD = PI / 180.0
|
|
9
9
|
RAD2DEG = 180.0 / PI
|
|
@@ -18,7 +18,7 @@ PI: float = 3.141592653589793
|
|
|
18
18
|
EPSILON: float = 1e-06
|
|
19
19
|
DEG2RAD = PI / 180.0
|
|
20
20
|
RAD2DEG = 180.0 / PI
|
|
21
|
-
RLGL_VERSION: str = "
|
|
21
|
+
RLGL_VERSION: str = "5.0"
|
|
22
22
|
RL_DEFAULT_BATCH_BUFFER_ELEMENTS: int = 8192
|
|
23
23
|
RL_DEFAULT_BATCH_BUFFERS: int = 1
|
|
24
24
|
RL_DEFAULT_BATCH_DRAWCALLS: int = 256
|
|
@@ -89,6 +89,17 @@ RL_BLEND_SRC_RGB: int = 32969
|
|
|
89
89
|
RL_BLEND_DST_ALPHA: int = 32970
|
|
90
90
|
RL_BLEND_SRC_ALPHA: int = 32971
|
|
91
91
|
RL_BLEND_COLOR: int = 32773
|
|
92
|
+
RL_READ_FRAMEBUFFER: int = 36008
|
|
93
|
+
RL_DRAW_FRAMEBUFFER: int = 36009
|
|
94
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_POSITION: int = 0
|
|
95
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD: int = 1
|
|
96
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_NORMAL: int = 2
|
|
97
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_COLOR: int = 3
|
|
98
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_TANGENT: int = 4
|
|
99
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD2: int = 5
|
|
100
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_INDICES: int = 6
|
|
101
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_BONEIDS: int = 7
|
|
102
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_BONEWEIGHTS: int = 8
|
|
92
103
|
RL_SHADER_LOC_MAP_DIFFUSE = raylib.RL_SHADER_LOC_MAP_ALBEDO
|
|
93
104
|
RL_SHADER_LOC_MAP_SPECULAR = raylib.RL_SHADER_LOC_MAP_METALNESS
|
|
94
105
|
PI: float = 3.141592653589793
|
|
@@ -108,6 +119,8 @@ GL_COMPRESSED_RGBA_ASTC_4x4_KHR: int = 37808
|
|
|
108
119
|
GL_COMPRESSED_RGBA_ASTC_8x8_KHR: int = 37815
|
|
109
120
|
GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT: int = 34047
|
|
110
121
|
GL_TEXTURE_MAX_ANISOTROPY_EXT: int = 34046
|
|
122
|
+
GL_PROGRAM_POINT_SIZE: int = 34370
|
|
123
|
+
GL_LINE_WIDTH: int = 2849
|
|
111
124
|
GL_UNSIGNED_SHORT_5_6_5: int = 33635
|
|
112
125
|
GL_UNSIGNED_SHORT_5_5_5_1: int = 32820
|
|
113
126
|
GL_UNSIGNED_SHORT_4_4_4_4: int = 32819
|
|
@@ -119,19 +132,22 @@ RL_DEFAULT_SHADER_ATTRIB_NAME_NORMAL: str = "vertexNormal"
|
|
|
119
132
|
RL_DEFAULT_SHADER_ATTRIB_NAME_COLOR: str = "vertexColor"
|
|
120
133
|
RL_DEFAULT_SHADER_ATTRIB_NAME_TANGENT: str = "vertexTangent"
|
|
121
134
|
RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD2: str = "vertexTexCoord2"
|
|
135
|
+
RL_DEFAULT_SHADER_ATTRIB_NAME_BONEIDS: str = "vertexBoneIds"
|
|
136
|
+
RL_DEFAULT_SHADER_ATTRIB_NAME_BONEWEIGHTS: str = "vertexBoneWeights"
|
|
122
137
|
RL_DEFAULT_SHADER_UNIFORM_NAME_MVP: str = "mvp"
|
|
123
138
|
RL_DEFAULT_SHADER_UNIFORM_NAME_VIEW: str = "matView"
|
|
124
139
|
RL_DEFAULT_SHADER_UNIFORM_NAME_PROJECTION: str = "matProjection"
|
|
125
140
|
RL_DEFAULT_SHADER_UNIFORM_NAME_MODEL: str = "matModel"
|
|
126
141
|
RL_DEFAULT_SHADER_UNIFORM_NAME_NORMAL: str = "matNormal"
|
|
127
142
|
RL_DEFAULT_SHADER_UNIFORM_NAME_COLOR: str = "colDiffuse"
|
|
143
|
+
RL_DEFAULT_SHADER_UNIFORM_NAME_BONE_MATRICES: str = "boneMatrices"
|
|
128
144
|
RL_DEFAULT_SHADER_SAMPLER2D_NAME_TEXTURE0: str = "texture0"
|
|
129
145
|
RL_DEFAULT_SHADER_SAMPLER2D_NAME_TEXTURE1: str = "texture1"
|
|
130
146
|
RL_DEFAULT_SHADER_SAMPLER2D_NAME_TEXTURE2: str = "texture2"
|
|
131
147
|
RAYGUI_VERSION_MAJOR: int = 4
|
|
132
|
-
RAYGUI_VERSION_MINOR: int =
|
|
148
|
+
RAYGUI_VERSION_MINOR: int = 5
|
|
133
149
|
RAYGUI_VERSION_PATCH: int = 0
|
|
134
|
-
RAYGUI_VERSION: str = "4.
|
|
150
|
+
RAYGUI_VERSION: str = "4.5-dev"
|
|
135
151
|
SCROLLBAR_LEFT_SIDE: int = 0
|
|
136
152
|
SCROLLBAR_RIGHT_SIDE: int = 1
|
|
137
153
|
RAYGUI_ICON_SIZE: int = 16
|
|
@@ -155,6 +171,7 @@ RAYGUI_PANEL_BORDER_WIDTH: int = 1
|
|
|
155
171
|
RAYGUI_TABBAR_ITEM_WIDTH: int = 160
|
|
156
172
|
RAYGUI_MIN_SCROLLBAR_WIDTH: int = 40
|
|
157
173
|
RAYGUI_MIN_SCROLLBAR_HEIGHT: int = 40
|
|
174
|
+
RAYGUI_MIN_MOUSE_WHEEL_SPEED: int = 20
|
|
158
175
|
RAYGUI_TOGGLEGROUP_MAX_ITEMS: int = 32
|
|
159
176
|
RAYGUI_TEXTBOX_AUTO_CURSOR_COOLDOWN: int = 40
|
|
160
177
|
RAYGUI_TEXTBOX_AUTO_CURSOR_DELAY: int = 1
|
|
@@ -429,12 +446,14 @@ GLFW_CONTEXT_RELEASE_BEHAVIOR: int = 139273
|
|
|
429
446
|
GLFW_CONTEXT_NO_ERROR: int = 139274
|
|
430
447
|
GLFW_CONTEXT_CREATION_API: int = 139275
|
|
431
448
|
GLFW_SCALE_TO_MONITOR: int = 139276
|
|
449
|
+
GLFW_SCALE_FRAMEBUFFER: int = 139277
|
|
432
450
|
GLFW_COCOA_RETINA_FRAMEBUFFER: int = 143361
|
|
433
451
|
GLFW_COCOA_FRAME_NAME: int = 143362
|
|
434
452
|
GLFW_COCOA_GRAPHICS_SWITCHING: int = 143363
|
|
435
453
|
GLFW_X11_CLASS_NAME: int = 147457
|
|
436
454
|
GLFW_X11_INSTANCE_NAME: int = 147458
|
|
437
455
|
GLFW_WIN32_KEYBOARD_MENU: int = 151553
|
|
456
|
+
GLFW_WIN32_SHOWDEFAULT: int = 151554
|
|
438
457
|
GLFW_WAYLAND_APP_ID: int = 155649
|
|
439
458
|
GLFW_NO_API: int = 0
|
|
440
459
|
GLFW_OPENGL_API: int = 196609
|
|
@@ -467,6 +486,8 @@ GLFW_ANGLE_PLATFORM_TYPE_D3D9: int = 225284
|
|
|
467
486
|
GLFW_ANGLE_PLATFORM_TYPE_D3D11: int = 225285
|
|
468
487
|
GLFW_ANGLE_PLATFORM_TYPE_VULKAN: int = 225287
|
|
469
488
|
GLFW_ANGLE_PLATFORM_TYPE_METAL: int = 225288
|
|
489
|
+
GLFW_WAYLAND_PREFER_LIBDECOR: int = 229377
|
|
490
|
+
GLFW_WAYLAND_DISABLE_LIBDECOR: int = 229378
|
|
470
491
|
GLFW_ANY_POSITION: int = 2147483648
|
|
471
492
|
GLFW_ARROW_CURSOR: int = 221185
|
|
472
493
|
GLFW_IBEAM_CURSOR: int = 221186
|
|
@@ -486,6 +507,7 @@ GLFW_PLATFORM: int = 327683
|
|
|
486
507
|
GLFW_COCOA_CHDIR_RESOURCES: int = 331777
|
|
487
508
|
GLFW_COCOA_MENUBAR: int = 331778
|
|
488
509
|
GLFW_X11_XCB_VULKAN_SURFACE: int = 335873
|
|
510
|
+
GLFW_WAYLAND_LIBDECOR: int = 339969
|
|
489
511
|
GLFW_ANY_PLATFORM: int = 393216
|
|
490
512
|
GLFW_PLATFORM_WIN32: int = 393217
|
|
491
513
|
GLFW_PLATFORM_COCOA: int = 393218
|
raylib/enums.py
CHANGED
|
@@ -136,7 +136,7 @@ class KeyboardKey(IntEnum):
|
|
|
136
136
|
KEY_KP_ENTER = 335
|
|
137
137
|
KEY_KP_EQUAL = 336
|
|
138
138
|
KEY_BACK = 4
|
|
139
|
-
KEY_MENU =
|
|
139
|
+
KEY_MENU = 5
|
|
140
140
|
KEY_VOLUME_UP = 24
|
|
141
141
|
KEY_VOLUME_DOWN = 25
|
|
142
142
|
|
|
@@ -230,6 +230,9 @@ class ShaderLocationIndex(IntEnum):
|
|
|
230
230
|
SHADER_LOC_MAP_IRRADIANCE = 23
|
|
231
231
|
SHADER_LOC_MAP_PREFILTER = 24
|
|
232
232
|
SHADER_LOC_MAP_BRDF = 25
|
|
233
|
+
SHADER_LOC_VERTEX_BONEIDS = 26
|
|
234
|
+
SHADER_LOC_VERTEX_BONEWEIGHTS = 27
|
|
235
|
+
SHADER_LOC_BONE_MATRICES = 28
|
|
233
236
|
|
|
234
237
|
class ShaderUniformDataType(IntEnum):
|
|
235
238
|
SHADER_UNIFORM_FLOAT = 0
|
|
@@ -433,6 +436,8 @@ class GuiComboBoxProperty(IntEnum):
|
|
|
433
436
|
class GuiDropdownBoxProperty(IntEnum):
|
|
434
437
|
ARROW_PADDING = 16
|
|
435
438
|
DROPDOWN_ITEMS_SPACING = 17
|
|
439
|
+
DROPDOWN_ARROW_HIDDEN = 18
|
|
440
|
+
DROPDOWN_ROLL_UP = 19
|
|
436
441
|
|
|
437
442
|
class GuiTextBoxProperty(IntEnum):
|
|
438
443
|
TEXT_READONLY = 16
|
|
@@ -446,6 +451,7 @@ class GuiListViewProperty(IntEnum):
|
|
|
446
451
|
LIST_ITEMS_SPACING = 17
|
|
447
452
|
SCROLLBAR_WIDTH = 18
|
|
448
453
|
SCROLLBAR_SIDE = 19
|
|
454
|
+
LIST_ITEMS_BORDER_WIDTH = 20
|
|
449
455
|
|
|
450
456
|
class GuiColorPickerProperty(IntEnum):
|
|
451
457
|
COLOR_SELECTOR_SIZE = 16
|
|
@@ -675,15 +681,15 @@ class GuiIconName(IntEnum):
|
|
|
675
681
|
ICON_FOLDER = 217
|
|
676
682
|
ICON_FILE = 218
|
|
677
683
|
ICON_SAND_TIMER = 219
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
684
|
+
ICON_WARNING = 220
|
|
685
|
+
ICON_HELP_BOX = 221
|
|
686
|
+
ICON_INFO_BOX = 222
|
|
687
|
+
ICON_PRIORITY = 223
|
|
688
|
+
ICON_LAYERS_ISO = 224
|
|
689
|
+
ICON_LAYERS2 = 225
|
|
690
|
+
ICON_MLAYERS = 226
|
|
691
|
+
ICON_MAPS = 227
|
|
692
|
+
ICON_HOT = 228
|
|
687
693
|
ICON_229 = 229
|
|
688
694
|
ICON_230 = 230
|
|
689
695
|
ICON_231 = 231
|