Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
console.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../../debug_ui.h"
4 
6 
8 {
13  {
14  private:
15  char input_buffer[256];
16 
17  public:
18  void Draw()
19  {
20  if (show)
21  {
22  if (ImGui::Begin("Console", &show))
23  {
24  ImGui::InputText("", input_buffer, 256);
25 
26  ImGui::SameLine();
27 
28  if (ImGui::Button("Run Command"))
29  {
31  }
32  }
33  ImGui::End();
34  }
35  }
36  };
37 }
Blam::DebugUI::Windows::ImGuiConsole::Draw
void Draw()
Draws the contents of the group.
Definition: console.hpp:18
console.h
Blam::Resources::Console::RunCommandLine
BLAM HRESULT RunCommandLine(std::string command_line)
Executed the provided string as a console command.
Definition: console.cpp:204
Blam::DebugUI::ImGUIDrawingGroup::show
bool show
Controls whether or not the group should be shown. May not be used in all groups.
Definition: debug_ui.h:362
Blam::DebugUI::Windows::ImGuiConsole
Class for the Director debug utility.
Definition: console.hpp:12
Blam::DebugUI::ImGUIDrawingGroup
Class representing an ImGUI drawing group/draw list item.
Definition: debug_ui.h:359
Blam::DebugUI::Windows
Legacy namespace to contain data for the legacy ImGUI console.
Definition: debug_ui.h:434