32 #include "pixel_buffer.h"
41 static std::shared_ptr<PerlinNoise>
create();
97 virtual int octaves()
const = 0;
2D (width,height) size structure - Integer
Definition: size.h:167
virtual void set_format(TextureFormat texture_format=tf_rgb8)=0
Set the format of the output pixelbuffer.
virtual void set_amplitude(float amplitude=1.0f)=0
Set the amplitude of the perlin noise.
virtual PixelBufferPtr create_noise1d(float start_x, float end_x)=0
Create the perlin noise.
virtual PixelBufferPtr create_noise2d(float start_x, float end_x, float start_y, float end_y)=0
Create the perlin noise.
TextureFormat
Texture format.
Definition: texture_format.h:35
std::shared_ptr< PerlinNoise > PerlinNoisePtr
Definition: perlin_noise.h:147
virtual void set_permutations(const unsigned char *table, unsigned int size=256)=0
Set the permutation table.
virtual PixelBufferPtr create_noise3d(float start_x, float end_x, float start_y, float end_y, float z_position)=0
Create the perlin noise.
virtual PixelBufferPtr create_noise4d(float start_x, float end_x, float start_y, float end_y, float z_position, float w_position)=0
Create the perlin noise.
virtual int octaves() const =0
Get the number of octaves of the perlin noise.
static std::shared_ptr< PerlinNoise > create()
Constructor.
virtual float amplitude() const =0
Get the amplitude of the perlin noise.
virtual Size size() const =0
Get the size of the output pixelbuffer.
virtual TextureFormat format() const =0
Get the format of the output pixelbuffer.
std::shared_ptr< PixelBuffer > PixelBufferPtr
Definition: d3d_target.h:39
Perlin Noise Generator class.
Definition: perlin_noise.h:37
Definition: texture_format.h:39
virtual void set_octaves(int octaves=1)=0
Set the number of octaves of the perlin noise.
Definition: Application/application.h:35
void set_size(int width=256, int height=256)
Set the size of the output pixelbuffer.
Definition: perlin_noise.h:113