예제 #1
0
Menu::Menu(sf::RenderWindow* window) :
			mWindow(window){

	if (window != nullptr){
		mCurrentRoom = MainMenu;
		LoadBackground();
		LoadArts();
		LoadLibraryInfo();
		CreateButtons();
	}
};
예제 #2
0
파일: game.cpp 프로젝트: Groffa/multima
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;
}