OK, so i'm trying to make a simple game with opengl, i want an inventory on the game to be initialized when i press the key 'I' and after that i want it to disappear when i press the key 'I' again,
So far i thought of doing an if statement, but with that i have the problems of the inventory closing straight away cos of going out of scope. Not entirely sure on how to do this because once its initialized i also want to be able to stop it from the user input.
Anybody input with experience or a good idea on what to do with this would be much appreciated.
Thnx
Buggy
1 2 3 4 5 6 7
void Display ()
{
Screen Screen;
Screen.LoadMod();
//here i want to my invetory and possibly others as i go along.. but how i don't know
}