X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0025.html-inc;h=06aca7502fd35aa8c157a1b354942766dceb4c24;hb=c59d9ab1a32a69fcdb54ab78e21e31ee26d88e7a;hp=24852d4828924a98d82ebb028fdbcca78a7d4dc5;hpb=50ebf4949c9eed8f2d3fb629f12d11e95ec4e938;p=sdlgit%2FSDL-Site.git diff --git a/pages/blog-0025.html-inc b/pages/blog-0025.html-inc index 24852d4..06aca75 100644 --- a/pages/blog-0025.html-inc +++ b/pages/blog-0025.html-inc @@ -1,6 +1,40 @@

-Alien::SDL 0.01 released!!! +Design of SDL::Rect

-
I just code
don't know where it leads
or
how I will get there
I just code


With yesterday's frantic coding to get windows compatibility setup we were left with a very crude way of installing. After some late night hacking I finally came up with Alias's suggestion to have Alien::SDL. All thanks to Alias's  generous access to his windows farm, I was able to make a easier module to install SDL deps on windows. Future plans are in place to get sources and compile them for other platform.Hopefully a SDL perl release will be out soon to use Alien::SDL now.


The above script is in test/testsprite.pl.

Until then you can do:

in cpan
cpan> install File::Fetch
cpan> install Archive::Extract
cpan> install Alien::SDL

and in cmd
pip http://cloud.github.com/downloads/kthakore/SDL_perl/SDL_Perl-v2.2.2.tar.gz


Please post any feedback here.

Enjoy,
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