32#include "pixel_buffer.h"
39 class PerlinNoise_Impl;
155 std::shared_ptr<PerlinNoise_Impl> impl;
Perlin Noise Generator class.
Definition: perlin_noise.h:43
TextureFormat get_format() const
Get the format of the output pixelbuffer.
float get_amplitude() const
Get the amplitude of the perlin noise.
PixelBuffer create_noise2d(float start_x, float end_x, float start_y, float end_y)
Create the perlin noise.
int get_octaves() const
Get the number of octaves of the perlin noise.
void set_size(int width=256, int height=256)
Set the size of the output pixelbuffer.
PerlinNoise()
Constructor.
Size get_size() const
Get the size of the output pixelbuffer.
void set_permutations(const unsigned char *table, unsigned int size=256)
Set the permutation table.
void set_amplitude(float amplitude=1.0f)
Set the amplitude of the perlin noise.
PixelBuffer create_noise3d(float start_x, float end_x, float start_y, float end_y, float z_position)
Create the perlin noise.
void set_size(const Size &size)
Set the size of the output pixelbuffer.
virtual ~PerlinNoise()
Destructor.
void set_format(TextureFormat texture_format=TextureFormat::rgb8)
Set the format of the output pixelbuffer.
void set_octaves(int octaves=1)
Set the number of octaves of the perlin noise.
PixelBuffer create_noise1d(float start_x, float end_x)
Create the perlin noise.
PixelBuffer create_noise4d(float start_x, float end_x, float start_y, float end_y, float z_position, float w_position)
Create the perlin noise.
Pixel data container.
Definition: pixel_buffer.h:68
2D (width,height) size structure - Integer
Definition: size.h:171
TextureFormat
Texture format.
Definition: texture_format.h:39