Nikola Petrov 611605550d Add Canvas
Canvas contains the RenderTexture2D
contains the Tree
and now it's eazy to add more modules
2024-03-09 01:03:44 +01:00

24 lines
372 B
C++

#include <vector>
#include "Canvas.hpp"
class App
{
public:
App() = default;
~App() = default;
void init(int screenWidth, int screenHeight);
void update();
void draw();
void deinit();
private:
int pos = 0;
int screenWidth, screenHeight;
std::vector<Canvas> canvases;
Vector2 center;
float rotation = 0.0f;
Rectangle destB;
Rectangle destA;
};