android - Is it possible to get list of OpenGL ES 2.0 methods which are vendor-specific? -


Little Bastorry - I'm working on Android application with OpenGL ES2.0, and sometime I had to face a problem with the width of the lines. Finally, it came to know that the glLineWidth () implementation is vendor-specific, and the range of possible values ​​is not guaranteed. For example, for Adreno200 it is 1-18 and the emulator got me 1-100.

I am thinking that it is possible to get a list of such methods.

The list of boundaries with the seller specific values ​​is mentioned in the specific document. To know:

  1. (The Khronos Consortium is responsible for the OpenGL ES standard)
  2. Click on the "OpenGL ESE" page in the top pane of the page.
  3. Click on "Glasses and Headers" at the bottom of the pane, it will bring you.
  4. Find the "OpenGL ES 2.0 Specifications and Documents" section, and click on "Full Specification". Or better yet, download the PDF file for future use to download it.

In this PDF file, see section "6.2 Stat Tables", starting with page 134. Then appears in "Table 6.18 Implementation Dependent Value".

This table contains the list of names for each value, and the function to use to ask for value for your specific implementation. Apart from this, it is very useful, it guarantees that the minimum value is achieved by all implementations. is supported.

For your specific example, you will get a value of ALIASED_LINE_WIDTH_RANGE , which is in the 6th entry with the table name, GetFloatv for the function name, Minimum supported values ​​for 1,1 , and for details:

range (width of the line line

) On the basis, you know that the maximum limit for the implementation can be as low as 1 (i.e. they do not support wide lines), And you can query the limit for the implementation of which can be used are:

  GLfloat widthRange [2]; Glagfloatev (GL_ALAISID_LLYUIIDTH_RNN, width_length);  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -