diff --git a/Readme.md b/Readme.md index a439b4c..b373310 100644 --- a/Readme.md +++ b/Readme.md @@ -17,4 +17,9 @@ - Header (.h) Files: - Declare public methods and attributes first, followed by private members. - Implementation (.cpp) Files: - - Implement methods in the same order as declared in the corresponding header file. \ No newline at end of file + - Implement methods in the same order as declared in the corresponding header file. + +## Include order + - Std + - external raylib + - local ( form inc dir ) \ No newline at end of file diff --git a/inc/Math.hpp b/inc/Math.hpp index d1a42d5..6a93abb 100644 --- a/inc/Math.hpp +++ b/inc/Math.hpp @@ -1,5 +1,4 @@ #include "raylib.h" -#include "raymath.h" Color ColorLerp(Color c1, Color c2, float amount); Rectangle CalculateRect(Vector2 center, float rotation, float width, float height); \ No newline at end of file diff --git a/inc/Tree.hpp b/inc/Tree.hpp index c90b0ec..aad1653 100644 --- a/inc/Tree.hpp +++ b/inc/Tree.hpp @@ -1,7 +1,7 @@ -#include "raylib.h" #include #include #include +#include "raylib.h" #define MAX_DEPTH 11 diff --git a/main.cpp b/main.cpp index 25b7ca9..b38e071 100644 --- a/main.cpp +++ b/main.cpp @@ -1,7 +1,7 @@ #include "raylib.h" +#include "raymath.h" #include "Tree.hpp" #include "Math.hpp" -#include int main(void) { diff --git a/src/Math.cpp b/src/Math.cpp index 87c4185..5a2966d 100644 --- a/src/Math.cpp +++ b/src/Math.cpp @@ -1,3 +1,5 @@ +#include +#include "raymath.h" #include "Math.hpp" Color ColorLerp(Color c1, Color c2, float amount) diff --git a/src/Tree.cpp b/src/Tree.cpp index f4d1ed0..f96904c 100644 --- a/src/Tree.cpp +++ b/src/Tree.cpp @@ -1,8 +1,8 @@ -#include "Tree.hpp" +#include #include "raylib.h" #include "raymath.h" +#include "Tree.hpp" #include "Math.hpp" -#include // Public Tree::Tree(int size)