Timing
This commit is contained in:
@@ -13,7 +13,6 @@ public:
|
||||
void newGen(RenderTexture2D &target, Dna *dna);
|
||||
bool tick(RenderTexture2D &target);
|
||||
|
||||
private:
|
||||
BackGround backGround;
|
||||
Tree tree;
|
||||
};
|
||||
|
||||
@@ -23,6 +23,7 @@ public:
|
||||
void init(int size);
|
||||
void draw(Dna *dna);
|
||||
bool tick();
|
||||
uint64_t circles;
|
||||
|
||||
private:
|
||||
Dna *m_dna;
|
||||
@@ -34,7 +35,8 @@ private:
|
||||
|
||||
void calculateBranch();
|
||||
|
||||
void drawBranch(Vector2 startPoint, Vector2 endPoint, Color startColor, Color endColor, float startThickness, float endThickness);
|
||||
void drawBranch_rlTriangle(Vector2 startPoint, Vector2 endPoint, Color startColor, Color endColor, float startThickness, float endThickness, float length);
|
||||
void drawBranch_circles(Vector2 startPoint, Vector2 endPoint, Color startColor, Color endColor, float startThickness, float endThickness, float length);
|
||||
inline size_t getNumOfBranches(int dep);
|
||||
inline Color getStartColor(DrawArgs &arg);
|
||||
inline Color getEndColor(int dep, Color &start);
|
||||
|
||||
Reference in New Issue
Block a user