|
Rendu
A lightweight rendering engine for experimentations
|
A game menu containing buttons, toggles and images. More...
#include <GameMenu.hpp>
Public Member Functions | |
| void | update (const glm::vec2 &screenResolution, float initialRatio) |
Public Attributes | |
| std::vector< MenuButton > | buttons |
| The menu buttons. | |
| std::vector< MenuToggle > | toggles |
| The menu toggles. | |
| std::vector< MenuImage > | images |
| The menu images. | |
| std::vector< MenuLabel > | labels |
| The menu custom labels. | |
| const Texture * | backgroundImage = nullptr |
| The background texure. | |
A game menu containing buttons, toggles and images.
| void GameMenu::update | ( | const glm::vec2 & | screenResolution, |
| float | initialRatio | ||
| ) |
Update dimensions of element based on the current window size.
| screenResolution | the current window resolution |
| initialRatio | the window ratio used to describe the initial layout |