Basic Entity Components implementation

This commit is contained in:
2022-10-23 00:14:47 +02:00
parent b359a940ba
commit 7458254b2d
40 changed files with 160 additions and 344 deletions

View File

@ -0,0 +1,27 @@
#pragma once
#include <glm/glm.hpp>
namespace BarinkEngine {
struct TransformComponent {
glm::mat4& transform = glm::mat4(1.0f);
};
struct CameraComponent {
glm::mat4& view;
};
struct Render3DComponent {
unsigned int VAO;
unsigned int IBO;
};
struct Render2DComponent {
glm::vec3 Colour;
};
};