#include <complex>
#include <cstdio>
#include <cmath>
#include <random>
#include "fftwater.hpp"
#include "scattering.hpp"
#include "GLFFT/glfft.hpp"
#include "mesh.hpp"
#include "common.hpp"
#include "Timer.h"
#include "Text.h"
#include <jni.h>
Go to the source code of this file.
|
static void | compute_frustum (vec4 *planes, const mat4 &mvp) |
|
static void | init_vao () |
|
static void | app_init () |
|
static void | app_update (float delta_time) |
|
static void | app_render (unsigned width, unsigned height, float total_time, unsigned mesh_index) |
|
static void | app_term () |
|
static void | render_text (Text &text, const char *method, float current_time) |
|
JNIEXPORT void JNICALL | Java_com_arm_malideveloper_openglessdk_ocean_Ocean_init (JNIEnv *, jclass, jint width, jint height) |
|
JNIEXPORT void JNICALL | Java_com_arm_malideveloper_openglessdk_ocean_Ocean_step (JNIEnv *, jclass) |
|
JNIEXPORT void JNICALL | Java_com_arm_malideveloper_openglessdk_ocean_Ocean_uninit (JNIEnv *, jclass) |
|
double | app_get_time () |
|
#define NORMALMAP_FREQ_MOD 7.3f |
#define WIND_SPEED_X +26.0f |
#define WIND_SPEED_Z -22.0f |
static void app_render |
( |
unsigned |
width, |
|
|
unsigned |
height, |
|
|
float |
total_time, |
|
|
unsigned |
mesh_index |
|
) |
| |
|
static |
static void compute_frustum |
( |
vec4 * |
planes, |
|
|
const mat4 & |
mvp |
|
) |
| |
|
static |
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_ocean_Ocean_init |
( |
JNIEnv * |
, |
|
|
jclass |
, |
|
|
jint |
width, |
|
|
jint |
height |
|
) |
| |
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_ocean_Ocean_step |
( |
JNIEnv * |
, |
|
|
jclass |
|
|
) |
| |
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_ocean_Ocean_uninit |
( |
JNIEnv * |
, |
|
|
jclass |
|
|
) |
| |
static void render_text |
( |
Text & |
text, |
|
|
const char * |
method, |
|
|
float |
current_time |
|
) |
| |
|
static |
float method_timer = 0.0f |
|
static |