33 #include "pixel_buffer.h"
40 class PerlinNoise_Impl;
172 std::shared_ptr<PerlinNoise_Impl> impl;
PixelBuffer create_noise1d(float start_x, float end_x)
Create the perlin noise.
PerlinNoise()
Constructor.
int get_octaves() const
Get the number of octaves of the perlin noise.
Size get_size() const
Get the size of the output pixelbuffer.
void set_octaves(int octaves=1)
Set the number of octaves of the perlin noise.
TextureFormat get_format() const
Get the format of the output pixelbuffer.
Perlin Noise Generator class.
Definition: perlin_noise.h:44
PixelBuffer create_noise3d(float start_x, float end_x, float start_y, float end_y, float z_position)
Create the perlin noise.
void set_amplitude(float amplitude=1.0f)
Set the amplitude of the perlin noise.
float get_amplitude() const
Get the amplitude of the perlin noise.
void set_format(TextureFormat texture_format=tf_rgb8)
Set the format of the output pixelbuffer.
PixelBuffer create_noise2d(float start_x, float end_x, float start_y, float end_y)
Create the perlin noise.
void set_size(const Size &size)
Set the size of the output pixelbuffer.
void set_size(int width=256, int height=256)
Set the size of the output pixelbuffer.
virtual ~PerlinNoise()
Destructor.
TextureFormat
Texture format.
Definition: texture_format.h:41
Pixel data container.
Definition: pixel_buffer.h:69
@ tf_rgb8
Definition: texture_format.h:44
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.
2D (width,height) size structure - Integer
Definition: size.h:157
void set_permutations(const unsigned char *table, unsigned int size=256)
Set the permutation table.