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_dataref and surface->get_pixels is the exact same.
get_dataref is a perl reference to th
On 6/27/2010 12:18 PM, Kartik Thakore wrote:
This is a good idea. How do I make a piddle of bytes 4 * $width * $height ?
At least you would have all the surface and piddle data
in the same spot which seems to be your difficulty here
This might be easier indeed, thanks.
PDL> $widt
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
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
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