commit
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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
|
|
||||||
16
Aeon/Entity/CoreComponents/MaterialComponent.hpp
Normal file
16
Aeon/Entity/CoreComponents/MaterialComponent.hpp
Normal 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
|
||||||
@@ -6,11 +6,11 @@
|
|||||||
namespace EC
|
namespace EC
|
||||||
{
|
{
|
||||||
|
|
||||||
struct Mesh
|
struct MeshComponent
|
||||||
{
|
{
|
||||||
MeshHandle Handle;
|
MeshHandle Handle;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace EC
|
}; // namespace EC
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
2
Aeon/Rendering/RenderPass.hpp
Normal file
2
Aeon/Rendering/RenderPass.hpp
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
#ifndef AEON_RENDERING_RENDERPASS_H_
|
||||||
|
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
#ifndef AEON_SCENE_H_
|
||||||
|
#define AEON_SCENE_H_
|
||||||
|
|
||||||
|
#include <Aeon/Includes.hpp>
|
||||||
|
|
||||||
|
class Scene
|
||||||
|
{
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user