Add Canvas

Canvas contains the RenderTexture2D
contains the Tree
and now it's eazy to add more modules
This commit is contained in:
Nikola Petrov
2024-03-09 01:03:44 +01:00
parent 45422940ad
commit 611605550d
6 changed files with 68 additions and 40 deletions

View File

@@ -1,5 +1,5 @@
#include <vector>
#include "Tree.hpp"
#include "Canvas.hpp"
class App
{
@@ -15,7 +15,7 @@ public:
private:
int pos = 0;
int screenWidth, screenHeight;
std::vector<Tree> trees;
std::vector<Canvas> canvases;
Vector2 center;
float rotation = 0.0f;
Rectangle destB;