Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
|
#include <debug_menu.h>
Classes | |
struct | CompareDebugWindowPriority |
Public Member Functions | |
void | RenderMenu () |
void | RenderWindows () |
void | AddDebugWindow (int priority, WeakPtr< DebugWindow > debug_window) |
Private Attributes | |
Vector< Pair< int, WeakPtr< DebugWindow > > > | debug_windows_ |
Manages all debug windows and operates the main menu bar.
DebugMenu manages all debug windows and operates the main menu bar. New DebugWindows should be added to this if they want to appear in the main menu bar.
void blowbox::DebugMenu::AddDebugWindow | ( | int | priority, |
WeakPtr< DebugWindow > | debug_window | ||
) |
Adds a debug window to the DebugMenu.
[in] | priority | The priority of the DebugWindow. This is an arbitrary number that you can define yourself. It influences the order in which the debug window menus are rendered. |
[in] | debug_window | The DebugWindow that should be added. |
void blowbox::DebugMenu::RenderMenu | ( | ) |
Renders the entire main menu bar.
void blowbox::DebugMenu::RenderWindows | ( | ) |
Renders all DebugWindows that have subscribed to the DebugMenu.
|
private |
All debug windows that have been added to the DebugMenu.