@Override public void onDrawFrame(GL10 gl) { if (modelData != null) { P3dViewerJNIWrapper.load_model(modelData, modelData.limit(), extension); modelData = null; } synchronized (rotateMutex) { if (doStartRotateCam) { doStartRotateCam = false; P3dViewerJNIWrapper.start_rotate_cam(startRotateX, startRotateY); } if (doRotateCam) { doRotateCam = false; P3dViewerJNIWrapper.rotate_cam(rotateX, rotateY); } } P3dViewerJNIWrapper.on_draw_frame(); }
@Override public void onSurfaceChanged(GL10 gl, int width, int height) { P3dViewerJNIWrapper.on_surface_changed(width, height); }
@Override public void onSurfaceCreated(GL10 gl, EGLConfig config) { P3dViewerJNIWrapper.on_surface_created(); }