blob: d416088a8bea14e7288e9c4bcab25dcd8c481857 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
#include <cstdint>
#include "api/Point.h"
#include "Component.h"
namespace crepe {
class Transform : public Component {
// FIXME: What's the difference between the `Point` and `Position`
// classes/structs? How about we replace both with a universal `Vec2` that
// works similar (or the same) as those found in GLSL?
public:
Transform(uint32_t id, const Point &, double, double);
~Transform();
//! Translation (shift)
Point position;
//! Rotation, in radians
double rotation;
//! Multiplication factor
double scale;
};
} // namespace crepe
|