2024-04-18 06:04:13 +02:00

28 lines
437 B
C++

#include <vector>
#include "canvas/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;
float rotation = 0.0f;
Rectangle destB;
Rectangle destA;
Vector2 mouseStart;
float len;
float ofset;
bool validHit = false;
};