|
OpenEnroth 39d87c6
|
An Overlay is a screen built in Immediate Mode GUI ( imgui ) which is displayed on top of any other ui and it's mainly used for debug purposes ( Console, Render Stats, Debug View Buttons, etc... ). More...
#include <OverlaySystem.h>
Public Member Functions | |
| OverlaySystem (Renderer &render, PlatformApplication &platformApplication) | |
| ~OverlaySystem () | |
| void | addOverlay (std::string_view name, std::unique_ptr< Overlay > overlay) |
| void | removeOverlay (std::string_view name) |
| bool | isEnabled () const |
| void | setEnabled (bool enable) |
| void | drawOverlays () |
Static Public Attributes | |
| static LogCategory | OverlayLogCategory |
Private Attributes | |
| std::unordered_map< TransparentString, std::unique_ptr< Overlay >, TransparentStringHash, TransparentStringEquals > | _overlays |
| Renderer & | _renderer |
| PlatformApplication & | _application |
| std::function< void()> | _unregisterDependencies |
| bool | _isEnabled {} |
An Overlay is a screen built in Immediate Mode GUI ( imgui ) which is displayed on top of any other ui and it's mainly used for debug purposes ( Console, Render Stats, Debug View Buttons, etc... ).
The Overlay System is the class responsible to keep track of all the registered Overlays and update them accordingly.
| OverlaySystem::OverlaySystem | ( | Renderer & | render, |
| PlatformApplication & | platformApplication | ||
| ) |
| OverlaySystem::~OverlaySystem | ( | ) |
| void OverlaySystem::addOverlay | ( | std::string_view | name, |
| std::unique_ptr< Overlay > | overlay | ||
| ) |
| void OverlaySystem::drawOverlays | ( | ) |
| bool OverlaySystem::isEnabled | ( | ) | const |
| void OverlaySystem::removeOverlay | ( | std::string_view | name | ) |
| void OverlaySystem::setEnabled | ( | bool | enable | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
static |