X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0001.html-inc;h=0f278e3d78a43598820473ed670390f0eb6dfbd8;hb=ff75472c8bb862a0487b2277a793ccf439350910;hp=fb146c1a6145221d3352f5a6cfd230b9d1fdad94;hpb=e294b56045fc65d773bb238f22423ab303dd813e;p=sdlgit%2FSDL-Site.git diff --git a/pages/blog-0001.html-inc b/pages/blog-0001.html-inc index fb146c1..0f278e3 100644 --- a/pages/blog-0001.html-inc +++ b/pages/blog-0001.html-inc @@ -1,6 +1,6 @@

-Migrating Sol's Tutorial of SDL to SDL_Perl +SDL Alpha 2: A sneak preview

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



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

Then you can run this script by doing

$ perl examples/sols/ch02.pl 
\ No newline at end of file +
Pretty or Ugly,
Code is Code
New or Old,
Code is Code
Fast or Slow
Code is Code 

So over the past week we have been working hard to release the next Alpha for SDL-2.3. In this release we have ported SDL_Image completely, fixed false negatives in our testing suite, improved conditional building. Also we have also started to migrate the very pretty SDL_GFX library. Here is the test for it, enjoy.


\ No newline at end of file