Cnage include to follow new rule

This commit is contained in:
Nikola Petrov 2024-03-05 02:09:15 +01:00
parent e5f9e8d7f3
commit c3f4c17d6e
6 changed files with 12 additions and 6 deletions

View File

@ -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.
- Implement methods in the same order as declared in the corresponding header file.
## Include order
- Std
- external raylib
- local ( form inc dir )

View File

@ -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);

View File

@ -1,7 +1,7 @@
#include "raylib.h"
#include <cstdint>
#include <vector>
#include <list>
#include "raylib.h"
#define MAX_DEPTH 11

View File

@ -1,7 +1,7 @@
#include "raylib.h"
#include "raymath.h"
#include "Tree.hpp"
#include "Math.hpp"
#include <cmath>
int main(void)
{

View File

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

View File

@ -1,8 +1,8 @@
#include "Tree.hpp"
#include <cmath>
#include "raylib.h"
#include "raymath.h"
#include "Tree.hpp"
#include "Math.hpp"
#include <cmath>
// Public
Tree::Tree(int size)