Bug Fix + Modification ImGui
FIX : Bug de FPS diviser par 2 corrigé ~ Le model de plane.txt a été changé par celui des cube pour le model de base + Nouvelle fonction qui combine les widget pour les afficher en une ligne dans le systemclass.cpp
This commit is contained in:
@@ -154,4 +154,29 @@ void imguiManager::WidgetTerrainWindow(ApplicationClass* app)
|
||||
}
|
||||
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
void imguiManager::ImGuiWidgetRenderer(ApplicationClass* app)
|
||||
{
|
||||
// Start the Dear ImGui frame
|
||||
NewFrame();
|
||||
|
||||
//ImGui Widget
|
||||
ImGui::Begin("Khaotic Engine", NULL);
|
||||
|
||||
float speed = app->GetSpeed();
|
||||
WidgetSpeedSlider(&speed);
|
||||
app->SetSpeed(speed);
|
||||
WidgetButton();
|
||||
WidgetFPS();
|
||||
WidgetAddObject(app);
|
||||
WidgetObjectWindow(app);
|
||||
WidgetTerrainWindow(app);
|
||||
|
||||
ImGui::End();
|
||||
|
||||
//render imgui
|
||||
Render();
|
||||
|
||||
app->GetDirect3D()->m_swapChain->Present(0, NULL);
|
||||
}
|
||||
Reference in New Issue
Block a user