24 lines
365 B
C++
24 lines
365 B
C++
#include <vector>
|
|
#include "Tree.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<Tree> trees;
|
|
Vector2 center;
|
|
float rotation = 0.0f;
|
|
Rectangle destB;
|
|
Rectangle destA;
|
|
};
|