From c11135c5c4b4752870d3548d418745a6f59cd893 Mon Sep 17 00:00:00 2001 From: Nikola Petrov Date: Tue, 5 Mar 2024 14:18:19 +0100 Subject: [PATCH] Fix include so it compiles --- Readme.md | 4 ++-- main.cpp | 1 + src/Math.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Readme.md b/Readme.md index b373310..cfaa8b7 100644 --- a/Readme.md +++ b/Readme.md @@ -21,5 +21,5 @@ ## Include order - Std - - external raylib - - local ( form inc dir ) \ No newline at end of file + - local ( form inc dir ) + - external raylib \ No newline at end of file diff --git a/main.cpp b/main.cpp index b38e071..fc7a2a6 100644 --- a/main.cpp +++ b/main.cpp @@ -31,6 +31,7 @@ int main(void) { int mouseX = GetMouseX(); center.x = mouseX; + center.y = GetMouseY(); float l = (float)mouseX / screenWidth; rotation = Lerp(45.0f, -45.0f, l); dest = CalculateRect(center, rotation, screenWidth, screenWidth); diff --git a/src/Math.cpp b/src/Math.cpp index 5a2966d..2ea10f0 100644 --- a/src/Math.cpp +++ b/src/Math.cpp @@ -1,6 +1,6 @@ #include -#include "raymath.h" #include "Math.hpp" +#include "raymath.h" Color ColorLerp(Color c1, Color c2, float amount) {