Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "GuiMainMenu.h"
- #include "../../Engine/engine.h"
- double titleCenterY, titleWidthDiv2, titleHeightDiv2;
- void GuiMainMenu::renderGui()
- {
- displayPicture("mainMenuBackground", 0, 0, windowWidth, windowHeight);
- displayText("mainMenuTitle", windowWidthDiv2, titleCenterY, titleWidthDiv2, titleHeightDiv2);
- }
- void GuiMainMenu::resizeGui()
- {
- titleWidthDiv2 = windowWidth / 5;
- titleHeightDiv2 = windowHeight / 10;
- titleCenterY = windowHeight - titleHeightDiv2 - titleHeightDiv2 / 5;
- }
- bool GuiMainMenu::isDynamic()
- {
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement