Okay. I've gotten my program to compile and I can see the 3 PNG files I made up for the title screen thus far. It's laid out right, etc. etc.
The big problem though is how this is handled. Using the tutorials, I have this variable:
sf::RenderWindow App(sf::VideoMode(640, 480, 32), "Shmuppy"); // the render window
...and it is global. I don't know if this is bad or not, but it works. The way I'm intending to do it is have App be used for drawing wherever...
Anyway though... what I've basically done is made up 2 functions. main and titleScreen. I have a variable for the game state, which calls the respective function from main as well as one called navigateMode, which is like the "state within the game state". This is the approach I've used for my ASM programs.
Anyway, the big problem I have is with the whole title screen. It's basically doing state 0 all the time, which involves loading the 3 PNGs each frame, making them into sprites, and then drawing said sprites. Obviously, it should NOT have to load these every frame, but I have no idea where to go from here which would involve loading these separately...
This is the program thus far:
http://pastebin.ca/1844303I keep wanting to take the approach of having a lot of global variables, but I know that's not the C++ way.