Changer l'image background du menu
This commit is contained in:
parent
e2fa4fea7c
commit
0c8772edbf
@ -99,11 +99,11 @@ void Engine::DrawMenu()
|
|||||||
glTexCoord2f(0, 0);
|
glTexCoord2f(0, 0);
|
||||||
glVertex2i(0, 0);
|
glVertex2i(0, 0);
|
||||||
glTexCoord2f(1, 0);
|
glTexCoord2f(1, 0);
|
||||||
glVertex2i(800, 0);
|
glVertex2i(Width(), 0); //
|
||||||
glTexCoord2f(1, 1);
|
glTexCoord2f(1, 1);
|
||||||
glVertex2i(800, 600);
|
glVertex2i(Width(), Height());
|
||||||
glTexCoord2f(0, 1);
|
glTexCoord2f(0, 1);
|
||||||
glVertex2i(0, 600);
|
glVertex2i(0, Height());
|
||||||
glEnd();
|
glEnd();
|
||||||
|
|
||||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||||
@ -125,25 +125,28 @@ void Engine::DrawMenu()
|
|||||||
glVertex2i(0, 300);
|
glVertex2i(0, 300);
|
||||||
glEnd();
|
glEnd();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
MenuStartTexture.Bind();
|
MenuStartTexture.Bind();
|
||||||
glTranslated(80, -225, 0);
|
glTranslated(80, -225, 0);
|
||||||
glBegin(GL_QUADS);
|
glBegin(GL_QUADS);
|
||||||
glTexCoord2f(0, 0);
|
glTexCoord2f(0, 0);
|
||||||
glVertex2i(0, 100);
|
glVertex2i(0, 100);
|
||||||
glTexCoord2f(1, 0);
|
glTexCoord2f(1, 0);
|
||||||
glVertex2i(sButton, 100);
|
glVertex2i(sButton , 100);
|
||||||
glTexCoord2f(1, 1);
|
glTexCoord2f(1, 1);
|
||||||
glVertex2i(sButton, 200);
|
glVertex2i(sButton, 200);
|
||||||
glTexCoord2f(0, 1);
|
glTexCoord2f(0, 1);
|
||||||
glVertex2i(0, 200);
|
glVertex2i(0, 200);
|
||||||
glEnd();
|
glEnd();
|
||||||
|
|
||||||
|
|
||||||
/*MenuResumeTexture.Bind();
|
/*MenuResumeTexture.Bind();
|
||||||
glTranslated(0, -100, 0);
|
glTranslated(0, -100, 0);
|
||||||
glBegin(GL_QUADS);
|
glBegin(GL_QUADS);
|
||||||
glTexCoord2f(0, 0);
|
glTexCoord2f(0, 0);
|
||||||
glVertex2i(0, 125);
|
glVertex2i(0, 125);
|
||||||
glTexCoord2f(1, 0);
|
//glTexCoord2f(1, 0);
|
||||||
glVertex2i(sButton, 125);
|
glVertex2i(sButton, 125);
|
||||||
glTexCoord2f(1, 1);
|
glTexCoord2f(1, 1);
|
||||||
glVertex2i(sButton, 200);
|
glVertex2i(sButton, 200);
|
||||||
@ -349,8 +352,8 @@ void Engine::LoadResource() {
|
|||||||
LoadTexture(m_textureSoloMultiMenu, TEXTURE_PATH "single_multi.png", false);
|
LoadTexture(m_textureSoloMultiMenu, TEXTURE_PATH "single_multi.png", false);
|
||||||
LoadTexture(m_textureTitle, TEXTURE_PATH "title.png", false);
|
LoadTexture(m_textureTitle, TEXTURE_PATH "title.png", false);
|
||||||
|
|
||||||
LoadTexture(MenuTitleTexture, MENU_ITEM_PATH "test.png");
|
LoadTexture(MenuTitleTexture, TEXTURE_PATH "BrouillonbackgroundMenu.png");
|
||||||
LoadTexture(MenuBGTexture, MENU_ITEM_PATH "test.png");
|
LoadTexture(MenuBGTexture, TEXTURE_PATH "BrouillonbackgroundMenu.png");
|
||||||
LoadTexture(SplachScreenTexture, TEXTURE_PATH "sc2.png");
|
LoadTexture(SplachScreenTexture, TEXTURE_PATH "sc2.png");
|
||||||
LoadTexture(MenuQuitTexture, MENU_ITEM_PATH "BasicQuit.png");
|
LoadTexture(MenuQuitTexture, MENU_ITEM_PATH "BasicQuit.png");
|
||||||
LoadTexture(MenuOptionsTexture, MENU_ITEM_PATH "test.png");
|
LoadTexture(MenuOptionsTexture, MENU_ITEM_PATH "test.png");
|
||||||
|
Loading…
Reference in New Issue
Block a user