X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0019.html-inc;h=06aca7502fd35aa8c157a1b354942766dceb4c24;hb=b2c46b060afb65aa63414ea0fabbe500e44917d7;hp=720d4f00e580beb90a6b81c520cc9b7ab5f6e3da;hpb=6b8e717c0e647220ce022cd254e7a248f8c8bbc6;p=sdlgit%2FSDL-Site.git diff --git a/pages/blog-0019.html-inc b/pages/blog-0019.html-inc index 720d4f0..06aca75 100644 --- a/pages/blog-0019.html-inc +++ b/pages/blog-0019.html-inc @@ -1,6 +1,40 @@

-SDL Perl v2.2.2 out and Plans for v2.4 +Design of SDL::Rect

-
The early bird may get the worm,
and the second mouse may get the cheese,
but I want neither the worm nor the cheese,
'cause I am not a mouse or a bird.



       I have release v2.2.2 which includes several bug fixes:

You can grab this release off CPAN.

This is still a stopover to the major release v2.4. Which will hope fully solve the memory leaks problems.


--yapgh
\ No newline at end of file +

+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