On Mon, Sep 24, 2012 at 12:46 PM, Chris Marshall wrote:
> Hi Kartik-
>
> I don't have a working SDL module install that I could
> check things out on. The posted gist seemed like a
> regression of using direct PDL manipulation to read and
> copy the image data to an SDL surface.
>
> The pdl.pl ex
. Install those.
>>
>>
>> On Mon, Sep 24, 2012 at 6:36 PM, Sisyphus wrote:
>>>
>>> - Original Message - From: "Chris Marshall"
>>>
>>> To: "Kartik Thakore"
>>> Cc: "Tobias Leich" ; "sdl-deve
6:36 PM, Sisyphus wrote:
>>
>>
>> - Original Message - From: "Chris Marshall"
>>
>> To: "Kartik Thakore"
>> Cc: "Tobias Leich" ; "sdl-devel"
>> Sent: Tuesday, September 25, 2012 2:46 AM
>> Subject
t; <
> devel.chm...@gmail.com>
> To: "Kartik Thakore"
> Cc: "Tobias Leich" ; "sdl-devel"
> Sent: Tuesday, September 25, 2012 2:46 AM
> Subject: Re: [Perldl] PDL image to SDL::Surface
>
>
>
> Hi Kartik-
>>
>> I don't have a
- Original Message -
From: "Chris Marshall"
To: "Kartik Thakore"
Cc: "Tobias Leich" ; "sdl-devel"
Sent: Tuesday, September 25, 2012 2:46 AM
Subject: Re: [Perldl] PDL image to SDL::Surface
Hi Kartik-
I don't have a working SDL module i
Hi Kartik-
I don't have a working SDL module install that I could
check things out on. The posted gist seemed like a
regression of using direct PDL manipulation to read and
copy the image data to an SDL surface.
The pdl.pl example seemed ok to me until I tried looking
at the latest XS code where
On Mon, Sep 24, 2012 at 12:35 PM, Tobias Leich wrote:
>
> Am 24.09.2012 18:07, schrieb Chris Marshall:
>> On Mon, Sep 24, 2012 at 10:41 AM, Tobias Leich wrote:
>>> Hi Chris,
>>>
>>> The performance is poor of course.
>>>
>>> I tried to use the piddle's pointer (->dataref or so) but it looks like
Whats wrong with
https://github.com/PerlGameDev/SDL_Manual/blob/master/code_listings/pdl.pl ?
On Mon, Sep 24, 2012 at 12:36 PM, Chris Marshall wrote:
> Looking back through the code to the original SDL_Perl
> I found version 2.0.5 which allows one to actually create
> an SDL surface from pixel da
Looking back through the code to the original SDL_Perl
I found version 2.0.5 which allows one to actually create
an SDL surface from pixel data. More recent versions
appear to copy the data and as far as I can tell, there is
no way to directly create an SDL surface from external
data.
If that is
Am 24.09.2012 18:07, schrieb Chris Marshall:
> On Mon, Sep 24, 2012 at 10:41 AM, Tobias Leich wrote:
>> Hi Chris,
>>
>> The performance is poor of course.
>>
>> I tried to use the piddle's pointer (->dataref or so) but it looks like
>> it is not pointing to a usable memory area.
> $piddle->get_da
On Mon, Sep 24, 2012 at 10:41 AM, Tobias Leich wrote:
> Hi Chris,
>
> The performance is poor of course.
>
> I tried to use the piddle's pointer (->dataref or so) but it looks like
> it is not pointing to a usable memory area.
$piddle->get_dataref returns a scalar reference to a perl
PV whose str
Hi Chris,
The performance is poor of course.
I tried to use the piddels pointer (->dataref or so) but it looks like
it is not pointing to a usable memory area.
It looks like there are more than 4 bytes per pixel, and libSDL can't
handle that.
The pdl.pl example is working, I see colored squares.
I took a look at the gist and it looks reasonable
(I can't run it because I don't have the SDL module
and lib installed on my system), however...
I would expect the performance to be *very* poor
since the image data is essentially being converted
from packed byte data to a perl list and then poked
Hi, Andrei asked some days ago how to load an image via PDL and but it
in a Surface to use it in SDL.
The example is here: https://gist.github.com/3772701
I'll put that in the examples folder too.
Cheers, Tobias
14 matches
Mail list logo