[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] API draft for vector type



On Wed, Apr 29, 2009 at 2:29 AM, Casey Duncan <casey@xxxxxxxxxxx> wrote:
> Surface.fill_multi and Surface.blit_multi would be awesome for particle
> effects, in fact I could take good advantage of them in Lepton right now to
> make the pygame renderers mucho-faster.
>
> Would that be something that would be considered in pgreloaded (or even
> pygame 1.9)? If so I would be interested in helping to implement them as I
> would be an early adopter ;^)
>
> -Casey
>

Definitely!  That would be cool.

For pygame 1.9 it'd need to be ready within 4 weeks, with tests and
docs.  For 1.9.1 there's at least 4-5 months to go.


Would _multi methods work with different multiple arguments?  eg
multiple surfaces, multiple dst rects, multiple source rects?
Or you could just do one method for each multiple... or detect the
case based on the input arguments.


Probably best to just do your use case... (which is multiple src
rects?)... then raise NotImplementedError for other combinations.

I don't think that'd take long to make.



cu,