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

@ -2,16 +2,16 @@
#define RENDERER_H_
#include <glm/glm.hpp>
#include <entt/entity/registry.hpp>
#include "renderer/shader.h"
#include "ecs/entity.h"
// TODO: make static or singleton
class Renderer {
public:
Renderer(ecs::Entity& light, ecs::Entity& camera);
Renderer();
void RenderLight();
void RenderEntity(const ecs::Entity& entity);
void Render(entt::registry& registry);
void OnWindowResized(int w, int h);
private:
@ -20,9 +20,6 @@ private:
glm::mat4 m_model;
glm::mat4 m_proj;
glm::mat4 m_view;
ecs::Entity& m_light;
ecs::Entity& m_camera;
};
#endif // RENDERER_H_