X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0010.html-inc;h=3bbdb8b340f811f3a177571aec77db7421544f26;hb=c8ad4fe9f211e727310a1ce6d23ffb1d7822d71f;hp=11c394ee5ac6a1d0b13b0063e1e4ceb1ff8b7a15;hpb=ec946b6b14ea9423892698e8edfac4664f979b3c;p=sdlgit%2FSDL-Site.git diff --git a/pages/blog-0010.html-inc b/pages/blog-0010.html-inc index 11c394e..3bbdb8b 100644 --- a/pages/blog-0010.html-inc +++ b/pages/blog-0010.html-inc @@ -1,6 +1,15 @@

-Design of SDL::Rect +Release SDL 2.4: Frozen-Bubble begins to go to CPAN

-

you say things,
I hear,
but don't listen,

you show things,
I see,
but don't understand,

you write things,
I read,
but don't know.

Lately we have been working on cleaning up the XS name spaces of SDL perl. After some bumps and falls we came up with a separated Rect module. Rect is one of the most simple C struct as shown below.



Using the awesome perlobject.map as a reference I was able to create a blessed perl object in XS. So now SDL::Rect->new(...) gave us a blessed reference ready to go. And as an icing it would destroy itself properly no matter where it was used. But once I brought it into our existing code base, garu pointed out the extending it was a little bit of a mess. So far to extend Rect we have to something like below. Any comment or advice would be much appreciated.





Have at it I am a big boy. You can grab the code like this.
Only If you don't already have a local git repo:

mkdir SDL
cd SDL
git init .

Then do this or skip to this if you already have a local git repo
git pull git://github.com/kthakore/SDL_perl.git experimental
\ No newline at end of file +
+SDL 2.4 is released!

+
+After 8 months of work this picture begins to sum it up:
+
+

+

If you cannot wait then grab SDL 2.4 and Alien::SDL 1.2 (pick PANGO support) from CPAN and grab the toolchain branch from the repo. Disclaimer the branch will be volatile for a bit.


+--yapgh
+


+

\ No newline at end of file