|
dEngine
Simple 2D C++ game engine
|
Used to manage the UI of a game See the code example below for a quick reference on how to use the UI. More...
#include <UI.h>
Public Member Functions | |
| UI () | |
| Constructor. More... | |
| void | Load () |
| Load the UI. More... | |
| void | Render () |
| Render the UI. More... | |
| void | Update () |
| Render the UI. More... | |
| void | Push (UIWindow *window) |
| Push window to stack. More... | |
| void | Pop () |
| Pop a UI window from the stack. More... | |
Private Attributes | |
| std::vector< UIWindow * > | windows |
Used to manage the UI of a game See the code example below for a quick reference on how to use the UI.
| UI::UI | ( | ) |
Constructor.
Create a new UI
| void UI::Load | ( | ) |
| void UI::Push | ( | UIWindow * | window | ) |
Push window to stack.
Push a new UI window onto the stack
| window | The window to add to the stack |
| void UI::Render | ( | ) |
Render the UI.
Renders the UI to the screen. Called in the Render stage of the game and is rendered after all GameObjects and their components.
Referenced by dengine::Game::loop().
| void UI::Update | ( | ) |
Render the UI.
Calls the Update function for the UI. Called in the Update stage of the game and is ran before all GameObjects and their components.
Referenced by dengine::Game::loop().
1.8.13