Category Archives: News

The news category contains all the news that have been posted to this website.

Android News Cover Image

About SDL2, Free Pascal and… Android

Since the rise of SmartPhones, many wonder if Free Pascal/SDL2 development  is possible for them, too. The good news is, yes it is possible! The bad news is, it is kind of toilsome to set up a development environment for Android (one of the two major operating systems of many SmartPhones).

Imants Gulbis informed me that he set up a Lazarus package (LazSDL2Design) which makes development of SDL2 applications with Free Pascal for Android fairly simple and integrates with the Lazarus IDE. Check out the instructions to make Lazarus/SDL2 ready for Android. The LazSDL2Design package relies on an own translation of SDL2 headers (LazSDL2) by him.

I put together some useful resources for Android development in the FAQ.

Thanks to reader Paul for letting me know about an unclear statement in Chapter 8 Part 1.

The website uses HTTPS now.

Linux Tutorial News Cover Image

New Linux Installation Chapter

A new Chapter 2 has been added. In contrast to the classical Chapter 2 which explains the installation of SDL2 and Free Pascal for the Windows operating system, the new Chapter 2 explains the installation and configuration of SDL2 and Free Pascal/Lazarus in Linux. Initially I was trying to check for some troubles which got mentioned. Finally I ended up with a short, new installation chapter. A few minor changes have been added to the other chapters which are basically hints for Linux users.

A few new great and interesting Free Pascal/SDL projects have been added to the project page. These are namely GearHead: Arena, GearHead 2, Dungeon Monkey Unlimited, Monsterland and DoomRL. The former three are open source by the way.

OpenGL Logo

SDL 2.0 meets modern OpenGL

Good news, Chapter 10 has been released right now! You ever wondered what to do if you would like to create 3d graphics for a game or application? – Well, you go for modern OpenGL. And SDL 2.0 is probably the best and most convenient way to go for modern OpenGL nowadays, even professionals typically use SDL as powerful assistant for their OpenGL applications.  Learn more about the strong relationship between SDL and OpenGL in Chapter 10. – And learn how it’s done, of course ;-).

Chapter 3 got a short explanation now on how to copy the source code of a chapter. In the SDL 1.2 chapters the source code  was shipped for each chapter as Pascal file. Nowadays it is much more convenient to grab the source code (or just the desired parts) by copying it directly from the chapter’s source code boxes (in the browser) and paste it whereever it is needed.

The transfer of the old website has been finished. Nearly the complete content is in some way or another transfered to the new page. For example, all tutorial pages (even the old ones) are still available. Some downloads are integrated at the corresponding tutorial pages now, so they are not lost. Some pages are gone, these are Downloads, Tables and Links. These pages are of no benefit anymore since their information are now provided at the corresponding place instead of separate pages. Nevertheless, links trying to access these pages are redirected to the main page to prevent broken links.

No One’s Space got greenlit. This means that this Free Pascal/SDL game will be available in Steam for purchase soon. It demonstrates the power of Free Pascal and SDL.

Small update of some subdomain settings. Subdomain links work again.

No One's Space

Commercial Free Pascal/SDL Project

The No One’s Space SDL game has been added to the SDL Project page. It is the first commercial title added and Klaus Vor der Landwehr (from Turtle-Games) has kindly provided an interview for us. Feel free to support the game in the greenlight state over at Steam. This game demonstrates that Free Pascal and SDL make games of commercial quality possible.

The installation instruction got extend by an explanation how to install and configure Lazarus.

Wallman

Pascal SDL Projects?

A new page has been set up which gives an overview of projects done in SDL with Pascal (any dialect). The projects may be games, interpreters, libraries, anything. Of course SDL should play a key role and shouldn’t be just used to set up an OpenGL window (or similar). If possible I try to have an interview with the creator of the project.

The first project listed is the famous EGSL project and its successor Pulsar2D. Both have been created by Cybermonkey who kindly gave an interview and provided a lot of screenshots to me.

Feel free to contact me to let me know about other Pascal SDL projects.

Edit: As of 09/02/2016 I added suve’s Alexland and Colorful to the project page. Thanks for the interview and the screenshots.

Chapter 9 application preview

New Chapter 9 about Music and Sound

The new Chapter 9: Music and Sound has been released. It demonstrates how to use the SDL_mixer 2.0 to load music and sound files to use them in your applications.

I was surprised to find that there have been made many important updates to Tim Blume’s SDL 2.0 units since the latest release (version 1.72). This means for everybody who relies on these units, update to the latest master branch release (later than version 1.72)!

Download ZIP button
IMPORTANT: Get the latest master branch release! Download Link

Otherwise you will struggle to get some important sdl features. E.g. key code constants and the code of the new Chapter 9 won’t work. I adapted Chapter 8 about event handling.

An interesting new header translation project was mentioned to me which allows for dynamic loading of SDL 2.0. Check out Chapter 1 to read more about this project by Imants Gulis.

Many smaller updates have been performed, too. Also the color scheme has been updated since it was stated that the contrast of the former color scheme has been too weak. You may also have noticed the amazing new fractal title background image :-)!

