1175 |
CurrentFPS::last_time[CurrentFPS::count] = new_time; |
CurrentFPS::last_time[CurrentFPS::count] = new_time; |
1176 |
|
|
1177 |
} |
} |
|
|
|
|
CurrentFPS::totalFrames ++; |
|
|
} |
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL Java_gzz_gfx_gl_GL_clearFrameCountImpl |
|
|
(JNIEnv *env, jclass) { |
|
|
DBG(dbg) << "Clear frame count.\n"; |
|
|
CurrentFPS::totalFrames = 0; |
|
1178 |
} |
} |
1179 |
|
|
|
JNIEXPORT jint JNICALL Java_gzz_gfx_gl_GL_getFrameCountImpl |
|
|
(JNIEnv *env, jclass) { |
|
|
DBG(dbg) << "Get frame count.\n"; |
|
|
return CurrentFPS::totalFrames; |
|
|
} |
|
|
|
|
|
|
|
1180 |
|
|
1181 |
JNIEXPORT jfloat JNICALL Java_gzz_gfx_gl_GL_timeRenderImpl |
JNIEXPORT jfloat JNICALL Java_gzz_gfx_gl_GL_timeRenderImpl |
1182 |
(JNIEnv *env, jclass, jint window, jint iters, |
(JNIEnv *env, jclass, jint window, jint iters, |