Skip to content

Commit

Permalink
Wrapping literal transform identity struct constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chukobyte committed Jan 5, 2024
1 parent 38c31cf commit 4ccb7e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seika/math/se_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ typedef struct SKATransform2D {
void ska_transform2d_mat4_to_transform(mat4 matrix, SKATransform2D* transform);
void ska_transform2d_transform_to_mat4(const SKATransform2D* transform, mat4 matrix);

#define SKA_TRANSFORM_IDENTITY (SKATransform2D){ \
#define SKA_TRANSFORM_IDENTITY SKA_STRUCT_LITERAL(SKATransform2D){ \
.position = SKA_VECTOR2_ZERO, \
.scale = SKA_VECTOR2_ONE, \
.rotation = 0.0f \
Expand All @@ -90,7 +90,7 @@ typedef struct SKATransformModel2D {

SKATransform2D ska_transform2d_model_convert_to_transform(SKATransformModel2D* transformModel2D);

#define SKA_TRANSFORM_MODEL_IDENTITY (SKATransformModel2D){ \
#define SKA_TRANSFORM_MODEL_IDENTITY SKA_STRUCT_LITERAL(SKATransformModel2D){ \
.position = SKA_VECTOR2_ZERO, \
.scale = SKA_VECTOR2_ONE, \
.rotation = 0.0f, \
Expand Down

0 comments on commit 4ccb7e2

Please sign in to comment.