how to use glreadpixels with android — usually get zeros

前端 未结 2 977
陌清茗
陌清茗 2021-01-15 03:44

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         


        
2条回答
  •  无人及你
    2021-01-15 04:24

    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" 
    

提交回复
热议问题