aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Transform.h
blob: c69ec6143ef56abc4c9c8a102467b77b374b30b7 (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::api {

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, Point &, double, double);
	~Transform();
	//! Translation (shift)
	Point position;
	//! Rotation, in radians
	double rotation;
	//! Multiplication factor
	double scale;
};

} // namespace crepe::api