Basic Entity Components implementation
This commit is contained in:
27
BarinkEngine/src/Scene/Components.h
Normal file
27
BarinkEngine/src/Scene/Components.h
Normal 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;
|
||||
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user