aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Transform.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-05 18:48:46 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-05 18:48:46 +0100
commit3fe7400de095756362b999908fd2a2ba3b71a848 (patch)
tree8a6c6d4213fdab076a451f37e6471ca5965b2c8f /src/crepe/api/Transform.h
parentae6a103946e437ca85cc69c5fc2cbf68d35ffeae (diff)
merge #18
Diffstat (limited to 'src/crepe/api/Transform.h')
-rw-r--r--src/crepe/api/Transform.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/api/Transform.h b/src/crepe/api/Transform.h
index f918115..557061b 100644
--- a/src/crepe/api/Transform.h
+++ b/src/crepe/api/Transform.h
@@ -14,9 +14,9 @@ class Transform : public Component {
// works similar (or the same) as those found in GLSL?
public:
- Transform(uint32_t id, Point, double, double);
+ Transform(uint32_t id, const Point &, double, double);
~Transform();
- int get_instances_max() const;
+ virtual int get_instances_max() const { return 1; }
//! Translation (shift)
Point position;
//! Rotation, in radians