diff --git a/seika/math/se_math.h b/seika/math/se_math.h index bc30fa1..425f091 100644 --- a/seika/math/se_math.h +++ b/seika/math/se_math.h @@ -20,6 +20,7 @@ typedef struct SKAVector2 { } SKAVector2; #define SKA_VECTOR2_ZERO (SKAVector2){ 0.0f, 0.0f } +#define SKA_VECTOR2_ONE (SKAVector2){ 1.0f, 1.0f } #define SKA_VECTOR2_LEFT (SKAVector2){ -1.0f, 0.0f } #define SKA_VECTOR2_RIGHT (SKAVector2){ 1.0f, 0.0f } #define SKA_VECTOR2_UP (SKAVector2){ 0.0f, -1.0f } @@ -67,6 +68,12 @@ typedef struct SKATransform2D { float rotation; // degrees } SKATransform2D; +#define SKA_TRANSFORM_IDENTITY (SKATransform2D){ \ + .position = SKA_VECTOR2_ZERO, \ + .scale = SKA_VECTOR2_ONE, \ + .rotation = 0.0f \ +} + typedef struct SKATransformModel2D { SKAVector2 position; SKAVector2 scale; @@ -76,6 +83,14 @@ typedef struct SKATransformModel2D { mat4 model; } SKATransformModel2D; +#define SKA_TRANSFORM_MODEL_IDENTITY (SKATransformModel2D){ \ + .position = SKA_VECTOR2_ZERO, \ + .scale = SKA_VECTOR2_ONE, \ + .rotation = 0.0f, \ + .zIndex = 0, \ + .scaleSign = SKA_VECTOR2_ONE \ +} + // --- SKAVector3 --- // typedef struct SKAVector3 { float x; diff --git a/vcpkg.json b/vcpkg.json index 6f75a71..5b3b02d 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -1,6 +1,6 @@ { "name": "seika", - "version": "0.0.17", + "version": "0.0.18", "dependencies": [ { "name": "sdl2",