32 #include "../api_display.h"
34 #include "pixel_buffer.h"
41 class PerlinNoise_Impl;
71 PixelBuffer create_noise1d(
float start_x,
float end_x);
81 PixelBuffer create_noise2d(
float start_x,
float end_x,
float start_y,
float end_y);
92 PixelBuffer create_noise3d(
float start_x,
float end_x,
float start_y,
float end_y,
float z_position);
104 PixelBuffer create_noise4d(
float start_x,
float end_x,
float start_y,
float end_y,
float z_position,
float w_position);
107 Size get_size()
const;
113 float get_amplitude()
const;
116 int get_octaves()
const;
127 void set_permutations(
const unsigned char *table,
unsigned int size = 256);
135 void set_size(
int width = 256,
int height = 256);
143 void set_size(
const Size &size);
159 void set_amplitude(
float amplitude = 1.0f);
166 void set_octaves(
int octaves = 1);
173 std::shared_ptr<PerlinNoise_Impl> impl;
Perlin Noise Generator class.
Definition: perlin_noise.h:44
Definition: texture_format.h:45
Pixel data container.
Definition: pixel_buffer.h:69
TextureFormat
Texture format.
Definition: texture_format.h:41
2D (width,height) size structure - Integer
Definition: size.h:157