3 #include "../../debug_ui.h"
58 ImVec2 window_location(box_x, box_y);
59 ImVec2 window_location_offset(box_x + 1.6, box_y + 1.0);
61 ImVec2 window_size(3000, 1000);
63 ImGui::SetNextWindowPos(window_location_offset);
64 ImGui::SetNextWindowSize(window_size);
65 ImGui::Begin(
"stats_shadow", &
show, window_size, 0.0f, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoInputs);
71 ImGui::Text(
"mouse pos: (%.1f,%.1f)", ImGui::GetIO().MousePos.x, ImGui::GetIO().MousePos.y);
75 ImGui::Text(
"%.3f ms/frame", 1000.0f / ImGui::GetIO().Framerate);
76 ImGui::Text(
"fps: %.1f FPS", ImGui::GetIO().Framerate);
81 DXGI_SWAP_CHAIN_DESC sd;
83 LPTSTR window_title = NULL;
84 GetWindowText(sd.OutputWindow, window_title, 255);
89 ImGui::Text(
" buffer_count: %s", std::to_string(sd.BufferCount).c_str());
91 ImGui::Text(
" format: %s", std::to_string(sd.BufferDesc.Format).c_str());
92 ImGui::Text(
" refresh_rate: %s/%s", std::to_string(sd.BufferDesc.RefreshRate.Denominator).c_str(), std::to_string(sd.BufferDesc.RefreshRate.Numerator).c_str());
93 ImGui::Text(
" scaling: %s", std::to_string(sd.BufferDesc.Scaling).c_str());
94 ImGui::Text(
" scanline_ordering: %s", std::to_string(sd.BufferDesc.ScanlineOrdering).c_str());
95 ImGui::Text(
" resolution: %sx%s", std::to_string(sd.BufferDesc.Height).c_str(), std::to_string(sd.BufferDesc.Width).c_str());
96 ImGui::Text(
" buffer_usage: %s", std::to_string(sd.BufferUsage).c_str());
97 ImGui::Text(
" flags: %s", std::to_string(sd.Flags).c_str());
100 ImGui::Text(
" count: %s", std::to_string(sd.SampleDesc.Count).c_str());
101 ImGui::Text(
" quality: %s", std::to_string(sd.SampleDesc.Quality).c_str());
102 ImGui::Text(
" swap_effect: %s", std::to_string(sd.SwapEffect).c_str());
103 ImGui::Text(
" windowed: %s", std::to_string(sd.Windowed).c_str());
109 ImGui::PopStyleColor();
113 ImGui::SetNextWindowPos(window_location);
114 ImGui::SetNextWindowSize(window_size);
115 ImGui::Begin(
"Example: Fixed Overlay", &
show, window_size, 0.0f, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoInputs);
120 ImGui::Text(
"mouse pos: (%.1f,%.1f)", ImGui::GetIO().MousePos.x, ImGui::GetIO().MousePos.y);
124 ImGui::Text(
"%.3f ms/frame", 1000.0f / ImGui::GetIO().Framerate);
125 ImGui::Text(
"fps: %.1f FPS", ImGui::GetIO().Framerate);
135 DXGI_SWAP_CHAIN_DESC sd;
137 LPTSTR window_title = NULL;
138 GetWindowText(sd.OutputWindow, window_title, 255);
143 ImGui::Text(
" buffer_count: %s", std::to_string(sd.BufferCount).c_str());
145 ImGui::Text(
" format: %s", std::to_string(sd.BufferDesc.Format).c_str());
146 ImGui::Text(
" refresh_rate: %s/%s", std::to_string(sd.BufferDesc.RefreshRate.Denominator).c_str(), std::to_string(sd.BufferDesc.RefreshRate.Numerator).c_str());
147 ImGui::Text(
" scaling: %s", std::to_string(sd.BufferDesc.Scaling).c_str());
148 ImGui::Text(
" scanline_ordering: %s", std::to_string(sd.BufferDesc.ScanlineOrdering).c_str());
149 ImGui::Text(
" resolution: %sx%s", std::to_string(sd.BufferDesc.Height).c_str(), std::to_string(sd.BufferDesc.Width).c_str());
150 ImGui::Text(
" buffer_usage: %s", std::to_string(sd.BufferUsage).c_str());
151 ImGui::Text(
" flags: %s", std::to_string(sd.Flags).c_str());
154 ImGui::Text(
" count: %s", std::to_string(sd.SampleDesc.Count).c_str());
155 ImGui::Text(
" quality: %s", std::to_string(sd.SampleDesc.Quality).c_str());
156 ImGui::Text(
" swap_effect: %s", std::to_string(sd.SwapEffect).c_str());
157 ImGui::Text(
" windowed: %s", std::to_string(sd.Windowed).c_str());