engine/include/components/transform.h

27 lines
429 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
2023-07-04 16:08:28 +00:00
#include <string>
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
namespace engine {
2023-05-01 12:55:49 +00:00
struct TransformComponent {
glm::mat4 world_matrix;
2023-05-01 12:55:49 +00:00
glm::quat rotation;
glm::vec3 position;
2023-05-01 12:55:49 +00:00
glm::vec3 scale;
std::string tag;
uint32_t parent;
bool is_static;
2023-05-01 12:55:49 +00:00
};
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