View Full Version : Sdl
ExitToShell
2005.03.18, 01:48 AM
I'm a bit lost on the whole beginnings to SDL (aka the very basics of getting it to run.)
I eventually would like to switch to something different for graphics development, but SDL works best due to my friend using windows XP on his computer, so code is more or less interchangeable.
MattDiamond
2005.03.18, 08:31 AM
This is from memory, but...
If you are using Xcode, you download the OS X SDL installer and run it. The next time you fire up Xcode tell it to start a new project. You should see a new project template option that wasn't there before, with SDL in the name. Select it. You now have a simple bare-bones SDL project that should compile, link, and display an animation when you run it.
There was a problem with the installer for a while where the template would not be added to Xcode properly. There are old threads in the iDG forums about how to fix that, but I hope they fixed the installer by now.
sealfin
2005.03.18, 10:20 AM
If you want the source to a few example SDL projects (not good examples) I've a few early projects I coded for download from my blog (http://blog.sealfin.com/index.php?cat=9); there's also the source code to several uDG (http://www.udevgames.com/) entries which used SDL available from developer'ss (and uDG's?) sites...
There are also three simple intro tutorials on my site (http://www.angelfire.com/indie/simreality/) if you are interested. I also make my programs with SDL so the programs on the site (spare for the Whack A Mole game) were made using SDL/OpenGL so feel free to ask me any questions on AIM if you want.
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.