Files
stupidsimcpp/simtools/sim22.hpp
2025-11-07 13:27:05 -05:00

34 lines
664 B
C++

#ifndef SIM2_HPP
#define SIM2_HPP
#include "../util/noise2.hpp"
#include "../util/grid2.hpp"
#include "../util/vec2.hpp"
#include "../util/vec4.hpp"
#include <memory>
#include <string>
#include <unordered_map>
class Sim2 {
private:
Noise2 noise;
Grid2 terrainGrid;
int width;
int height;
float scale;
int octaves;
float lacunarity;
int seed;
float elevationMult;
float waterLevel;
Vec4 landColor;
Vec4 waterColor;
float erosion;
public:
Sim2(int width = 512, int height = 512, int seed = 42, float scale = 4) :
width(width), height(height), scale(scale), octaves(4), seed(seed)
{ }
};
#endif