Well... I have started learning SDL, and I think that I am getting to understand it, and I have used Lazy Foo's Tutorial, but there are 2 points, that I don't get:
1. Buttons. I read the tutorial and understood what he was doing, but I couldn't understand how the buttons worked, because of all of the clutter of the rest of the code, can someone please post a snippet of code that makes a(simple) button that exits the program when clicked please?
2. Using SDL_ttf, I figured out how to do text (Easy :D) But However, There where 2 things, that I was unsure of... I wanted to know how to display variables in the text (It would be pretty useless without :D) as in message /*stuff*\ = "The number is "int"!"; */
And Is there an easier way to do lots of text, other than making lots of SDL_Surface's?