Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
|
#include <console.h>
Classes | |
struct | Message |
Public Member Functions | |
void | RenderMenu () override |
void | RenderWindow () override |
void | LogStatus (const String &message) |
void | LogWarning (const String &message) |
void | LogError (const String &message) |
void | Log (const String &message, const DirectX::XMFLOAT4 &color) |
void | Clear () |
Protected Member Functions | |
void | AddMessage (Message &message) |
Private Attributes | |
bool | new_message_added_ |
bool | auto_scroll_ |
bool | show_console_window_ |
RingBuffer< Message > | message_buffer_ |
Operates a console to which you can send messages.
This class operates your typical console window. It shows messages for you.
|
protected |
Adds a Message to the console.
[in] | message | The message to add. |
void blowbox::Console::Clear | ( | ) |
Clears all messages from the console.
void blowbox::Console::Log | ( | const String & | message, |
const DirectX::XMFLOAT4 & | color | ||
) |
Logs a message in the console.
[in] | message | The message to log. |
[in] | color | The color that the message should have. |
void blowbox::Console::LogError | ( | const String & | message | ) |
Logs an error message in the console.
[in] | message | The message to log. |
void blowbox::Console::LogStatus | ( | const String & | message | ) |
Logs a status message in the console.
[in] | message | The message to log. |
void blowbox::Console::LogWarning | ( | const String & | message | ) |
Logs a warning message in the console.
[in] | message | The message to log. |
|
overridevirtual |
Renders the menu for the Console.
Implements blowbox::DebugWindow.
|
overridevirtual |
Renders the actual window for the Console.
Implements blowbox::DebugWindow.
|
private |
Whether the console window should auto scroll to the newest message.
|
private |
All messages in the console.
|
private |
Whether a new message has been added.
|
private |
Whether the console window is shown.