I have seen a lot of SDL-related information, but I want to do it or first look at how others do it, there are many open source examples on the main station of SDL. I choose a look.
Pig is a relatively simple and displayed the related features of SDL_Video, which is a good example.
download link:
http://olofson.net/examples.html
In addition, PIG needs support for SDL and SDL_IMAGE, please
http://www.libsdl.org/projects/ Download
In order to facilitate debugging, use the VC.NET environment, but PIG itself does not provide a project file, you can create an empty project for a Window Form in a VC environment, add all .c and .h to the project, and set SDL and SDL_Image In the VC project path.
Compile an error, shield the code
#if (RetsigType! = VOID)
Return 0;
#ENDIF
There are also many types of conversion warnings, should be the rigorous reasons why vc.net itself, does not affect the actual use, so it is ignored
Ok, I should see the interface now, just like the following:
Everything has, the source code of the PIG is started below.