Esempio n. 1
0
 @Override
 public void _c_addActionsToEvents(
     EventManager eventManager, CustomGLSurfaceView arView, SystemUpdater updater) {
   ActionMoveCameraBuffered move = new ActionMoveCameraBuffered(camera, 5, 25);
   arView.addOnTouchMoveAction(move);
   eventManager.addOnTrackballAction(move);
   Action rot = new ActionRotateCameraBuffered(camera);
   updater.addObjectToUpdateCycle(rot);
   eventManager.addOnOrientationChangedAction(rot);
   eventManager.addOnLocationChangedAction(new ActionCalcRelativePos(world, camera));
 }
Esempio n. 2
0
 @Override
 public void addElementsToUpdateThread(SystemUpdater updater) {
   updater.addObjectToUpdateCycle(mWorld);
   updater.addObjectToUpdateCycle(mWasdAction);
   updater.addObjectToUpdateCycle(mRotateGLCameraAction);
 }
Esempio n. 3
0
  @Override
  public void _d_addElementsToUpdateThread(SystemUpdater worldUpdater) {

    worldUpdater.addObjectToUpdateCycle(world);
  }