diff options
author | jaroWMR <jarorutjes07@gmail.com> | 2024-10-23 18:44:24 +0200 |
---|---|---|
committer | jaroWMR <jarorutjes07@gmail.com> | 2024-10-23 18:44:24 +0200 |
commit | 1b96c6e3c57b9d1dc5fb02cbd24b625d7f7f5b05 (patch) | |
tree | 2dfb9cbaf7cfc80ae5ab5536419af0e19994908f /src/crepe/api/Transform.h | |
parent | 0d2491e8619ec9012381ed3e39e85e37e0cb7765 (diff) |
moved transform
Diffstat (limited to 'src/crepe/api/Transform.h')
-rw-r--r-- | src/crepe/api/Transform.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/crepe/api/Transform.h b/src/crepe/api/Transform.h new file mode 100644 index 0000000..3e8d142 --- /dev/null +++ b/src/crepe/api/Transform.h @@ -0,0 +1,22 @@ +#pragma once + +#include "Component.h" + +namespace crepe { + +struct Position +{ + int x; + int y; +}; + + +class Transform : public Component { +public: + Transform(uint32_t gameObjectId,Position position, int rotation, int scale); + Position postion; + int rotation; + int scale; +}; + +} // namespace crepe |