void Menu::draw() { if (this->which == 0) drawMain(); else if (this->which == 1) drawNew(); else if (this->which == 2) drawLoad(); else if (this->which == 3) drawPlayer(); }
/*ロード画面の準備・終了*/ void setLoad(int funcs,void (*init_func)(),void (*finish_func)(),LOAD_FUNCS* load_funcs, int next_mode){ LoadIndex = 0; /*変数セット*/ initFunc = init_func; finishFunc = finish_func; Funcs = funcs; //関数数 LoadFuncs = load_funcs; NextMode = next_mode; //最初の関数読み込み if(initFunc != NULL) initFunc(); //プリペア startLoad(); /*場面切り替え*/ GameScene = GAME_SCENE_LOADING; /*一回だけ描画*/ drawLoad(); SDL_GL_SwapBuffers(); }