Note that there are some explanatory texts on larger screens.

plurals
  1. POGet nothing when retriving OpengGL capabilities values via glget on android
    primarykey
    data
    text
    <p>I want to detect whether those devices running my game support some OpengGL features, like GL_MAX_VERTEX_ATTRIBS. I had wrote these codes:</p> <pre><code>int[] result = new int[1]; GLES20.glGetIntegerv(GLES20.GL_MAX_VERTEX_ATTRIBS, result, 0); </code></pre> <p>I have read the official document and it said the return value must be higher than 8, but what I have got from the result is always 0. I had used these things via C language on IOS well, but on android they had really confused me. What should i do to finish this kind of tasks on android?</p> <p>I have found that "OpenGL Extensions Viewer"(<a href="http://www.realtech-vr.com/glview/" rel="nofollow noreferrer">http://www.realtech-vr.com/glview/</a>) can detect a lot of things on android and it only has a listview on screen, can I get these informations without create a custom GLSurfaceView and a Renderer?</p> <p>I found this similar question <a href="https://stackoverflow.com/questions/8442720/get-gpu-info-on-android-without-surfaceview">Get GPU info on Android without SurfaceView</a> But it also has no best answer.</p> <p>I have solved this problem now, I put the detecting codes in another Activity, and follow this tutorial <a href="http://www.learnopengles.com/android-lesson-one-getting-started/" rel="nofollow noreferrer">http://www.learnopengles.com/android-lesson-one-getting-started/</a> to get an OpenGL ES 2.0 context, then retrieve these capability infos via gl API calls, after all those done, I jump back to my main activity.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload