Exemplo n.º 1
0
  @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();
  }
Exemplo n.º 2
0
 @Override
 public void onSurfaceChanged(GL10 gl, int width, int height) {
   P3dViewerJNIWrapper.on_surface_changed(width, height);
 }
Exemplo n.º 3
0
 @Override
 public void onSurfaceCreated(GL10 gl, EGLConfig config) {
   P3dViewerJNIWrapper.on_surface_created();
 }