I have a quick question regarding SFML 1.6 for C++. I have searched around for information but am limited to the tutorials on the SFML website.
I am currently in the process of making a separate Main Menu class and am wondering 2 things:
- Do I need to create a separate events queue for the menu, and destroy it when I move into the Main game (making a new one for each 'state'?). Or, do I pass in the events queue from the Main window by reference, and feed events back into it, thereby using the same events queue for the Menu and Game (and as well as other game 'states').
- Where do I handle events relating to the Menu, do I handle the, within the loop that checks and processes events or, do I handle them like in the tutorial linked here: http://www.sfml-dev.org/tutorials/1.6/sources/window-time.cpp , after where elapsed time is set.
If you need anymore information, or a link to some of my code to help narrow down what I am getting at, I am more than happy to provide it.
Regards,
Stitchs.