Add world generator sources and binary
This commit is contained in:
14
worldgen-c/include/noise.h
Normal file
14
worldgen-c/include/noise.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef WORLDGEN_NOISE_H
|
||||
#define WORLDGEN_NOISE_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
int perm[512];
|
||||
} simplex_noise;
|
||||
|
||||
void simplex_init(simplex_noise *noise, uint32_t seed);
|
||||
double simplex_noise2(simplex_noise *noise, double x, double y);
|
||||
double simplex_noise3(simplex_noise *noise, double x, double y, double z);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user