title | description | ms.assetid | keywords | topic_type | api_name | api_location | api_type | ms.topic | ms.date | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
glVertex2s function (Gl.h) |
Specifies a vertex. | glVertex2s function (Gl.h) |
e964d7b0-1cb7-4334-8861-1cc2ee37a71a |
|
|
|
|
|
reference |
05/31/2018 |
Specifies a vertex.
void WINAPI glVertex2s(
GLshort x,
GLshort y
);
-
x
-
Specifies the x-coordinate of a vertex.
-
y
-
Specifies the y-coordinate of a vertex.
This function does not return a value.
The glVertex function commands are used within glBegin/glEnd pairs to specify point, line, and polygon vertices. The current color, normal, and texture coordinates are associated with the vertex when glVertex is called. When only x and y are specified, z defaults to 0.0 and w defaults to 1.0. When x, y, and z are specified, w defaults to 1.0. Invoking glVertex outside of a glBegin/glEnd pair results in undefined behavior.
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Header |
|
Library |
|
DLL |
|