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

[email protected] (Chris Marshall)
Newsgroups perl.sdl.devel
Message-ID <[email protected]>
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> $width = 640;

   PDL> $height = 480;

   PDL> $piddle = zeroes(byte,4,$width,$height);

   PDL> ?vars
   PDL variables in package main::

   Name         Type   Dimension       Flow  State          Mem
   ----------------------------------------------------------------
   $piddle        Byte D [4,640,480]          P            1.17Mb
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.