Answer the question
In order to leave comments, you need to log in
How to update a shape in OpenGL in Android when rendered via SurfaceView?
Good afternoon. I build a figure in OpenGL by coordinates and display it through SurfaceView on the screen. Initially, the coordinates of the figure (X and Y) are set by the code, but I want to make them enter from the screen. To do this, I made an input through EditTExt, I receive the coordinates and pass them to OpenGl, but it turns out that I need to somehow rebuild the figure with new coordinates, but how can I do this?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question