summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRitabrata Das <[email protected]>2026-09-13 11:07:50 +0530
committerRitabrata Das <[email protected]>2026-09-13 11:07:50 +0530
commit6488c942e10c7685a1040f6c6ff74a534e72b95c (patch)
tree57bd9ca5fc7ec190829ab029a1aa9670249c7113
parent6b328d05c14477a84afec5d6ea5fa0de0c60dd5e (diff)
clangd complain
-rw-r--r--game/graphics.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/graphics.hpp b/game/graphics.hpp
index f6590cc..3329f8a 100644
--- a/game/graphics.hpp
+++ b/game/graphics.hpp
@@ -8,7 +8,7 @@
constexpr float TRANSITION_TIME = 1.5f; // in seconds
-Texture2D getCirno(GameState &gs)
+inline Texture2D getCirno(GameState &gs)
{
switch (gs.curExp) {
case NEUTRAL:
@@ -83,7 +83,7 @@ inline void DrawSceneChange(GameState &gs) {
float halfTime = gs.timeSinceSceneChange - (TRANSITION_TIME / 2);
float t2 = Clamp(halfTime / (TRANSITION_TIME / 2), 0.0f, 1.0f);
float a2 = 0.5f - 0.5f * cosf(t2 * PI);
-
+
DrawTextureV(getCirno(gs),
CIRNO_SPRITE_POSITION,
ColorAlpha(WHITE, a2));