This commit is contained in:
Ben Kyd
2025-07-02 20:41:20 +01:00
parent b25e5b3937
commit 83758c90b3
16 changed files with 36 additions and 23 deletions

View File

@@ -1,5 +1,8 @@
#include <Aeon/Aeon.hpp>
#include <Aeon/Core/Events.hpp>
#include <Aeon/Entity/CoreComponents/MaterialComponent.hpp>
#include <Aeon/Entity/CoreComponents/MeshComponent.hpp>
#include <Aeon/Entity/CoreComponents/Transform.hpp>
#include <Aeon/Entity/Entity.hpp>
#include <Aeon/Rendering/ImGui.hpp>
#include <iostream>
@@ -77,11 +80,12 @@ public:
ExampleGame()
: App({"Example"}, {"Game with AEON!"})
{
const auto entity = GetEntityRegistry().create();
EC::Entity entity = GetEntityRegistry().create();
GetEntityRegistry().emplace<EC::Transform>(entity, EC::Transform({0.0f, 0.0f, 0.0f}));
GetEntityRegistry().emplace<EC::MeshComponent>(entity, EC::MeshComponent {});
GetEntityRegistry().emplace<EC::MaterialComponent>(entity, EC::MaterialComponent {});
Level* level = new Level;
PushLayer((Core::GameLayer*)level);
DebugLayer debug;