我正在尝试编写一个可以翻译三角形的 Android 应用程序,我使用了 来自 Google 的http://developer.android.com/training/graphics/opengl/motion.html代码,但是当我替换了
Matrix.setRotateM(mRotationMatrix, 0, mAngle, 0, 0, -1.0f);
Matrix.multiplyMM(mMVPMatrix, 0, mRotationMatrix, 0, mMVPMatrix, 0);
和
Matrix.translate(mMVPMatrix,0,dx,dy,0);
三角形也在 Z 轴上移动,看起来根本不像平移
我能做些什么 ?