I am developing an Android application that distorts the image. I use opengl translate and the zoom function to distort the image. The image is distorted perfectly. Now I want to implement the undo function. But failed to implement functionality. Anyone can help how to implement undo functions in opengl. Any suggestion or code would be helpful. Thanks in advance.
I suspect that the command template is not enough for your situation. This is based on my assumption that it is not easy to reverse the image distortion even when you know which distortion was applied.
, , . . , .
, , .
. OpenGL-. x1, y1 x2, y2. :
command = DrawLine data = x1, y1, x2, y2
, Undo, . , Undo, ( ). . "" "".
, .