glVertex2dv, glVertex2fv, glVertex2iv, glVertex2sv, glVertex3dv, glVer-
tex3fv, glVertex3iv, glVertex3sv, glVertex4dv, glVertex4fv, glVer-
tex4iv, glVertex4sv - specify a vertex
C SPECIFICATION
void GLAPIENTRY glVertex2d( GLdouble x,
GLdouble y )
void GLAPIENTRY glVertex2f( GLfloat x,
GLfloat y )
void GLAPIENTRY glVertex2i( GLint x,
GLint y )
void GLAPIENTRY glVertex2s( GLshort x,
GLshort y )
void GLAPIENTRY glVertex3d( GLdouble x,
GLdouble y,
GLdouble z )
void GLAPIENTRY glVertex3f( GLfloat x,
GLfloat y,
GLfloat z )
void GLAPIENTRY glVertex3i( GLint x,
GLint y,
GLint z )
void GLAPIENTRY glVertex3s( GLshort x,
GLshort y,
GLshort z )
void GLAPIENTRY glVertex4d( GLdouble x,
GLdouble y,
GLdouble z,
GLdouble w )
void GLAPIENTRY glVertex4f( GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w )
void GLAPIENTRY glVertex4i( GLint x,
GLint y,
GLint z,
GLint w )
void GLAPIENTRY glVertex4s( GLshort x,
GLshort y,
GLshort z,
GLshort w )
PARAMETERS
x, y, z, w
Specify x, y, z, and w coordinates of a vertex. Not all
parameters are present in all forms of the command.
C SPECIFICATION
void GLAPIENTRY glVertex2dv( const GLdouble *v )
void GLAPIENTRY glVertex2fv( const GLfloat *v )
The elements of a two-element array are x and y; of a three-ele-
ment array, x, y, and z; and of a four-element array, x, y, z,
and w.
DESCRIPTION
glVertex 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 and w defaults to 1.
When x, y, and z are specified, w defaults to 1.
NOTES
Invoking glVertex outside of a glBegin/glEnd pair results in undefined
behavior.
SEE ALSO
glBegin, glCallList, glColor, glEdgeFlag, glEvalCoord, glIndex,
glMaterial,
glNormal, glRect, glTexCoord, glVertexPointer
GLVERTEX(3G)
Man(1) output converted with
man2html