79138679

Date: 2024-10-29 19:33:55
Score: 1
Natty:
Report link

In order to rotate your cube by angle

 Matrix.setRotateM(rotationMatrix, 0, angle, 0f, 0f, -1.0f)// z-axis

You should better implement the onTouchEvent() method in your GLSurfaceView rather than adding buttons.

Check https://developer.android.com/develop/ui/views/graphics/opengl/touch

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yuriy