Advertisement
Benjamin_Loison

GuiMainMenu.cpp

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