OpenGL-ES: How to set an object at the coordinates of the touch?
问题 I'm looking for a way to have an opengl object(triangles etc) at the location on the screen where you touch the screen. I now have an 3D pyramid on the screen, wich moves over the screen, based on the difference between the start of your touch, and where you dragged it to. In normal surfaceViews I could just do something like element.x = event.getX() , but this will not work in openGL. So anyone has an idea? ps: i'm using java/Android. 回答1: OpenGL is nor like a surface view, where each