Пример #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));
 }
Пример #2
0
 @Override
 public void addElementsToUpdateThread(SystemUpdater updater) {
   updater.addObjectToUpdateCycle(mWorld);
   updater.addObjectToUpdateCycle(mWasdAction);
   updater.addObjectToUpdateCycle(mRotateGLCameraAction);
 }
Пример #3
0
  @Override
  public void _d_addElementsToUpdateThread(SystemUpdater worldUpdater) {

    worldUpdater.addObjectToUpdateCycle(world);
  }