Return to site

Gltexcoordpointer opengl es 2.0

broken image
broken image
broken image

For more information, see glInterleavedArrays. In some implementations, storing the vertices and attributes in a single array can be more efficient than using separate arrays. The stride parameter determines the byte offset from one array element to the next, enabling the packing of vertices and attributes in a single array or storage in separate arrays. The glTexCoordPointer function specifies the location and data of an array of texture coordinates to use when rendering.The size parameter specifies the number of coordinates used for each element of the array.The type parameter specifies the data type of each texture coordinate. The following error codes can be retrieved by the glGetError function. When stride is zero, the array elements are tightly packed in the array.Ī pointer to the first coordinate of the first element in the array. The byte offset between consecutive array elements. The data type of each texture coordinate in the array using the following symbolic constants: GL_SHORT, GL_INT, GL_FLOAT, and GL_DOUBLE. The number of coordinates per array element. The glTexCoordPointer function defines an array of texture coordinates.

broken image