Important hint: The Free Pascal compiler got a new stable release on 25th November of 2015, version 3.0.0. Don’t forget to update your favourite compiler :-)!

10 Years Anniversary of FreePascal-meets-SDL.net

Happy New Year! 10 Years Free Pascal meets SDL!

Hi all,

right on time for the 1st January 2016, I finished the first part of the major update of www.FreePascal-meets-SDL.net. That’s an excellent start of the new year, isn’t it? 🙂

At the same time I’m happy and proud to announce that www.FreePascal-meets-SDL.net exists for ten years now! It has been originally established on 20th July 2005 and got 34,000+ views by now. It helped a lot of people to get familiar with Free Pascal and SDL or SDL2 and got a lot of positive responses.

I would like to thank all of you readers and supporters for your responses and encouragement in the past ten years, since I’m sure, without this, www.FreePascal-meets-SDL.net wouldn’t exist anymore today. A special thanks goes to Cybermonkey (developer of the amazing SDL based  EGSL Engine) who made many helpful and encouraging comments and to the whole Pascal Game Development Community where a fruitful affiliation has been established for many years.

For the new year and the ten years anniversary I decided to improve the website’s design since the old design is classic yet outdated in many ways, not only from an aesthetic point of view. I would like to allow for more interactivity, e.g. allow for comments directly to a certain tutorial page. Additionally the site is mobile-friendly now. Also I stopped using third-party forum software or a third-party visitor counter, which was suitable back in 2005. Just to name a few aspects, expect even more improvements and changes to come. At the moment the forum is gone completely, anyway, I’m not decided yet, if I re-introduce an own forum again.

All the seven chapters of the SDL 2.0 Tutorial have been corrected and extended and a completely new chapter consisting of two parts has been added. Step by step I will update the content (e.g. SDL 1.2 Tutorial) for the new design. Until I’m finished with transferring and making up the content, there is a link “Old Website” in the menu which will link to the old Website. So you can still access all the old resources.

The download area will be gone for now, since all downloads there are just related to the SDL 1.2 Tutorial and furthermore it would be more convenient to have them directly within the chapter page that is related to them. The tables section is also gone for now, no need for having them anymore.

And now have fun exploring the new site and functionality. By the way, you should be able to log-in via several social media services (e.g. Twitter), so you are not in need to create a new account.

 

News Archive 2005-2015

News archive 2005-2014

The following table is extracted directly from the original news page of the old FreePascal-meets-SDL.net website, which shows the news from 20th July of 2005 to 19th July of 2014.

The table had two colons, the left one showing the date, the right one the news text. Have fun browsing through the old news.

19th July 2014 Chapter 7 is finished and released today. It explains how to generate text with SDL2_ttf.


5th April 2014 The new SDL2 chapter 6 has been released. It treats further very important texture manipulation functions, e.g. rotation, scaling and colour manipulations, and also describes some functions to set a viewport and the “logical size resolution”.


19th January 2014 Yeah, new year, new chapters! They treat the brand new SDL2. With this update the first five chapters treating SDL2 are released. They introduce to SDL2 and cover many basic and new concepts. For example the concept of textures (in contrast to surfaces) is explained, displaying images, drawing primitives and much more. Expect more chapters to come. The old chapters treating SDL 1.2 are still available for those who are still interested in them.


16th November 2013 I didn’t have much time to care too much about this site lately. Anyway, on 12th August 2013 finally SDL2 (short for SDL 2.0) has been released! This is excellent news since with SDL2 a lot of improvements and new features are introduced to SDL. Check out the SDL2 MigrationGuide to see which new features are introduced and what you need to know about SDL2. And there are some Pascal units available already, check these out here (pure units), here (pure units, different project) and here (units incorporated in a game library called Bare Game Library). As soon as possible I will also start to update my tutorials to the use of the new units, probably archiving the old tutorial pages treating SDL 1.2 and just start from scratch for the new pages treating SDL 2.0. Thanks to Cybermonkey for the hint in the forum! 🙂


10th March 2012 A new chapter 8a is now released. It explains how to convert a SDL image to an OGL texture. Before writing this chapter I thought about extending chapter 8 but then I felt it might be too many new information, especially if someone’s new to SDL AND OpenGL. Also made several minor changes to the website, e.g. every page got the doctype line for better browser compatibility.


3rd July 2011 I’m very happy to announce that more than 10,000 visitors hit my site by now! Eventually this hobby project can be counted as success. Thanks to all visitors, readers and especially participants who mentioned bugs and ideas in the forum! Last but not least to mention the fruitful partnership with the Pascal Game Development project and their magazine! Thanks to Jason and his team!Since FPC ships SDL with pre-compiled units since a while I decided to remove the path setting steps in several chapters (3a, 5, 7, 8). They may confuse readers. Furthermore they are quite specific for the FP IDE, I doubt many people really use this nowadays for serious development. Otherwise beginners who might still use the FP IDE or a different IDE should get the idea when seeing how to set the unit paths in FP IDE. Therefore, for people who install the units manually I added these information at the end of the first chapter with a little explanation. I added a FAQ page for frequently asked questions, mainly from the forum. The first question added concerns the 64 bit compatibility of SDL (thanks to Cybermonkey for a a lot of contributions to solve this).


