Are there good tutorials for SDL2.0 for C programming? (not C++) [closed] Are there good tutorials for SDL2.0 for C programming? (not C++) [closed] c c

Are there good tutorials for SDL2.0 for C programming? (not C++) [closed]


If I were you I would use the tutorials available on SDL's page here:

http://wiki.libsdl.org/Tutorials

In conjunction with the API documentation here:

http://wiki.libsdl.org/APIByCategory

The API is written in C so despite the fact that the tutorials may be in C++ you should be able to follow the tutorial by referencing the API docs and understanding the functional structure of the example programs.

As an aspiring developer you should be able to understand enough of the C++ syntax to understand the conceptual way you need to develop an analogous application in C. The API calls will be need to made in the same way.

Consider this page from one of the linked tutorials (which is stated as being for C++):

http://lazyfoo.net/tutorials/SDL/01_hello_SDL/index2.php

Are any of those code blocks really foreign to you? They shouldn't be, they're written in C. If you come across some expressions you are unfamiliar with as you go through the tutorial, reference the API. If you're still stumped, then maybe it would be time to post on StackOverflow. That particular tutorial may be written completely in C, I'm not sure I only went through the first few pages.

Also note that the function documentation in the SDL API docs gives C and C++ example code:

http://wiki.libsdl.org/SDL_Init

Here you can cross reference two identical programs in C and C++ and begin to learn how the same operations are performed in the two languages. From there you can start to interpret C++ tutorials for high level functional operations and translate that to C as opposed to just copying code samples. You will learn much more going through this process.

To your own admission you decided to go the complex route. You should be prepared to invest some effort in the process!