#include <perlin.H>
Collaboration diagram for Perlin:
Public Member Functions | |
Perlin () | |
virtual | ~Perlin () |
TEXTUREglptr | create_perlin_texture3 (int tex_stage=TexUnit::PERLIN) |
TEXTUREglptr | create_perlin_texture2 (int tex_stage=TexUnit::PERLIN) |
Vec4 | noise1 (double x) |
Vec4 | noise2 (double x, double y) |
Vec4 | noise3 (double x, double y, double z) |
Vec4 | noise4 (double x, double y, double z, double t) |
double | getval_1D (int freq, double x, unsigned int seed) |
double | getval_2D (int freq, double x, double y, unsigned int seed) |
double | getval_3D (int freq, double x, double y, double z, unsigned int seed) |
double | getval_4D (int freq, double x, double y, double z, double t, unsigned int seed) |
Static Public Member Functions | |
static Perlin * | get_instance () |
Protected Member Functions | |
double | noise (unsigned int input) |
double | cubic (double v0, double v1, double v2, double v3, double t) |
double | frac (double) |
Protected Attributes | |
TEXTUREglptr | perlin2d_tex |
TEXTUREglptr | perlin3d_tex |
Perlin * | _previous_instance |
Static Protected Attributes | |
static Perlin * | _instance = 0 |
Definition at line 23 of file perlin.H.
|
Definition at line 16 of file perlin.C. References _instance, _previous_instance, perlin2d_tex, and perlin3d_tex. |
|
Definition at line 31 of file perlin.C. References _instance, and _previous_instance. |
|
Definition at line 353 of file perlin.C. References getval_2D(), GL_LINEAR, GL_REPEAT, GL_RGBA, GL_TEXTURE0, GL_TEXTURE_2D, GL_UNSIGNED_BYTE, glTexImage2D(), j, perlin2d_tex, SEED_1, SEED_2, SEED_3, and SEED_4. Referenced by HalftoneShaderEx::init_textures(), and HalftoneShader::init_textures(). |
|
Definition at line 238 of file perlin.C. References getval_3D(), GL_LINEAR, GL_REPEAT, GL_RGBA, GL_TEXTURE0, GL_TEXTURE_3D, GL_UNSIGNED_BYTE, glTexImage3D, j, perlin3d_tex, GL_VIEW::print_gl_errors(), SEED_1, SEED_2, SEED_3, and SEED_4. Referenced by GLSLMarbleShader::init_textures(). |
|
Definition at line 90 of file perlin.C. Referenced by getval_1D(), getval_2D(), getval_3D(), and getval_4D(). |
|
Definition at line 101 of file perlin.C. Referenced by getval_1D(), getval_2D(), getval_3D(), getval_4D(), noise1(), noise2(), noise3(), and noise4(). |
|
Definition at line 54 of file perlin.H. References _instance. Referenced by GLSLMarbleShader::GLSLMarbleShader(), HalftoneShader::HalftoneShader(), and HalftoneShaderEx::HalftoneShaderEx(). |
|
Definition at line 126 of file perlin.C. References cubic(), frac(), int(), and noise(). Referenced by getval_2D(), and noise1(). |
|
Definition at line 146 of file perlin.C. References cubic(), frac(), getval_1D(), and int(). Referenced by create_perlin_texture2(), getval_3D(), and noise2(). |
|
Definition at line 167 of file perlin.C. References cubic(), frac(), getval_2D(), and int(). Referenced by create_perlin_texture3(), getval_4D(), and noise3(). |
|
Definition at line 189 of file perlin.C. References cubic(), frac(), getval_3D(), and int(). Referenced by noise4(). |
|
Definition at line 62 of file perlin.C. Referenced by getval_1D(). |
|
Definition at line 461 of file perlin.C. References frac(), getval_1D(), NUM_OCTAVES, PRESISTANCE, SEED_1, SEED_2, SEED_3, SEED_4, and START_FREQ. |
|
Definition at line 484 of file perlin.C. References frac(), getval_2D(), NUM_OCTAVES, PRESISTANCE, SEED_1, SEED_2, SEED_3, SEED_4, and START_FREQ. |
|
Definition at line 508 of file perlin.C. References frac(), getval_3D(), NUM_OCTAVES, PRESISTANCE, SEED_1, SEED_2, SEED_3, SEED_4, and START_FREQ. |
|
Definition at line 534 of file perlin.C. References frac(), getval_4D(), NUM_OCTAVES, PRESISTANCE, SEED_1, SEED_2, SEED_3, SEED_4, and START_FREQ. |
|
Definition at line 68 of file perlin.H. Referenced by get_instance(), Perlin(), and ~Perlin(). |
|
|
|
Definition at line 65 of file perlin.H. Referenced by create_perlin_texture2(), and Perlin(). |
|
Definition at line 66 of file perlin.H. Referenced by create_perlin_texture3(), and Perlin(). |