I am new to OpenGL2.0 in Android. How can I scroll the GLSurfaceView both horizontally and vertically?
Tell me more
×
Game Development Stack Exchange is a question and answer site for
professional and independent game developers. It's 100% free, no registration required.
|
|
||||
|
|
|
In the Android Developers Training site, you already have a way to do this: http://developer.android.com/training/graphics/opengl/projection.html You just need to modify this line:
to add the ScrollX and ScrollY respectively. |
|||||||||
|
|
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 |
|||
|
|