Exemplo n.º 1
0
 /**
  * Subclasses must call this at the end of their onCreate() call.
  *
  * @param near The near clipping distance.
  * @param far The far clipping distance.
  */
 protected void start(float near, float far) {
   if (!created) {
     throw new IllegalStateException("GameActivity subclass must call super.onCreate() first!");
   }
   Log.d(TAG, "GameActivity Start!");
   engine.start();
   gameView.setRenderer(new GameRenderer(pipe, near, far));
   super.setContentView(gameView); // TODO change to super.setContentView(content);
 }