engine/include/transform.hpp

21 lines
307 B
C++
Raw Normal View History

#pragma once
2022-09-07 09:02:01 +00:00
#include "engine_api.h"
#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-10-06 10:30:44 +00:00
struct ENGINE_API Transform {
2022-10-06 10:30:44 +00:00
// Scale, rotate (XYZ), translate
2022-10-06 10:30:44 +00:00
glm::vec3 position{ 0.0f };
glm::quat rotation{};
glm::vec3 scale{ 1.0f };
};
}