Fix include so it compiles

This commit is contained in:
Nikola Petrov 2024-03-05 14:18:19 +01:00
parent c3f4c17d6e
commit c11135c5c4
3 changed files with 4 additions and 3 deletions

View File

@ -21,5 +21,5 @@
## Include order ## Include order
- Std - Std
- external raylib - local ( form inc dir )
- local ( form inc dir ) - external raylib

View File

@ -31,6 +31,7 @@ int main(void)
{ {
int mouseX = GetMouseX(); int mouseX = GetMouseX();
center.x = mouseX; center.x = mouseX;
center.y = GetMouseY();
float l = (float)mouseX / screenWidth; float l = (float)mouseX / screenWidth;
rotation = Lerp(45.0f, -45.0f, l); rotation = Lerp(45.0f, -45.0f, l);
dest = CalculateRect(center, rotation, screenWidth, screenWidth); dest = CalculateRect(center, rotation, screenWidth, screenWidth);

View File

@ -1,6 +1,6 @@
#include <cmath> #include <cmath>
#include "raymath.h"
#include "Math.hpp" #include "Math.hpp"
#include "raymath.h"
Color ColorLerp(Color c1, Color c2, float amount) Color ColorLerp(Color c1, Color c2, float amount)
{ {