X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=sdlgit%2FSDL-Site.git;a=blobdiff_plain;f=pages%2Fblog-0017.html-inc;h=84a740ff4f425ede40b97567d59b2b37c0970fbf;hp=5c755eff3587d53a5df2823aafd86c864fa56f39;hb=ca0a3441dd72000cbbbb4be484b18d0d305fdb29;hpb=05c66c332a6f0a0e519f8855419848dcab1aee62 diff --git a/pages/blog-0017.html-inc b/pages/blog-0017.html-inc index 5c755ef..84a740f 100644 --- a/pages/blog-0017.html-inc +++ b/pages/blog-0017.html-inc @@ -1,19 +1,35 @@

-Development Update +Migrating Sol's Tutorial of SDL to SDL_Perl

-
Short and Sweet
+
If I have seen further it is only by standing on the shoulders of giants. --Newton

-Had an exam on the weekend so I am a bit late. Here is the progress so far.
-
  • SDL::Video at 97%
  • -
  • SDL::Events at 25%
  • -
  • ~1000 tests cases passing on Windows and Linux
  • -

-SDL Smoke tests
+

+

+

Sol's Tutorials


+

When I was struggling with SDL C a while ago, someone recommended Sol's Tutorial to me. It had not only help me understand video in SDL, but I believe my code has improved using Sol's code style. I would like to pass these along to fellow SDL_Perl users too. So here is the Ch 02 code of Sol's Tutorial in SDL_Perl. It will be getting more and more Perly as our team hacks on it. There is more to come!
+


+

To use this code you need the new Redesigned SDL_Perl Library


+

Getting SDL Dependencies


+Only If you are on Linux (debian/ubuntu) you need the following dependencies:
+
+
$ sudo apt-get install libsdl-net1.2-dev libsdl-mixer1.2-dev libsmpeg-dev libsdl1.2-dev libsdl-image1.2-dev libsdl-ttf2.0-dev 

+On Windows we recommend using Strawberry Perl. It comes with SDL-1.2.13 header files and libs included.
+
+Both Windows and Linux needs to install Alien::SDL
+
+
$ cpan Alien::SDL
** Add sudo to this for Linux
+
+

Getting Bleeding SDL


+The bleeding SDL is on github. Click download on this site .
+
+Extract it and cd into the folder run
+
$ cpan . 
** The dot is needed
+** in Linux you may need to do sudo

-The major release maybe coming quicker than we thought. FROGGS++ for helping a lot out on this. However we need more testers!! Please contact us on #sdl and we will set you up with an account on Smolder.
+Then you can run this script by doing

-[Edit] Please read http://sdlperl.ath.cx/projects/SDLPerl/wiki/Testing on how to get started in test! -


-

\ No newline at end of file +
$ perl examples/sols/ch02.pl 
+


+

\ No newline at end of file