add imgui support

This commit is contained in:
2024-08-07 15:01:42 +02:00
parent e0d4dd053f
commit 2df849b63e
9 changed files with 186 additions and 5 deletions

View File

@@ -4,14 +4,17 @@
#include <Nazara/Physics3D/Physics3D.hpp>
#include <Nazara/Platform/WindowingAppComponent.hpp>
#include <Nazara/Widgets/Widgets.hpp>
#include <NazaraImgui/NazaraImgui.hpp>
#include <client/ClientApp.h>
#include <client/ImGuiAppComponent.h>
int main(int argc, char** argv) {
Nz::Application<Nz::Graphics, Nz::Physics3D, Nz::Widgets, Nz::TextRenderer> app(argc, argv);
Nz::Application<Nz::Graphics, Nz::Physics3D, Nz::Widgets, Nz::TextRenderer, Nz::Imgui> app(argc, argv);
app.AddComponent<Nz::EntitySystemAppComponent>();
app.AddComponent<Nz::WindowingAppComponent>();
app.AddComponent<blitz::client::ClientApp>();
auto& client = app.AddComponent<blitz::client::ClientApp>();
app.AddComponent<blitz::client::ImGuiAppComponent>(*client.GetWindow());
return app.Run();
}