I am new to OpenGL2.0 in Android. How can I scroll the
GLSurfaceView both horizontally and vertically?
Turns Out that the vertex shader in the Android OpenGL example is wrong. Its correct in the docs but if you download the example it has wrong shader code. As suggested by tim in the following link:
Android OpenGL weirdness with the setLookAtM method
In the Android Developers Training site, you already have a way to do this:
You just need to modify this line:
to add the ScrollX and ScrollY respectively.