pygame-community / pygame-ce

🐍🎮 pygame - Community Edition is a FOSS Python library for multimedia applications (like games). Built on top of the excellent SDL library.
https://pyga.me
766 stars 120 forks source link

List of all deprecated features in pygame #2943

Open bilhox opened 1 week ago

bilhox commented 1 week ago

Hello,

To help in the future to remove and track deprecated features, I made a full list of deprecated features in pygame. This does not include deprecated features in the build system.

If you see any missing deprecated features, tell me I'll add it to the table.

Features Deprecation Version More details
pygame.Color.set_length 2.1.3 unpack is possible
depth argument in pygame.display.set_mode 2.4.0 not used and ignored
pygame.display.set_gamma 2.1.4 removed in SDL3
pygame.display.set_gamma_ramp 2.1.4 removed in SDL3
blend in pygame.draw.aaline(s) 2.4.0/2.5.0
joy in joystick events | 2.0.0 | use instance_id instead
pygame.freetype.was_init | ? | use get_init instead
pygame.image.to_string | 2.3.0 | use tobytes instead
pygame.image.from_string | 2.3.0 | use frombytes instead
Behaviour of pygame.Joystick.init 2.0.0
pygame.Joystick.get_id | 2.0.0 | use get_instance_id instead
pygame.math.Vector(2\|3).rotate_ip_rad | 2.1.1 | use rotate_rad_ip instead
pygame.math.Vector3.rotate_(x\|y\|z)_ip_rad | 2.1.1 | use rotate(x\|y\|z)_rad_ip instead
Old pygame.scrap 2.2.0 New API
pygame.(snd\|surf)array.use_arraytype ?
pygame.(snd\|surf)array.get_arraytype(s) ?
pygame.sprite.LayeredDirty.set_timing_treshold | 2.1.1 | use set_timing_threshold instead
Surface argument in pygame.Surface.convert_alpha 2.4.0
pygame.Surface.set_(masks\|shifts) 2.0.0
MMX and SSE in pygame.transform.(get\|set)_smoothscale.backend 2.4.0
pygame.Window.from_display_module | 2.4.0 | use get_surface and flip instead