Make Application template and responsible for modules init

This commit is contained in:
Lynix
2023-01-06 20:57:45 +01:00
committed by Jérôme Leclercq
parent 04bfa97579
commit 8db1c04568
6 changed files with 130 additions and 50 deletions

View File

@@ -1,5 +1,6 @@
// Sources pour https://github.com/NazaraEngine/NazaraEngine/wiki/(FR)-Tutoriel:-%5B01%5D-Hello-World
#include <Nazara/Core/Application.hpp>
#include <Nazara/Core/Systems.hpp>
#include <Nazara/Graphics.hpp>
#include <Nazara/Graphics/Components.hpp>
@@ -14,7 +15,7 @@
int main()
{
Nz::Modules<Nz::Graphics> nazara;
Nz::Application<Nz::Graphics> app;
entt::registry registry;
Nz::SystemGraph systemGraph(registry);