restructure and add server/client example
This commit is contained in:
30
shared/inc/canvas/BackGround.hpp
Normal file
30
shared/inc/canvas/BackGround.hpp
Normal 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;
|
||||
};
|
Reference in New Issue
Block a user