Ajout de la page Option

Pas de bouton encore
This commit is contained in:
Rynort 2023-11-27 02:57:22 -05:00
parent 83e438583f
commit 9bb8b1c9e5
2 changed files with 4 additions and 2 deletions

View File

@ -292,7 +292,7 @@ void Engine::DrawOption()
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
MenuOptionsTexture.Bind();
MenuBGTexture.Bind();
glLoadIdentity();
glBegin(GL_QUADS);
glTexCoord2f(0, 0);
@ -434,6 +434,7 @@ void Engine::LoadResource() {
LoadTexture(MenuTitleTexture, TEXTURE_PATH "BrouillonbackgroundMenu.png");
LoadTexture(MenuBGTexture, TEXTURE_PATH "BrouillonbackgroundMenu.png");
LoadTexture(MenuBGOptionTexture, TEXTURE_PATH "BrouillonbackgroundMenu.png");
LoadTexture(SplachScreenTexture, TEXTURE_PATH "sc2.png");
LoadTexture(MenuQuitTexture, MENU_ITEM_PATH "BasicQuit.png");
LoadTexture(MenuOptionsTexture, MENU_ITEM_PATH "test.png");
@ -1173,7 +1174,7 @@ void Engine::Render(float elapsedTime) {
}
else if (m_gamestate == GameState::SINGLEMULTI)
DisplaySingleOrMultiplayerMenu();
else if (m_gamestate == GameState::MAIN_MENU)
else if (m_gamestate == GameState::OPTIONS)
{
DrawOption();
}

View File

@ -95,6 +95,7 @@ private:
GameState m_gamestate = GameState::MAIN_MENU;
Texture MenuTitleTexture;
Texture MenuBGTexture;
Texture MenuBGOptionTexture;
Texture MenuStartTexture;
Texture MenuQuitTexture;
Texture MenuOptionsTexture;