Add DNA to background
This commit is contained in:
27
inc/values/Dna.hpp
Normal file
27
inc/values/Dna.hpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#include <cinttypes>
|
||||
|
||||
struct uint128
|
||||
{
|
||||
uint32_t a;
|
||||
uint32_t b;
|
||||
uint32_t c;
|
||||
uint32_t d;
|
||||
};
|
||||
|
||||
struct Moon
|
||||
{
|
||||
float x;
|
||||
float y;
|
||||
float size;
|
||||
};
|
||||
|
||||
struct Dna
|
||||
{
|
||||
Moon moon;
|
||||
int colorSet;
|
||||
int time;
|
||||
uint128 mountenSeed;
|
||||
uint128 starSeed;
|
||||
};
|
||||
|
||||
Dna newDna();
|
@@ -1,8 +1,13 @@
|
||||
#include <inttypes.h>
|
||||
|
||||
struct uint128;
|
||||
|
||||
namespace mrand
|
||||
{
|
||||
void setSeed(unsigned long long seed);
|
||||
int getValue(int min, int max);
|
||||
float getFloat(uint128 *state);
|
||||
float getFloat();
|
||||
int getValue(int min, int max, uint128 *state);
|
||||
uint32_t getInt();
|
||||
}
|
Reference in New Issue
Block a user