20 lines
315 B
C++
20 lines
315 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, Dna *dna);
|
|
bool tick(RenderTexture2D &target);
|
|
|
|
private:
|
|
BackGround backGround;
|
|
Tree tree;
|
|
};
|