OpenGL ES SDK for Android
ARM Developer Center
|
#include <fftwater.hpp>
Public Member Functions | |
FFTWater (float amplitude, vec2 wind_velocity, uvec2 resolution, vec2 size, vec2 normalmap_freq_mod) | |
void | update (float time) |
GLuint | get_height_displacement () const |
GLuint | get_gradient_jacobian () const |
GLuint | get_normal () const |
unsigned | get_displacement_downsample () const |
Private Member Functions | |
cfloat | phillips (vec2 k, float max_l) |
void | generate_distribution (cfloat *distribution, vec2 size, float amplitude, float max_l) |
void | generate_mipmaps () |
void | compute_ifft () |
void | bake_height_gradient () |
void | update_phase (float time) |
void | init_gl_fft () |
void | downsample_distribution (cfloat *out, const cfloat *in, unsigned rate_log2) |
void | compute_mipmap (const GLFFT::Program &program, const GLFFT::Texture &texture, GLenum format, unsigned Nx, unsigned Nz, unsigned level) |
void | init_texture (GLFFT::Texture &tex, GLenum format, unsigned levels, unsigned width, unsigned height, GLenum mag_filter, GLenum min_filter) |
Static Private Attributes | |
static constexpr float | G = 9.81f |
Definition at line 34 of file fftwater.hpp.
FFTWater::FFTWater | ( | float | amplitude, |
vec2 | wind_velocity, | ||
uvec2 | resolution, | ||
vec2 | size, | ||
vec2 | normalmap_freq_mod | ||
) |
Definition at line 33 of file fftwater.cpp.
|
private |
Definition at line 235 of file fftwater.cpp.
|
private |
Definition at line 176 of file fftwater.cpp.
|
private |
Definition at line 263 of file fftwater.cpp.
|
private |
Definition at line 76 of file fftwater.cpp.
|
private |
Definition at line 124 of file fftwater.cpp.
|
private |
Definition at line 187 of file fftwater.cpp.
|
inline |
Definition at line 109 of file fftwater.hpp.
|
inline |
Definition at line 107 of file fftwater.hpp.
|
inline |
Definition at line 106 of file fftwater.hpp.
|
inline |
Definition at line 108 of file fftwater.hpp.
|
private |
Definition at line 294 of file fftwater.cpp.
|
private |
Definition at line 288 of file fftwater.cpp.
Definition at line 104 of file fftwater.cpp.
Definition at line 226 of file fftwater.cpp.
Definition at line 143 of file fftwater.cpp.
|
private |
Definition at line 78 of file fftwater.hpp.
|
private |
Definition at line 70 of file fftwater.hpp.
|
private |
Definition at line 56 of file fftwater.hpp.
|
private |
Definition at line 80 of file fftwater.hpp.
|
private |
Definition at line 81 of file fftwater.hpp.
|
private |
Definition at line 82 of file fftwater.hpp.
|
private |
Definition at line 57 of file fftwater.hpp.
|
private |
Definition at line 58 of file fftwater.hpp.
|
private |
Definition at line 53 of file fftwater.hpp.
|
private |
Definition at line 87 of file fftwater.hpp.
|
private |
Definition at line 86 of file fftwater.hpp.
|
private |
Definition at line 88 of file fftwater.hpp.
|
private |
Definition at line 84 of file fftwater.hpp.
|
private |
Definition at line 83 of file fftwater.hpp.
|
private |
Definition at line 85 of file fftwater.hpp.
|
staticprivate |
Definition at line 54 of file fftwater.hpp.
|
private |
Definition at line 74 of file fftwater.hpp.
|
private |
Definition at line 73 of file fftwater.hpp.
|
private |
Definition at line 69 of file fftwater.hpp.
|
private |
Definition at line 43 of file fftwater.hpp.
|
private |
Definition at line 94 of file fftwater.hpp.
|
private |
Definition at line 52 of file fftwater.hpp.
|
private |
Definition at line 77 of file fftwater.hpp.
|
private |
Definition at line 71 of file fftwater.hpp.
|
private |
Definition at line 41 of file fftwater.hpp.
|
private |
Definition at line 41 of file fftwater.hpp.
|
private |
Definition at line 64 of file fftwater.hpp.
|
private |
Definition at line 62 of file fftwater.hpp.
|
private |
Definition at line 60 of file fftwater.hpp.
|
private |
Definition at line 61 of file fftwater.hpp.
|
private |
Definition at line 67 of file fftwater.hpp.
|
private |
Definition at line 65 of file fftwater.hpp.
|
private |
Definition at line 66 of file fftwater.hpp.
|
private |
Definition at line 42 of file fftwater.hpp.
|
private |
Definition at line 42 of file fftwater.hpp.
|
private |
Definition at line 76 of file fftwater.hpp.
|
private |
Definition at line 40 of file fftwater.hpp.
|
private |
Definition at line 39 of file fftwater.hpp.