restructure and add server/client example

This commit is contained in:
2025-01-24 10:34:04 +01:00
parent 729b475135
commit ec7b293bd5
30 changed files with 299 additions and 15 deletions

View File

@@ -0,0 +1,30 @@
#include <vector>
#include "values/Dna.hpp"
#include <raylib.h>
class BackGround
{
public:
BackGround() = default;
~BackGround() = default;
void init(int canvasSize);
void deinit();
void draw(Dna *dna);
private:
void drawStars();
void drawSun();
void drawMounten(size_t mountenSegments, int min, int max, Color color, float scale);
int getColorSet();
int getTime();
Dna *m_dna;
uint128 mountenSeed;
uint128 starSeed;
int canvasSize = 0;
};