Extract RenderTexture from Canvas
For easyer managment of texures and potential buffers
This commit is contained in:
@@ -9,12 +9,9 @@ public:
|
||||
Canvas() = default;
|
||||
~Canvas() = default;
|
||||
void init(int size);
|
||||
void newGen();
|
||||
void draw(Rectangle dest, float rotation);
|
||||
void deinit();
|
||||
void newGen(RenderTexture2D& target);
|
||||
|
||||
private:
|
||||
BackGround backGround;
|
||||
Tree tree;
|
||||
RenderTexture2D target = {0};
|
||||
};
|
||||
|
Reference in New Issue
Block a user