2022-09-04 00:31:10 +00:00
|
|
|
#pragma once
|
|
|
|
|
2022-09-07 09:02:01 +00:00
|
|
|
#include "engine_api.h"
|
2022-09-04 00:31:10 +00:00
|
|
|
|
|
|
|
#include <glm/mat4x4.hpp>
|
|
|
|
#include <glm/vec3.hpp>
|
|
|
|
#include <glm/ext/quaternion_float.hpp>
|
|
|
|
|
2022-10-06 10:30:44 +00:00
|
|
|
namespace engine {
|
2022-09-04 00:31:10 +00:00
|
|
|
|
2022-10-06 10:30:44 +00:00
|
|
|
struct ENGINE_API Transform {
|
2022-09-04 00:31:10 +00:00
|
|
|
|
2022-10-06 10:30:44 +00:00
|
|
|
// Scale, rotate (XYZ), translate
|
2022-09-04 00:31:10 +00:00
|
|
|
|
2022-10-06 10:30:44 +00:00
|
|
|
glm::vec3 position{ 0.0f };
|
|
|
|
glm::quat rotation{};
|
|
|
|
glm::vec3 scale{ 1.0f };
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|