aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Transform.h
blob: f918115745e5d80083c128f7589735a2d7927ba3 (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
28
#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, Point, double, double);
	~Transform();
	int get_instances_max() const;
	//! Translation (shift)
	Point position;
	//! Rotation, in radians
	double rotation;
	//! Multiplication factor
	double scale;
};

} // namespace crepe