feat: entt library

This commit is contained in:
2025-10-08 18:17:47 +02:00
parent 4e86d92987
commit 99f5cd3715
15 changed files with 129 additions and 143 deletions

View File

@ -0,0 +1,6 @@
#ifndef COMPONENTS_PLAYER_H_
#define COMPONENTS_PLAYER_H_
struct camera {};
#endif // COMPONENTS_PLAYER_H_

View File

@ -0,0 +1,6 @@
#ifndef COMPONENTS_LIGHT_H_
#define COMPONENTS_LIGHT_H_
struct light {};
#endif // COMPONENTS_LIGHT_H_

11
include/components/mesh.h Normal file
View File

@ -0,0 +1,11 @@
#ifndef COMPONENTS_MESH_H_
#define COMPONENTS_MESH_H_
#include <memory>
#include "renderer/wavefront.h"
struct mesh {
std::unique_ptr<Object> object;
};
#endif // COMPONENTS_MESH_H_

View File

@ -0,0 +1,12 @@
#ifndef COMPONENTS_TRANSFORM_H_
#define COMPONENTS_TRANSFORM_H_
#include <glm/glm.hpp>
struct transform {
glm::vec3 position;
glm::vec3 rotation;
glm::vec3 scale;
};
#endif // COMPONENTS_TRANSFORM_H_