pygame-ce
pygame-ce copied to clipboard
๐๐ฎ pygame - Community Edition is a FOSS Python library for multimedia applications (like games). Built on top of the excellent SDL library.
See https://github.com/pygame-community/pygame-ce/pull/3379, specifically: - https://github.com/pygame-community/pygame-ce/pull/3379#issuecomment-2781994179 - https://github.com/pygame-community/pygame-ce/pull/3379#pullrequestreview-2795797360 Just follow the same principles used for all the other `Color.from_*` methods
This PR converts pygame._sdl2.video.Renderer to C code. It has the implementation of all the Renderer methods and attributes. It doesn't have docs/type hints/tests or stuff like that.
This PR follows this one : https://github.com/pygame-community/pygame-ce/pull/3216 I make the changes needed and add two properties : `angle_rad` : Returns the vectorโs angle in radians relative to the positive x-axis....
Current alphablit has way too many repetitive code. For example, in each blend blitter, around 90% of the code is the same. So I decided to move it into the...
Python 3.12 introduced the python-visible buffer protocol with `__buffer__` and `__release_buffer__`. It also defined `collections.abc.Buffer`. This PR allows static type checkers to recognize some pygame types as buffers, helpful for...
Since disabling the GIL on singlephase initialization requires the use of `PyUnstable_*` calls, I would like to make use of multiphase initialization whenever possible. Here is a tentative implementation for...
**Environment:** pygame-ce 2.5.4.dev1 **Current behavior:** The `music` module currently exists only as an attribute of `pygame.mixer`, and so isn't a real module. Certain import statements fail because of this. **Expected...
A new approach to lazy loading pygame submodules after #3232 had a problem with slower attribute accesses (`__getattr__`). **Implementation explanation:** The implementation is twofold, where the second part has many...
Surface init-- ``` # Before, each codepath would output bpp and masks, which was then used to construct a format enum. depth + masks -> bpp and masks depth ->...
Window manager information and especially the window handle were only accessible to the display module. I feel like you should know the window handle of any window, so I added...