Cnage include to follow new rule
This commit is contained in:
parent
e5f9e8d7f3
commit
c3f4c17d6e
@ -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 )
|
@ -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);
|
@ -1,7 +1,7 @@
|
||||
#include "raylib.h"
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
#include <list>
|
||||
#include "raylib.h"
|
||||
|
||||
#define MAX_DEPTH 11
|
||||
|
||||
|
2
main.cpp
2
main.cpp
@ -1,7 +1,7 @@
|
||||
#include "raylib.h"
|
||||
#include "raymath.h"
|
||||
#include "Tree.hpp"
|
||||
#include "Math.hpp"
|
||||
#include <cmath>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include <cmath>
|
||||
#include "raymath.h"
|
||||
#include "Math.hpp"
|
||||
|
||||
Color ColorLerp(Color c1, Color c2, float amount)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user