Good day. I build a figure in OpenGL by coordinates and output it via SurfaceView to the screen. Initially, the coordinates of the shape (X and Y) are set by the code, but I want to make them entered from the screen. To do this, I made the input via EditTExt, I get the coordinates and pass it to OpenGl, but it turns out that you need to somehow rebuild the shape with the new coordinates, and how?

  • transfer new coordinates in OpenGL redraw and display via SurfaceView on the screen. - drugs_and_code
  • I transfer the new coordinates to the matrix instead of the initial ones, the question is how to redraw the shape? - JavDev
  • in onDrawFrame pass the required data - drugs_and_code
  • And what data in onDrawFrame to transfer? I am doing this example esate.ru/blogs/freaky-brainstorm/4237/?sphrase_id=8227 Coordinates in a separate class (Object3D), I pass them on to it. Coordinates are replaced, but the picture does not redrawn - JavDev

0