Skip to content

Latest commit

 

History

History
107 lines (63 loc) · 2.39 KB

gltexcoord4i.md

File metadata and controls

107 lines (63 loc) · 2.39 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
glTexCoord4i function (Gl.h)
Sets the current texture coordinates. | glTexCoord4i function (Gl.h)
b2b49102-5129-49cc-9043-22ba46fbf08f
glTexCoord4i function OpenGL
apiref
glTexCoord4i
opengl32.dll
DllExport
reference
05/31/2018

glTexCoord4i function

Sets the current texture coordinates.

Syntax

void WINAPI glTexCoord4i(
   GLint s,
   GLint t,
   GLint r,
   GLint q
);

Parameters

s

The s texture coordinate.

t

The t texture coordinate.

r

The r texture coordinate.

q

The q texture coordinate.

Return value

This function does not return a value.

Remarks

The glTexCoord function sets the current texture coordinates that are part of the data associated with polygon vertices. The glTexCoord function specifies texture coordinates in one, two, three, or four dimensions. The glTexCoord1 function sets the current texture coordinates to (s, 0, 0, 1); a call to glTexCoord2 sets them to (s, t, 0, 1). Similarly, glTexCoord3 specifies the texture coordinates as (s, t, r, 1), and glTexCoord4 defines all four components explicitly as (s, t, r, q). You can update the current texture coordinates at any time. In particular, you can call glTexCoord between a call to glBegin and the corresponding call to glEnd. The following function retrieves information related to glTexCoord:

glGet with argument GL_CURRENT_TEXTURE_COORDS

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Gl.h
Library
Opengl32.lib
DLL
Opengl32.dll

See also

glVertex