Advertisement
Benjamin_Loison

GuiMainMenu.cpp

Aug 13th, 2017
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | None | 0 0
  1. #include "GuiMainMenu.h"
  2. #include "../../Engine/engine.h"
  3.  
  4. double titleCenterY, titleWidthDiv2, titleHeightDiv2;
  5.  
  6. void GuiMainMenu::renderGui()
  7. {
  8.     displayPicture("mainMenuBackground", 0, 0, windowWidth, windowHeight);
  9.     displayText("mainMenuTitle", windowWidthDiv2, titleCenterY, titleWidthDiv2, titleHeightDiv2);
  10. }
  11.  
  12. void GuiMainMenu::resizeGui()
  13. {
  14.     titleWidthDiv2 = windowWidth / 5;
  15.     titleHeightDiv2 = windowHeight / 10;
  16.     titleCenterY = windowHeight - titleHeightDiv2 - titleHeightDiv2 / 5;
  17. }
  18.  
  19. bool GuiMainMenu::isDynamic()
  20. {
  21.     return false;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement