Re: [Pdl-porters] Interfacing SDL Surface with a piddle

2010-06-27 Thread Kartik Thakore
Hi Ok I looked at get_dataref. But I still don't understand why the surface->pixels is swaped out when a piddle is written. Both of the Devel::Peek for the get_dataref and surface->get_pixels is the exact same. On Sun, Jun 27, 2010 at 1:32 AM, Chris Marshall wrote: > On 6/26/2010 10:49 PM, Kar

Re: [Pdl-porters] Interfacing SDL Surface with a piddle

2010-06-27 Thread Kartik Thakore
Hi Chris, On Sun, Jun 27, 2010 at 12:11 PM, Chris Marshall wrote: > On 6/27/2010 10:59 AM, Kartik Thakore wrote: > >> >> Hi >> >> Ok I looked at get_dataref. But I still don't understand why the >> surface->pixels is swaped out when a piddle is written. Both of the >> Devel::Peek for the get_dat

Re: [Pdl-porters] Interfacing SDL Surface with a piddle

2010-06-27 Thread Kartik Thakore
Hi David, Chris, We have a go. I have managed to make a usable SDL + PDL piddle. I have updated the repo with an example and docs. http://github.com/kthakore/SDL_perl/blob/master/lib/pods/SDL/Cookbook/PDL.pod http://github.com/kthakore/SDL_perl/blob/master/examples/cookbook/pdl.pl :) David you