MCPcopy Create free account
hub / github.com/aliasIsolation/aliasIsolation / DrawMenu

Method DrawMenu

src/dll/menu.cpp:247–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247void Menu::DrawMenu()
248{
249 if (g_menuInitialised && g_showMenu)
250 {
251 // Feed inputs to dear imgui, start new frame.
252 ImGui_ImplDX11_NewFrame();
253 ImGui_ImplWin32_NewFrame();
254 ImGui::NewFrame();
255
256#ifdef ALIASISOLATION_ENABLE_PROFILER
257 {
258 ImGui::SetNextWindowSize(ImVec2(300, 300), ImGuiCond_FirstUseEver);
259 ImGui::Begin("Alias Isolation - Profiler", NULL,
260 ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove |
261 ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse |
262 ImGuiWindowFlags_NoBackground | ImGuiWindowFlags_NoInputs);
263#ifdef ALIASISOLATION_NO_SMAA_JITTER_ADD
264 ImGui::TextColored(ImVec4(255, 0, 0, 1), "No SMAA jitter calc.");
265#endif
266#ifdef ALIASISOLATION_NO_JITTER_REMOVE
267 ImGui::TextColored(ImVec4(255, 0, 0, 1), "No jitter removal");
268#endif
269#ifdef ALIASISOLATION_NO_JITTER_ADD
270 ImGui::TextColored(ImVec4(255, 0, 0, 1), "No jitter calculation");
271#endif
272#ifdef ALIASISOLATION_NO_RGBM_VS
273 ImGui::TextColored(ImVec4(255, 0, 0, 1), "No RGBM vertex shader");
274#endif
275#ifdef ALIASISOLATION_NO_SMAA_VS
276 ImGui::TextColored(ImVec4(255, 0, 0, 1), "No SMAA vertex shader");
277#endif
278#ifdef ALIASISOLATION_NO_VS_OVERRIDES
279 ImGui::TextColored(ImVec4(255, 0, 0, 1), "No vertex shader overrides");
280#endif
281#ifdef ALIASISOLATION_NO_PS_OVERRIDES
282 ImGui::TextColored(ImVec4(255, 0, 0, 1), "No pixel shader overrides");
283#endif
284#ifdef ALIASISOLATION_NO_TAA_PASS
285 ImGui::TextColored(ImVec4(255, 0, 0, 1), "No TAA pass");
286#endif
287#ifdef ALIASISOLATION_NO_CA_PASS
288 ImGui::TextColored(ImVec4(255, 0, 0, 1), "No CA pass");
289#endif
290 if (!g_shaderHooksEnabled)
291 {
292 ImGui::TextColored(ImVec4(255, 0, 0, 1), "Hooks disabled");
293 }
294 else
295 {
296 ImGui::TextColored(ImVec4(255, 170, 0, 1), g_profilerStats.c_str());
297 }
298 ImGui::End();
299 }
300#endif // ALIASISOLATION_ENABLE_PROFILER
301
302 static bool aliasIsolation_menu_showAboutWindow = false;
303
304 if (aliasIsolation_menu_showAboutWindow)

Callers

nothing calls this directly

Calls 1

saveSettingsFunction · 0.85

Tested by

no test coverage detected