godot_voxel/generators/simple/voxel_generator_waves.h

38 lines
769 B
C
Raw Normal View History

#ifndef VOXEL_GENERATOR_WAVES_H
#define VOXEL_GENERATOR_WAVES_H
#include "voxel_generator_heightmap.h"
2022-01-09 22:13:10 +00:00
namespace zylann::voxel {
class VoxelGeneratorWaves : public VoxelGeneratorHeightmap {
GDCLASS(VoxelGeneratorWaves, VoxelGeneratorHeightmap)
public:
VoxelGeneratorWaves();
~VoxelGeneratorWaves();
Result generate_block(VoxelGenerator::VoxelQueryData &input) override;
2021-01-16 13:41:46 +00:00
Vector2 get_pattern_size() const;
void set_pattern_size(Vector2 size);
2021-01-16 13:41:46 +00:00
Vector2 get_pattern_offset() const;
void set_pattern_offset(Vector2 offset);
private:
static void _bind_methods();
2021-01-16 13:41:46 +00:00
struct Parameters {
Vector2 pattern_size;
Vector2 pattern_offset;
};
Parameters _parameters;
RWLock _parameters_lock;
};
2022-01-09 22:13:10 +00:00
} // namespace zylann::voxel
#endif // VOXEL_GENERATOR_WAVES_H