Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
Classes | Public Member Functions | Private Attributes | List of all members
blowbox::DebugMenu Class Reference

#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_
 

Detailed Description

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.

Member Function Documentation

void blowbox::DebugMenu::AddDebugWindow ( int  priority,
WeakPtr< DebugWindow debug_window 
)

Adds a debug window to the DebugMenu.

Parameters
[in]priorityThe 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_windowThe 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.

Member Data Documentation

Vector<Pair<int, WeakPtr<DebugWindow> > > blowbox::DebugMenu::debug_windows_
private

All debug windows that have been added to the DebugMenu.


The documentation for this class was generated from the following files: