blob: 4fa7e01e3c6a2d9ac4eb42980185de7bd25dd1d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include "config/types.h"
#include "persistence.h"
#include <glm/mat4x4.hpp>
#include <glm/vec3.hpp>
struct Mutation {
using Matrix = glm::mat4;
[[nodiscard]] Matrix getMatrix() const;
[[nodiscard]] Matrix getDeformationMatrix() const;
[[nodiscard]] Matrix getLocationMatrix() const;
[[nodiscard]] float relativeLevelOfDetail() const;
RelativePosition3D position {};
Rotation3D rotation {};
Scale3D scale {1};
protected:
bool persist(Persistence::PersistenceStore & store);
};
|