21 lines
285 B
C++
21 lines
285 B
C++
#include <raylib.h>
|
|
#include "BackGround.hpp"
|
|
#include "Tree.hpp"
|
|
|
|
class Canvas
|
|
{
|
|
|
|
public:
|
|
Canvas() = default;
|
|
~Canvas() = default;
|
|
void init(int size);
|
|
void deinit();
|
|
void newGen(RenderTexture2D &target);
|
|
|
|
private:
|
|
BackGround backGround;
|
|
Tree tree;
|
|
|
|
Dna dna = {0};
|
|
};
|