GameStateLoading.hpp
上传用户:zhj2929
上传日期:2022-07-23
资源大小:28772k
文件大小:1k
- #ifndef _GAME_STATE_LOADING_H_
- #define _GAME_STATE_LOADING_H_
- #include "GameState.h"
- class GameStateLoading: public GameState
- {
- private:
- int mStage;
-
- public:
- GameStateLoading(GameApp* app): GameState(app) {}
- virtual ~GameStateLoading() {}
- virtual void Start()
- {
- mStage = 0;
- mEngine->ResetPrivateVRAM();
- mEngine->EnableVSync(true);
- }
- virtual void End()
- {
- mEngine->EnableVSync(false);
- }
- virtual void Update()
- {
- if (mStage == 1)
- {
- mApp->LoadGameStates();
- }
- else if (mStage == 2)
- {
-
- mApp->SetNextState(GAME_STATE_PLAY);
- }
-
- mStage++;
- }
- virtual void Render()
- {
- }
- };
- #endif