Nikola Petrov d7afa1afc9 Extract RenderTexture from Canvas
For easyer managment of texures and potential buffers
2024-08-12 22:39:52 +02:00

19 lines
272 B
C++

#include "canvas/Canvas.hpp"
void Canvas::init(int size)
{
backGround.init(size);
tree.init(size);
}
void Canvas::newGen(RenderTexture2D& target)
{
BeginTextureMode(target);
ClearBackground(WHITE);
backGround.newGen();
tree.newGen();
EndTextureMode();
}