#include #include #include #include #define MAX_DEPTH 11 struct Branch { Color color; uint8_t numOfBranches; float lenghthRatio; }; struct DrawArgs { Vector2 start; float angleDeg; float lenghth; int dep; }; class Tree { public: Tree() = default; ~Tree() = default; void init(int size); void newGen(); private: int size = 0; Vector2 start = {0}; std::vector branches; std::list draw_calls; void generateBranches(); void drawTree(); void drawBranch(); Vector2 drawLine(); };