J
J
JavDev12017-04-21 10:16:56
Android
JavDev1, 2017-04-21 10:16:56

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

1 answer(s)
S
Sergey Lerg, 2017-04-21
@Lerg

Redraw with new coordinates.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question