我試圖寫一個Android應用程序,它可以轉化一個三角形使用了來自谷歌的 http://developer.android.com/training/graphics/opengl/motion.html代碼,但是當我的OpenGL ES翻譯
Matrix.translate(mMVPMatrix,0,dx,dy,0);
三角取代了
Matrix.setRotateM(mRotationMatrix, 0, mAngle, 0, 0, -1.0f);
Matrix.multiplyMM(mMVPMatrix, 0, mRotationMatrix, 0, mMVPMatrix, 0);
也在Z軸上移動,看起來完全不像翻譯
我該怎麼辦?