2nd January 2011 New chapter 4a created dealing with SDL_GFX which is a valuable extension of SDL. It is demonstrated how to compile your own SDL_gfx.dll, how images are zoomed and rotated, a framerate manager is introduced and primitives are drawn. The author’s page is added to the link list.In 2005, when starting this page, one of the two main purposes was to show how to install/configure your Windows machine to work with Free Pascal and SDL, nowadays FPC is shared with JEDI-SDL implemented as an auto-installer, also JEDI-SDL itself is installed by an auto-installer. So actually a manual installation isn’t necessary anymore for recent versions of these software packages. For archiving reasons I will keep chapter 1 as is but it is kind of obsolete. I did minor changes to chapter 1 and 1a.


7th November 2010 Recently issue #3 of the Pascal Gamer Magazine has been released. Please check this great stuff out!


22nd October 2010 Two important news this time. Firstly, chapter 6 ist now completely updated. From now on ALL chapters show the complete source code of the example programs completely first and are then treating the source step by step. Secondly, PascalGameDevelopment.com and the Pascal Gamer Magazine are from now on official partner sites of Free Pascal meets SDL. If you’re interested in Pascal game development you should really check out these sites. Especially the forum of PascalGameDevelopment.com is a rich resource for programmers. There are currently two issues published of the Pascal Gamer Magazine which are available online for free, so don’t hesitate to give this high quality magazine a try.


11th September 2010 Just a small counter (page views) update. This was requested by the counter provider.


8th August 2010 Updated chapter 5 completely.


9th June 2010 Updated chapter 4 completely.


1st November 2009 Updated chapter 2 and 3. Explanation of variable type UInt32 shifted from chapter 3 to 2. I decided to give the exact definition for any function provided in my tutorial according to the corresponding source code. So instead of general arguments like “components” or “parameters”, the exact parameter list and their variable types are shown.


27th September 2009 Took me longer than expected, but added now the new chapter 8 describing how to prepare Free Pascal and SDL for OpenGL programming. Thanks to Roin who mentioned a now fixed major bug which let the source code snippets appear centered instead of left aligned in many browsers (Epiphany, Firefox, IE). Changes in main page. Reworked chapter 3. Moved information about SDL_DELAY function from chapter 4 to chapter 3. Added a result box at the end of any chapter describing what the program is going to do if working correctly.


8th July 2009 Along with the new URL www.FreePascal-meets-SDL.net, a whole bunch of updates come up. I reworked and shortened chapter 1 now giving some information about the recently provided JEDI-SDL units of FPC since version 2.2.2. Renamed chapter 1b to 1a. More details on SDL_DELAY function in chapter 4. Reworked the table of chapter 5. Added new chapter 3a describing the usage of different image format (e.g. JPG, PNG, GIF…). I’m working and planning to release two new chapters in the next time, so stay tuned. Please don’t forget to update your links or bookmarks to the new URL.


13th July 2008 Reader Robvdl mentioned that Firefox users aren’t able to view many images and to download some files. I fixed this now. Thanks Robvdl. I also added a new subforum now for questions related to programming.


26th April 2008 New chapter 7 added! Now you learn how to introduce music and sound to your programs. I reworked chapter 3 and now explain not only how to display a picture but how to blit parts of pictures which is a quite important feature at all. Updated chapter 1 and link section a little.


13th January 2008 Happy new year! I reworked the first chapter because the JEDI-SDL project now provides an auto-installer. The new chapter 1b describes the installation and configuration of Lazarus. This surely isn’t directly related to SDL but the combination of SDL and Lazarus yields a quite powerful development kit. The links are updated and I started adding copyright information.


7th October 2007 Read in a pascal development forum that someone had problems getting my tutorials to run because he didn’t know about CRT unit which I used habbitually in any chapter. When I thought about it, it seemed really avoidable in most cases so I reworked all chapters and removed it if possible.


26th July 2007 Reworked chapter 6 for JEDI-SDL and added mouse handling.


15th June 2007 Reworked chapter 5 for JEDI-SDL.


6th May 2007 Reworked chapter 4 for JEDI-SDL.


4th May 2007 Major changes have been applied to this site. Since the SDL4FP project seems to be dead I will now rewrite all tutorials for JEDI-SDL project. This project is alive and in development and has much more translated headers. The first three chapters are finished and can be accessed by the menu. The old chapters for SDL4FP are available, too but you should really think about switching to JEDI-SDL.


3rd April 2006 Added first part of chapter 6, which describes event handling. Furthermore I updated some chapters, added some links and a brand new tables page which contain two useful tables. I will add new tables if I think they could be useful.


15th October 2005 Added new chapter, added links and download area.


22nd July 2005 Made some updates to the site and added a new chapter.
20th July 2005 Today page got online with first three chapters describing how to configure a windows system to use Free Pascal and SDL library. Furthermore there is a forum to keep contact if needed.