I\'m trying to detect the opengl object under the cursor... I have read it referred to as picking. Here is my code:
public int makeBuffer(GL10 gl, int x, int
These permissions are only available for signature apps. Apps that were signed when the Android ROM was compiled. So they do nothing for regular apps.
android:name="android.permission.ACCESS_SURFACE_FLINGER"
android:name="android.permission.READ_FRAME_BUFFER"
I also faced similar issues when creating an openGL ES app on android.
My workaround so far was to change the app from RGB565 to RGBA8888. Insert these lines before setting the renderer:
getHolder().setFormat(PixelFormat.RGBA_8888);
setEGLConfigChooser(8, 8, 8, 8, 0, 0);
You must be aware that this solution will only work on devices that support RGBA8888.