Viewer done

This commit is contained in:
2025-02-06 01:05:44 +01:00
parent c8b68ae030
commit bba921a2c4
5 changed files with 157 additions and 13 deletions

View File

@@ -1,5 +1,14 @@
#include <vector>
#include "sql.hpp"
#include "values/DnaManager.hpp"
#include "canvas/Canvas.hpp"
enum DrawingStage{
setup,
drawTree,
drawBig,
done,
};
class Vapp
{
@@ -16,8 +25,20 @@ private:
sqlite3_stmt *get_gen_num;
std::vector<int64_t> ids;
int64_t gens = -1;
int selected_id = -1;
bool update_gen = false;
int selected_gen = -1;
bool enableAll = true;
int64_t selected_id = -1;
int selected_gen = -1;
DnaManagerData manager;
DrawingStage stageOfDrawing = DrawingStage::done;
Canvas canvas;
RenderTexture2D treeTexture;
int drawTreeIndex = -1;
RenderTexture2D bigTexture;
int drawX = 0;
int drawY = 0;
void setUpManager();
};