Add entity rotation

This commit is contained in:
2023-12-06 08:09:02 +01:00
parent ae1c21bdfc
commit 488dccfada
5 changed files with 37 additions and 16 deletions

View File

@@ -64,8 +64,9 @@ extern ECS_COMPONENT_DECLARE(SteeringOutput);
typedef struct TextureRegion {
Texture2D texture;
Rectangle rec;
bool flipX;
bool flipY;
f32 rotation;
bool flipX : 1;
bool flipY : 1;
} TextureRegion;
extern ECS_COMPONENT_DECLARE(TextureRegion);