[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] SDL 2.0
Is this required If you use the pixel access sample in the sdl2 migration wiki?
--
Monkey
On Aug 17, 2013, at 12:28 AM, Marcus von Appen <mva@xxxxxxxxxxxx> wrote:
> On, Sat Aug 17, 2013, Lenard Lindstrom wrote:
>
>> Ctypes may be the way to go on PyPy, but it is slow in CPython. It lacks
>> new buffer support. Well, ctype types have buffers, but they don't work
>> with NumPy.
>
> Take a look at
> https://bitbucket.org/marcusva/py-sdl2/src/963b26e2110449a453efa7fa45328c0062c72697/sdl2/ext/pixelaccess.py?at=default
>
> Accessing ctypes buffers or exposing ctypes buffers to Numpy is not a
> problem.
>
> Cheers
> Marcus