add imgui support
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user