List of usage examples for android.opengl Matrix scaleM
public static void scaleM(float[] sm, int smOffset, float[] m, int mOffset, float x, float y, float z)
From source file:com.tumblr.cardboard.Tumblr3DActivity.java
/** * Moves the texture to the middle and makes it big. * * @param photoIndex the index of the texture to move *//*from www .java2 s . c o m*/ private void selectPhoto(int photoIndex) { final int i = NUM_IMAGES_STATIC + photoIndex; Matrix.scaleM(mModelRect[i], 0, mImageRect[i], 0, mScaleTheater, mScaleTheater, 1f); Matrix.translateM(mModelRect[i], 0, 0f, 0f, -SPHERE_RADIUS); }