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

Re: [pygame] BufferProxy (was Flood Filling Images)



Greg Ewing wrote:
René Dudfield wrote:


[G]etting a buffer proxy helps with surface locking semantics.
When you get a BufferProxy the surface is locked (which you need to do
when you are modifying Surface->pixels - when the BufferProxy is
destroyed, the surface lock is released.

That's a good reason. Although the new buffer protocol
has locking facilities built in, so it wouldn't strictly
be needed then.

The new buffer protocol is for Python 3.0. I believe it breaks things so will ever be available for the 2.x series.

--
Lenard Lindstrom
<len-l@xxxxxxxxx>