 |
Blamite Game Engine - blam!
00272.10.26.20.0001.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
3 #include "../../debug_ui.h"
16 bool show_another_window =
false;
17 bool show_test_window =
false;
37 return &show_test_window;
53 static float f = 0.0f;
55 ImGui::SliderFloat(
"float", &f, 0.0f, 1.0f);
66 ImGui::ColorEdit3(
"clear color", (
float*)&clear_col_imgui);
68 BlamColor new_clear_color =
BlamColor(clear_col_imgui.x * 255.0f, clear_col_imgui.y * 255.0f, clear_col_imgui.z * 255.0f, clear_col_imgui.w * 255.0f);
73 if (ImGui::Button(
"Test Window")) show_test_window ^= 1;
76 if (ImGui::Button(
"Another Window")) show_another_window ^= 1;
79 ImGui::Text(
"Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate);
83 if (show_another_window)
85 ImGui::SetNextWindowSize(ImVec2(200, 100));
86 ImGui::Begin(
"Another Window", &show_another_window);
96 ImGui::ShowDemoWindow(&show_test_window);
BLAM ImVec4 * GetClearColor()
Retrieves the current color used to clear the render target.
Definition: render_manage.cpp:613
bool * ShowTestWindow()
Retrieves whether or not the window should be drawn.
Definition: dx11_window.hpp:35
BLAM BlamRenderingEngine GetCurrentRenderingEngine()
Retrieves the current rendering engine being used.
Definition: rendering_abstraction.cpp:81
Class for the default ImGUI DX11 sample window.
Definition: dx11_window.hpp:13
BlamColor * clear_color
Definition: opengl.cpp:17
@ devtools_bar
Definition: debug_ui.h:363
BLAM BlamColor * GetGlobalAsColor(std::string name)
Retrieves a global's value as a BlamColor.
Definition: globals.cpp:411
bool show
Controls whether or not the group should be shown. May not be used in all groups.
Definition: debug_ui.h:442
void Draw()
Draws the window, as well as the demo window and the "Another Window" if they are enabled.
Definition: dx11_window.hpp:43
Class representing an ImGUI drawing group/draw list item.
Definition: debug_ui.h:409
float GetBlueAsFloat()
Gets the color's red value as a float, between 0 and 1.
Definition: globals.h:87
DirectX11Window()
Unused constructor.
Definition: dx11_window.hpp:23
@ DirectX11
Definition: rendering.h:26
float GetRedAsFloat()
Gets the color's red value as a float, between 0 and 1.
Definition: globals.h:67
float GetGreenAsFloat()
Gets the color's red value as a float, between 0 and 1.
Definition: globals.h:77
Legacy namespace to contain data for the legacy ImGUI console.
Definition: debug_ui.h:494
float GetAlphaAsFloat()
Gets the color's red value as a float, between 0 and 1.
Definition: globals.h:97
@ Text
Master text object that wraps around both BitmapText and DWText.
Definition: render_stack.h:73
Structure representing a color.
Definition: globals.h:20
~DirectX11Window()
Unused destructor.
Definition: dx11_window.hpp:28
BLAM bool * RenderTargetClearing()
Retrieves whether or not to enable render target clearing.
Definition: render_manage.cpp:608
#define duigvs(x)
Macro for Blam::DebugUI::GetVisibility().
Definition: debug_ui.h:20
BLAM GvarUpdateResult UpdateGlobal(std::string name, std::string new_value)
Updates the value of a String global.
Definition: globals.cpp:570