Graphics Reference
In-Depth Information
(continued)
shaderType
specifies the type of shader, and must be either
GL_VERTEX_SHADER
or
GL_FRAGMENT_SHADER
specifies the precision qualifier type, and must be
one of
GL_LOW_FLOAT, GL_MEDIUM_FLOAT
,
GL_HIGH_FLOAT
,
GL_LOW_INT
,
GL_MEDIUM_INT
,
or
GL_HIGH_INT
a two-element array that returns the minimum and
maximum values for
precisionType
as a log base-2
number
returns the precision for
precisionType
as a log
base-2 value
precisionType
range
precision
State information for vertex attribute arrays can also be retrieved from
the current OpenGL ES 3.0 context. To obtain the pointer to the current
generic vertex attributes for a specific index, call the following function:
void
glGetVertexAttribPointerv
(GLuint
index
, GLenum
pname
,
GLvoid **
pointer
)
specifies the index of the generic vertex attribute array
specifies the parameter to be retrieved; must be
GL_VERTEX_ATTRIB_ARRAY_POINTER
returns the address of the specified vertex attribute array
index
pname
pointer
The associated state for accessing the data elements in the vertex attribute
array, such as value type or stride, can be obtained by calling the following
function:
void
glGetVertexAttribfv
(GLuint
index
, GLenum
pname
,
GLfloat *
params
)
void
glGetVertexAttribiv
(GLuint
index
, GLenum
pname
,
GLint *
params
)
specifies the index of the generic vertex attribute array.
index