-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdebug_ui.cpp
More file actions
51 lines (42 loc) · 940 Bytes
/
Copy pathdebug_ui.cpp
File metadata and controls
51 lines (42 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include "debug_ui.h"
#include "debug_params.h"
#include "../framework/imgui/imgui.h"
#include "../framework/imgui/imgui_impl_dx11.h"
#include "../framework/imgui/imgui_impl_win32.h"
#include "../framework/keyboard.h"
#include "../framework/camera.h"
#include "gamepad.h"
#include "scene.h"
#include "result.h"
#include "light_game.h"
#include "game_ui.h"
#include "game.h"
static bool s_IsOpen = true;
void DebugUI_Draw()
{
#ifdef _DEBUG
ImGui_ImplDX11_NewFrame();
ImGui_ImplWin32_NewFrame();
ImGui::NewFrame();
/*ImGui::SetNextWindowSize(ImVec2(300, 300), ImGuiCond_FirstUseEver);
ImGui::Begin("UI",&s_IsOpen);
{
}
ImGui::End();*/
GameLight::Draw();
if (GetScene() == SCENE_RESULT)
{
Result_DebugUIDraw();
}
if (GetScene() == SCENE_GAME)
{
Game_DebugUIDraw();
}
ImGui::Render();
ImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData());
#endif
}
bool DebugUI_IsOpen()
{
return s_IsOpen;
}