treender/inc/Canvas.hpp
Nikola Petrov e6f102266c Add BackGround
add stary night
2024-03-09 17:18:17 +01:00

21 lines
321 B
C++

#include "raylib.h"
#include "BackGround.hpp"
#include "Tree.hpp"
class Canvas
{
public:
Canvas() = default;
~Canvas() = default;
void init(int size);
void newGen();
void draw(Rectangle dest, float rotation);
void deinit();
private:
BackGround backGround;
Tree tree;
RenderTexture2D target = {0};
};