I'm trying to get into programming with SDL. Currently I'm using "Focus on SDL" by Ernest Pazera. I'm having trouble setting up my system to work with SDL.
My book says to add a new directory by going into Tools, Options, Directories. I tried this, and Visual Studio told me that this feature was depreciated (using 2010 version).
So I tried copying all the files from the include folder into Visual Studio's include folder. This seemed to work for the first project, however in the second project both SDL_SetVideoMode() and SDL_ANYFORMAT are both marked as undefined. Am I still missing some files? What files do I need, and where do I put them? Alternatively, how do I add a new directory in Visual Studio 2010?
Any help would be greatly appreciated.
Just reminding you that you are doing SDL 1.2(1998), and SDL 2.0 is much more recent and will give many benefits like texture rendering, android support, and doesn't have it's old bugs. But the api(specifically the video and rendering api, which is almost all what SDL is) has drastically changed, so if you are planning to switch later, it would be difficult.
Lazyfoo tutorials are great, even has a version for sdl2.
Ah, so that's what the issue is.
I didn't realize the book was using SDL 1.2. In fact, I had downloaded all the files for SDL 2.0 from the website, which I'd prefer to use anyway.
Thanks for the help.