I want to install a game library to my c++ visual studio 2012 express. I have found a couple of libraries but none of them were either easy .exe installs or pre installed in the program. I want something that is a good start and that is not hard to install. I am mostly interested in just 2d stuff for now, but 3d capabilities doesn't hurt :P
Installing libraries are really frustrating -.- I have looked on google and youtube but nothing good to find... How do I install SDL on visual studio without having to type in the terminal and mess too much with directories?
I found a youtube tutorial that showed how to set everything up. It all works :) The only negative thing is that I have to do it every time I make a new project -.- And I like to make many small projects rather than few but big ones.
You can either make a template project that you'd copy and paste for each new project, or you can install the libraries in a way other than what the YouTube video showed you.
I'm assuming that the video had you go into the project properties and add the relevant folders to the list of linked resources. Either that, or they have you copy and paste the files to the location of the project code. Instead, if you go through C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC you'll find an include and lib folder. Put your lib and header files in the appropriate folders, and they can be accessed from all projects. That's how I normally install my libraries.
Personally, I like Allegro as it has more features than SFML and SDL, cross-platform, and generally integrates well with 3D graphics engines like Ogre or Crystal Space, so if you're looking for 2D and wanted to get started on 3D later on or something, you could get Allegro and add in a 3d graphics engine when you're ready to use it. I think it comes with one, not sure. So I guess I'd recommend Allegro 5 or SDL.
It's not hard to install, but I don't know of any libraries that use .exe installs. Also, it's not fairly difficult to find guides on it, but it's rare you find a good/useful one. The library is easy to understand, for both Allegro and SDL, but SDL has more info available than Allegro, and is much more in wide usage.
Still, Allegro feels natural, the API is easy to understand and makes sense, and like I said, SDL is pretty powerful and although not as easy as Allegro, still has tons of documentation so it is easy to learn. I guess at the end of the day, since you mainly want a 2D library, use SDL. It's mainly for 2D graphics, whereas Allegro is a mix of 2D and 3D features.
I have installed SDL in a way I think should work, and I can show basic images. The program I have made works when I remove this line,
Uint32 colorkey = SDL_MapRGB( image->format, 255, 250, 250 );
When I compile the program, the program opens up with no image, but when I run the program from its location it opens properly. (that is without the line above that makes everything fail) So I guess it has somethig to do with the way I compile???!!! HELP!!
Memory errors come when use this code:
Thank you guys so much for replies, I think I'll stick with SDL for a little while now because I got it set up :) As for the program above I managed to fix it after hours of testing and changing code and stuff I finally found out that I could compile the code without running it with F7 instead of using F5 wich compiles and runs. Can someone explain directX? Is it a good library for making games? Is it a library at all?