Skip Menu |

This queue is for tickets about the SDL_perl CPAN distribution.

Report information
The Basics
Id: 48963
Status: patched
Priority: 0/
Queue: SDL_perl

People
Owner: KTHAKORE [...] cpan.org
Requestors: bricas [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Unable to directly interact with SDL_Surface->pixels
In Perl-space we have the SDL::Surface->pixels sub which returns a string of raw pixel data. However, this is no way to take a raw string and pump it back into an SDL::Surface. NB, this was originally reported here: http://github.com/kthakore/SDL_perl/issues/#issue/6
Scheduled for v2.3
On Mon Aug 24 07:15:28 2009, BRICAS wrote: Show quoted text
> In Perl-space we have the SDL::Surface->pixels sub which returns a > string of raw pixel data. However, this is no way to take a raw string > and pump it back into an SDL::Surface.
What is your ideal method to access the Pixels? SDL::Surface->pixels as a get() and set() (Moose like )? or SDL:Surfacte->setPixels(\@pixels); ? -- work in progress
On Mon Aug 24 08:34:02 2009, KTHAKORE wrote: Show quoted text
> What is your ideal method to access the Pixels? > SDL::Surface->pixels as a get() and set() (Moose like )? > or SDL:Surfacte->setPixels(\@pixels); ?
Whatever is consistent with your current API, i would say. :)
v2.2.2 is out
We are redesigning the SDL Perl bindings. I have provided access to pump a string back into the Surface on our Redesign branch. If you can make tests or just try it out it would be great! Here is the particular commit that does this. http://github.com/kthakore/SDL_perl/commit/18ef5a29029b7dcecc4c1a38c276e12d9d227d31 To give this (volatile) code a shot. Grab the redesign branch from our github repo. http://github.com/kthakore/SDL_perl/tree/redesign Also consider registering on our trac site. http://sdlperl.ath.cx/projects/SDLPerl/register to add/modify more tickets. -- work in progress