 |
Blamite Game Engine - blam!
00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
3 #include "../../debug_ui.h"
35 ImGui::OpenPopup(
" SOMEBODY PULL A NUKE");
36 if (ImGui::BeginPopupModal(
" SOMEBODY PULL A NUKE", NULL, ImGuiWindowFlags_AlwaysAutoResize))
38 ImGui::Text(
"Are you sure you want to crash the engine?\n\n");
41 if (ImGui::Button(
"Yes", ImVec2(120, 0))) {
BLAM_ASSERTM(0,
"User manually invoked the crash."); }
43 if (ImGui::Button(
"No", ImVec2(120, 0))) { ImGui::CloseCurrentPopup();
show =
false; }
~CrashTest()
Empty destructor.
Definition: crash_test.hpp:25
Class for the crash test dialog.
Definition: crash_test.hpp:14
CrashTest()
Empty constructor.
Definition: crash_test.hpp:20
bool show
Controls whether or not the group should be shown. May not be used in all groups.
Definition: debug_ui.h:362
Class representing an ImGUI drawing group/draw list item.
Definition: debug_ui.h:359
#define BLAM_ASSERTM(x, msg)
Invokes an engine assertion, with an optional message.
Definition: crash.h:26
Legacy namespace to contain data for the legacy ImGUI console.
Definition: debug_ui.h:434
@ Text
Master text object that wraps around both BitmapText and DWText.
Definition: render_stack.h:73
void Draw()
Prompts the user for a confirmation, and invokes an assertion failure if confirmed.
Definition: crash_test.hpp:30