pygame-ce icon indicating copy to clipboard operation
pygame-ce copied to clipboard

Deprecating gfxdraw module

Open mzivic7 opened this issue 7 months ago • 8 comments

These functions must be implemented to pygame.draw module in order to deprecate pygame.gfxdraw module:

  • [X] #2800
    • [X] thickness
    • [X] filled
  • [X] draw.aaline
    • [x] #3140
  • [X] draw.aalines
    • [x] #2912
    • thickness *
  • [ ] #3016
    • [ ] thickness
    • [ ] filled
  • [ ] #3126
    • [ ] filled
    • thickness *
  • [ ] draw.textured_polygon
  • [ ] #3009
  • [x] #3008
  • [ ] #3010 (deprecation warning + notice in the docs)

Each aa- function should be interchangeable with regular function, in terms of arguments and capabilities.

* - this feature is hard to implement or will be very CPU intensive

gfxdraw can be deprecated after implementing all above listed main functions, and it gets removed in pygame-ce 3 or later. Thickness and filled features are still very important.

Deprecating gfxdraw closes:

  • #2463
  • #2450
  • #2082
  • #1728
  • #1487
  • #679
  • #586
  • #172

mzivic7 avatar Jul 18 '24 18:07 mzivic7