Minor Update - ImGui Render Tweak

[FEAT] :

~ Modification de la chaine de rendu dans la method Frame()

~ Modification de l'interface de lights
This commit is contained in:
2024-04-21 21:57:11 +02:00
parent 25f05fe217
commit 7ef81b9c91
5 changed files with 60 additions and 18 deletions

View File

@@ -254,8 +254,6 @@ bool imguiManager::ImGuiWidgetRenderer(ApplicationClass* app)
//render imgui
Render();
app->GetDirect3D()->m_swapChain->Present(0, NULL);
return true;
}
@@ -263,6 +261,12 @@ void imguiManager::WidgetLightWindow(ApplicationClass* app)
{
ImGui::Begin("Light", &showLightWindow);
int index = 0;
// add light button
if (ImGui::Button("Add Light"))
{
app->AddLight();
}
for(auto& light : app->GetLights())
{
std::string headerName = "Light " + std::to_string(index);