godot_voxel/generators/voxel_generator_noise_2d.h

29 lines
673 B
C
Raw Normal View History

2020-01-26 14:43:47 -08:00
#ifndef VOXEL_GENERATOR_NOISE_2D_H
#define VOXEL_GENERATOR_NOISE_2D_H
2020-01-21 15:52:25 -08:00
2020-01-26 14:43:47 -08:00
#include "voxel_generator_heightmap.h"
2020-01-21 15:52:25 -08:00
#include <modules/opensimplex/open_simplex_noise.h>
class VoxelGeneratorNoise2D : public VoxelGeneratorHeightmap {
GDCLASS(VoxelGeneratorNoise2D, VoxelGeneratorHeightmap)
2020-01-21 15:52:25 -08:00
public:
VoxelGeneratorNoise2D();
2020-01-21 15:52:25 -08:00
void set_noise(Ref<OpenSimplexNoise> noise);
Ref<OpenSimplexNoise> get_noise() const;
void set_curve(Ref<Curve> curve);
Ref<Curve> get_curve() const;
void generate_block(VoxelBlockRequest &input) override;
2020-01-21 15:52:25 -08:00
private:
static void _bind_methods();
private:
Ref<OpenSimplexNoise> _noise;
Ref<Curve> _curve;
2020-01-21 15:52:25 -08:00
};
2020-01-26 14:43:47 -08:00
#endif // VOXEL_GENERATOR_NOISE_2D_H