engine/include/components/transform.h

25 lines
410 B
C
Raw Normal View History

2023-05-01 12:55:49 +00:00
#ifndef ENGINE_INCLUDE_COMPONENTS_TRANSFORM_H_
#define ENGINE_INCLUDE_COMPONENTS_TRANSFORM_H_
2023-01-02 17:24:20 +00:00
#include <glm/gtc/quaternion.hpp>
#include <glm/mat4x4.hpp>
2023-05-01 12:55:49 +00:00
#include <glm/vec3.hpp>
2023-01-02 17:24:20 +00:00
#include <string>
namespace engine {
2023-05-01 12:55:49 +00:00
struct TransformComponent {
glm::vec3 position;
glm::quat rotation;
glm::vec3 scale;
glm::mat4 world_matrix;
2023-01-02 17:24:20 +00:00
2023-05-01 12:55:49 +00:00
std::string tag;
uint32_t parent;
};
2023-01-02 17:24:20 +00:00
2023-05-01 12:55:49 +00:00
} // namespace engine
2023-01-02 17:24:20 +00:00
2023-05-01 12:55:49 +00:00
#endif