Commit graph

153 commits

Author SHA1 Message Date
1e195e4ac9
fix: Fix DRM leasing support
Some checks failed
Build / build-windows (pypy-3.10, Desktop) (push) Waiting to run
Build / build-windows (pypy-3.10, SDL) (push) Waiting to run
Build / build-windows (pypy-3.11, Desktop) (push) Waiting to run
Build / build-windows (pypy-3.11, SDL) (push) Waiting to run
Build / build-windows (pypy-3.9, Desktop) (push) Waiting to run
Build / build-windows (pypy-3.9, SDL) (push) Waiting to run
Build / source-distro (push) Waiting to run
Build / dynamic-distro (push) Waiting to run
Build / merge (push) Blocked by required conditions
Build / build-mac-intel (3.10, Desktop) (push) Has been cancelled
Build / build-mac-intel (3.10, SDL) (push) Has been cancelled
Build / build-mac-intel (3.11, Desktop) (push) Has been cancelled
Build / build-mac-intel (3.11, SDL) (push) Has been cancelled
Build / build-mac-intel (3.12, Desktop) (push) Has been cancelled
Build / build-mac-intel (3.12, SDL) (push) Has been cancelled
Build / build-mac-intel (3.13, Desktop) (push) Has been cancelled
Build / build-mac-intel (3.13, SDL) (push) Has been cancelled
Build / build-mac-intel (3.9, Desktop) (push) Has been cancelled
Build / build-mac-intel (3.9, SDL) (push) Has been cancelled
Build / build-mac-intel (pypy-3.10, Desktop) (push) Has been cancelled
Build / build-mac-intel (pypy-3.10, SDL) (push) Has been cancelled
Build / build-mac-intel (pypy-3.11, Desktop) (push) Has been cancelled
Build / build-mac-intel (pypy-3.11, SDL) (push) Has been cancelled
Build / build-mac-intel (pypy-3.9, Desktop) (push) Has been cancelled
Build / build-mac-intel (pypy-3.9, SDL) (push) Has been cancelled
Build / build-linux (3.10, DRM) (push) Has been cancelled
Build / build-linux (3.10, Desktop) (push) Has been cancelled
Build / build-linux (3.10, SDL) (push) Has been cancelled
Build / build-linux (3.11, DRM) (push) Has been cancelled
Build / build-linux (3.11, Desktop) (push) Has been cancelled
2025-06-08 08:31:27 -04:00
Cameron Clough
8d5d810925
Switch to logging in __init__.py, set load message to debug (#171)
* Switch to logging in `__init__.py`, set load message to debug

- Replace print statements with logger.error() and logger.warning() calls.
- Follow best practices by using a module-specific logger via
  getLogger(__name__).
- Use parameterized log messages to avoid unnecessary string formatting.
- Change the "RAYLIB STATIC x.x.x LOADED" message from direct stderr
  output to logger warning level.

Motivation:
In [commaai/openpilot#35076][openpilot-issue], we experienced noisy test
outputs because the RAYLIB STATIC message is printed unnecessarily,
cluttering stderr. This change allows library consumers to control the
visibility of this message.

[openpilot-issue]: https://github.com/commaai/openpilot/issues/35076

* use warning rather than debug logging

---------

Co-authored-by: Richard Smith <github@electronstudio.co.uk>
2025-06-04 15:55:41 +01:00
Richard Smith
f551fca1f3 hack stub files because enum from Physac isn't recognised by raylib header parser 2025-05-27 19:54:53 +01:00
Baptiste Lepilleur
d3fcb40408
* fix hard-coded path in Windows build. (#174) 2025-05-21 12:30:20 +01:00
Richard Smith
7971275111 try to fix windows build by disabling threads in Physac 2025-05-03 19:53:01 +01:00
Richard Smith
67e6bf2405 add @victorfisac version of Physac 2025-05-03 19:40:15 +01:00
Richard Smith
171177618b deprecate Physac, see #165 2025-05-03 19:03:36 +01:00
Richard Smith
5593f2e392 add docstrings for structs and enums, fixes issue #159 2025-05-03 18:06:27 +01:00
Richard Smith
bf6d5d421c
fix how regex inserts underscore in function names with '2d' and '3d' (#149) 2024-11-19 12:24:58 +00:00
Richard Smith
9e5c9b7f9f
Sdl backend (#140)
* latest raylib version

* add libwayland-dev

* update headers

* add libxkbcommon-dev

* sdl

* sdl dl

* sdl dl

* sdl2 link flags

* remove glfw header

* try static sdl build

* try to set fpic

* install alsa etc before building sdl

* windows

* fix

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try mac

* try mac

* try mac

* try mac

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* update raylib

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* update to 5.5

* dont link x11 if using DRM

* update to fixed raylib version
2024-11-19 12:05:28 +00:00
Richard Smith
d28fa38e9f fix missing defines 2024-11-17 03:32:02 +00:00
Martin Kuntz Jacobsen
623b9c12cc
Adds py.typed for typing support according to pep 561 (#135) 2024-11-17 01:19:19 +00:00
Richard Smith
ada4b1ca63 update docs and stubs 2024-11-17 01:17:05 +00:00
Richard Smith
c9a5ec09e3 give useful error when native DLL isnt found 2024-10-01 00:48:58 +01:00
Richard Smith
252fc29c18 Disable use of Py_LIMITED_API. Py_LIMITED_API already didn't work reliably - we had to do builds for every Python version to ensure they would all work. So removing it shouldn't cause problems, and it may increase performance and may allow running on free-threading Python. 2024-07-10 00:48:10 +01:00
Richard Smith
d6d0b50e80 allow building without glfw headers 2024-07-02 13:54:18 +01:00
Richard Smith
147e9f882a fix some typehints for lists (not sure why wasnt updated when pyray/__init__.pyi was?) 2024-07-01 14:31:42 +01:00
Richard Smith
ea29d96ff9 fix building low quality raylib code on linux gcc 2024-07-01 14:17:13 +01:00
Richard Smith
3260a18e7d
Typehints for colours (#131) 2024-07-01 11:11:35 +01:00
Richard Smith
1232b700a5 fix clang 16 on mac building 2024-04-05 14:47:10 +01:00
Richard Smith
a49439135e automatically export defines, by @ashleysommer 2024-01-22 15:05:29 +00:00
Richard Smith
be45bef9f1 add support for GLFW3 2024-01-22 14:48:31 +00:00
Richard Smith
d9acf89784 improve stub generator by @ashleysommer 2023-12-22 04:46:46 +00:00
Richard Smith
0cd3515b74 restore missing pyi files 2023-12-21 07:11:31 +00:00
Ashley Sommer
9b48e57bb1 Bump Raylib to v5.0.0, RayGUI 4.0 is designed to be used with RayLib 5, so bump RayGUI too to 4.0.
Updated some core examples to match the changes in Raylib-c v5.0.0
2023-12-19 10:49:31 +10:00
Richard Smith
2ee15fa7e5 add fields to static pyi stub 2023-05-22 17:58:58 +01:00
electronstudio
42d6762fbe update raylib to 4.5 2023-05-22 17:01:19 +01:00
Richard Smith
2061585311 try removing the boolean/int replacement from windows build 2022-10-18 19:52:00 +01:00
richard
84c7eff4d7 fix PyCharm not finding Color types in .pyi files, fixes https://github.com/electronstudio/raylib-python-cffi/issues/88 2022-09-23 20:06:40 +01:00
richard
3e011b329a update to raylib 4.2 2022-08-11 21:58:54 +01:00
Roger Standridge
3a79196a95 #77 use all link flags from pkg-config 2022-08-06 00:33:09 +00:00
richard
53ca2fb40c update docs 2022-06-30 09:52:27 +01:00
richard
346e64d2f1 add atomic lib for linux/pi builds 2022-06-24 12:13:42 +01:00
richard
b4ed450872 version bump 2022-06-23 17:29:15 +01:00
richard
7394f79da5 add some legacy #defines 2022-06-23 17:18:22 +01:00
richard
3ffa4cc549 add raymath 2022-06-23 17:03:06 +01:00
richard
c876a41e11 fix windows build 2022-06-12 02:15:46 +01:00
richard
623c2a6c10 update to raylib 4.2-dev and re-add physac and raygui from their own repos. 2022-06-12 02:08:36 +01:00
richard
c5438d71a6 attempt fix for issue #63 2022-05-13 19:59:21 +01:00
richard
7ecb969baf update headers for windows build 2022-05-13 19:48:05 +01:00
richard
4b000fecaa latest raylib snapshot 2022-03-10 00:10:24 +00:00
richard
f73c57c89c update raylib to 4.1-dev 2022-02-08 09:32:46 +00:00
richard
10d945ed28 add enums for raygui, issue #52 2022-02-07 13:58:07 +00:00
richard
2c752b5ad0 remove all the ints from the pyray hints and docs. (leave them in pyray itself for backwards compability) add proper enums to pyray and to pyray hints/docs (generated from raylib.json). TODO: raygui, rlgl, maybe something for the C API. See issue #52 2022-02-04 12:14:03 +00:00
richard
d05890344d update docs 2022-02-04 11:11:14 +00:00
richard
2d78db0f32 Remove RPI native build because it doesn't work on current Raspbian. Use standard Linux X11 when on RPI. Issue #55 2022-01-13 23:38:15 +00:00
richard
f9d52edd50 attempt fix booleans on windows build 2021-11-09 15:10:27 +00:00
richard
ceae17fc40 forgot to update raygui for windows 2021-11-06 15:40:22 +00:00
richard
3d675c66ae update to 4.0 2021-11-06 15:18:42 +00:00
richard
fb93d5f330 update raylib and docs 2021-10-26 15:54:10 +01:00