Push reajustements apres merge 31

This commit is contained in:
mduval76 2023-11-27 17:07:51 -05:00
parent b23b2c6838
commit 6db90a3a16
2 changed files with 1 additions and 17 deletions

View File

@ -322,18 +322,6 @@ void Engine::DrawOption()
ShowCursor();
}
void Engine::Init() {
glDisable(GL_BLEND);
glEnable(GL_DEPTH_TEST);
glMatrixMode(GL_PROJECTION);
glPopMatrix();
glMatrixMode(GL_MODELVIEW);
glPopMatrix();
ShowCursor();
}
void Engine::Init() {
GLenum glewErr = glewInit();
@ -1323,10 +1311,6 @@ void Engine::Render(float elapsedTime) {
{
DrawOption();
}
else if (m_gamestate == GameState::PAUSE)
{
DrawPause();
}
else if (m_gamestate == GameState::QUIT)
Stop();
}

View File

@ -107,7 +107,7 @@ private:
std::chrono::high_resolution_clock::time_point m_startTime;
//Menu
enum class GameState: uint8_t { MAIN_MENU, OPTIONS, QUIT, NEWG, PLAY,SINGLEMULTI };
enum class GameState: uint8_t { MAIN_MENU, OPTIONS, QUIT, NEWG, PLAY, PAUSE, SINGLEMULTI };
GameState m_gamestate = GameState::MAIN_MENU;
Texture MenuTitleTexture;