Exemplo n.º 1
0
  /**
   * Sets the view to our CardboardView and initializes the transformation matrices we will use to
   * render our scene.
   *
   * @param savedInstanceState
   */
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.common_ui);
    cardboardView = (CardboardView) findViewById(R.id.cardboard_view);
    cardboardView.setRenderer(this);
    setCardboardView(cardboardView);

    mCamera = new float[16];
    mView = new float[16];

    mOverlayView = (CardboardOverlayView) findViewById(R.id.overlay);
    mOverlayView.show3DToast("Not every day is Purim.");
  }
  /**
   * Sets the view to our CardboardView and initializes the transformation matrices we will use to
   * render our scene.
   *
   * @param savedInstanceState
   */
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.common_ui);
    cardboardView = (CardboardView) findViewById(R.id.cardboard_view);
    cardboardView.setRenderer(this);
    setCardboardView(cardboardView);

    //        mModelCube = new float[16];
    mCamera = new float[16];
    mView = new float[16];
    //        mModelViewProjection = new float[16];
    //        mModelView = new float[16];
    //        mModelFloor = new float[16];
    //        mHeadView = new float[16];
    //        mVibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
    //
    //
    mOverlayView = (CardboardOverlayView) findViewById(R.id.overlay);
    mOverlayView.show3DToast("Pull the magnet when you find an object.");
  }