diff --git a/seika/math/se_math.c b/seika/math/se_math.c index e48ccd5..ab988c3 100644 --- a/seika/math/se_math.c +++ b/seika/math/se_math.c @@ -13,7 +13,7 @@ SEVector2 se_math_vec2_lerp(const SEVector2* v1, const SEVector2* v2, float t) { } // --- Rect2 --- // -bool se_rect2_does_rectangles_overlap(SERect2* sourceRect, SERect2* targetRect) { +bool se_rect2_does_rectangles_overlap(const SERect2* sourceRect, const SERect2* targetRect) { return (sourceRect->x + sourceRect->w >= targetRect->x) && (targetRect->x + targetRect->w >= sourceRect->x) && (sourceRect->y + sourceRect->h >= targetRect->y) && diff --git a/seika/math/se_math.h b/seika/math/se_math.h index 49b5056..22443ff 100644 --- a/seika/math/se_math.h +++ b/seika/math/se_math.h @@ -48,7 +48,7 @@ typedef struct SERect2 { float h; } SERect2; -bool se_rect2_does_rectangles_overlap(SERect2* sourceRect, SERect2* targetRect); +bool se_rect2_does_rectangles_overlap(const SERect2* sourceRect, const SERect2* targetRect); //--- SETransform2D ---// typedef struct SETransform2D { diff --git a/vcpkg.json b/vcpkg.json index 63a906b..8dbee4a 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -1,6 +1,6 @@ { "name": "seika", - "version": "0.0.2", + "version": "0.0.3", "dependencies": [ { "name": "sdl2",