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,16 +0,0 @@
#ifndef AEON_ENTITY_CORECOMPONENTS_MESH_H_
#define AEON_ENTITY_CORECOMPONENTS_MESH_H_
#include <Aeon/Rendering/Material.hpp>
namespace EC
{
struct Material
{
MaterialHandle Handle;
};
} // namespace EC
#endif

View File

@@ -0,0 +1,16 @@
#ifndef AEON_ENTITY_CORECOMPONENTS_MATERIAL_H_
#define AEON_ENTITY_CORECOMPONENTS_MATERIAL_H_
#include <Aeon/Rendering/Material.hpp>
namespace EC
{
struct MaterialComponent
{
MaterialHandle Handle;
};
}; // namespace EC
#endif

View File

@@ -6,11 +6,11 @@
namespace EC namespace EC
{ {
struct Mesh struct MeshComponent
{ {
MeshHandle Handle; MeshHandle Handle;
}; };
} // namespace EC }; // namespace EC
#endif #endif

View File

@@ -1,9 +1,6 @@
#ifndef AEON_ENTITY_ENTITY_H_ #ifndef AEON_ENTITY_ENTITY_H_
#define AEON_ENTITY_ENTITY_H_ #define AEON_ENTITY_ENTITY_H_
#include <Aeon/Entity/CoreComponents/Material.hpp>
#include <Aeon/Entity/CoreComponents/Mesh.hpp>
#include <Aeon/Entity/CoreComponents/Transform.hpp>
#include <entt/entity/registry.hpp> #include <entt/entity/registry.hpp>
#include <entt/entt.hpp> #include <entt/entt.hpp>

View File

@@ -0,0 +1,2 @@
#ifndef AEON_RENDERING_RENDERPASS_H_

View File

@@ -0,0 +1,10 @@
#ifndef AEON_SCENE_H_
#define AEON_SCENE_H_
#include <Aeon/Includes.hpp>
class Scene
{
};
#endif

View File

@@ -1,5 +1,8 @@
#include <Aeon/Aeon.hpp> #include <Aeon/Aeon.hpp>
#include <Aeon/Core/Events.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/Entity/Entity.hpp>
#include <Aeon/Rendering/ImGui.hpp> #include <Aeon/Rendering/ImGui.hpp>
#include <iostream> #include <iostream>
@@ -77,11 +80,12 @@ public:
ExampleGame() ExampleGame()
: App({"Example"}, {"Game with AEON!"}) : 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::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; Level* level = new Level;
PushLayer((Core::GameLayer*)level); PushLayer((Core::GameLayer*)level);
DebugLayer debug; DebugLayer debug;