Menu::Menu(sf::RenderWindow* window) : mWindow(window){ if (window != nullptr){ mCurrentRoom = MainMenu; LoadBackground(); LoadArts(); LoadLibraryInfo(); CreateButtons(); } };
DLLEXPORT void StartUp(gameapi_t *Api, gamestate_t *GameState) { GameState->Memory = Api->AllocateMemory(MEGABYTES(32)); FrameMemory = AllocateSubGameMemory(&GameState->Memory, MEGABYTES(10)); ArtsMemory = AllocateSubGameMemory(&GameState->Memory, MEGABYTES(10)); LoadArts("game_items.art", Api, &ArtsMemory); GameState->Initialized = true; }