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