This is only a small question:
Going through my code I noticed that I have placed the bool32 IsInitialized flag in the game_state struct (handmade.h). So in our game update and render function I check:
| if(!GameState->IsInitialized)
{
GameState->PlayerX = 150;
GameState->PlayerY = 150;
GameState->IsInitialized = true;
}
|
I noticed the original code has the flag in the game_memory struct (handmade_platform.h).
To me, it seems that it makes more sense to have the flag in the game_state struct, because it is only after we set some game_state members that we declare it initialized, but maybe I am wrong.
So, just a small question, but does it matter where this flag is placed, and if so what is the reasoning behind putting it there?