X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=sdlgit%2FSDL-Site.git;a=blobdiff_plain;f=pages%2Fblog-0015.html-inc;h=2e202e79e222745e30148733ba74569908ecbd32;hp=2bd84fc7f40913acd9708e68ac8f58773c028455;hb=e785862422f3e827a242fc244bd57b23443887ce;hpb=879fff64432f43c80083c7b45da72611be9dca4b diff --git a/pages/blog-0015.html-inc b/pages/blog-0015.html-inc index 2bd84fc..2e202e7 100644 --- a/pages/blog-0015.html-inc +++ b/pages/blog-0015.html-inc @@ -1,40 +1,81 @@

-Getting people to use SDL Perl: Docs, API, and Distribution +Providing direct memory access to SDL_Surface's pixels

-

The road so far


-Things have been busy but fruitful. Our two core modules are getting to be a bit more stable. Alien::SDL 1.405 is behaving well. This foundational stability will start to show results in SDL too I believe. Most excitingly the main developer of frozen-bubble is reviewing our Games::FrozenBubble port to CPAN. All good and well, but to keep this project going we need to improve.
-
-

Getting people to use SDL Perl


-After a long chat with a new SDL user on #sdl today, I realize we still have some way to go. Currently it seems we are lacking in a few areas. We can definitely use some feedback and help in these areas.
-
- -
  • Distribution
  • +my $green = pack 'b*', '11111111000000000000000000000000'; +substr( $surf32_matrix->[0][0], 0, 8 * 4, $green); #no change +#substr( $surf32_matrix->[0][0], 0, 8 * 4, 0xFF000000); segfault +substr( ${$surf32_matrix->[0][0]}, 0, 8 * 4, 0xFF000000); #no change +#$surf32_matrix->[0][0] = $green; SEGFAULT's cannot write to memory +${$surf32_matrix->[0][0]} = $green; #no change -
    If anyone wants to help in these areas please talk to us on sdl-devel@perl.org. 
    -


    -

    \ No newline at end of file +SDL::Video::unlock_surface($screen_surface) + if ( SDL::Video::MUSTLOCK($screen_surface) ); +
    +

    You can see an example here.


    +

    Any help will be greatly appreciated.

    +


    +

    \ No newline at end of file