glTexCoord specifies texture coordinates in one, two, three, or four dimensions. glTexCoord1 sets the current texture coordinates to (𝐬, 0, 0, 1); a call to glTexCoord2 sets them to (𝐬, 𝐭, 0, 1). Similarly, glTexCoord3 specifies the texture coordinates as (𝐬, 𝐭, 𝐫, 1), and glTexCoord4 defines all four components explicitly as (𝐬, 𝐭, 𝐫, 𝐪).
The current texture coordinates are part of the data that is associated with each vertex and with the current raster position. Initially, the values for s, t, r, and q are (0, 0, 0, 1).
Parameters
v: number
Specifies a pointer to an array of one, two, three, or four elements, which in turn specify the s, t, r, and q texture coordinates.
glTexCoordspecifies texture coordinates in one, two, three, or four dimensions.glTexCoord1sets the current texture coordinates to (𝐬, 0, 0, 1); a call toglTexCoord2sets them to (𝐬, 𝐭, 0, 1). Similarly,glTexCoord3specifies the texture coordinates as (𝐬, 𝐭, 𝐫, 1), andglTexCoord4defines all four components explicitly as (𝐬, 𝐭, 𝐫, 𝐪).The current texture coordinates are part of the data that is associated with each vertex and with the current raster position. Initially, the values for s, t, r, and q are (0, 0, 0, 1).