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 param‐
eters are present in all forms of the command.
C SPECIFICATION
void GLAPIENTRY glVertex2dv( const GLdouble *v )
void GLAPIENTRY glVertex2fv( const GLfloat *v )
void GLAPIENTRY glVertex2iv( const GLint *v )
void GLAPIENTRY glVertex2sv( const GLshort *v )
void GLAPIENTRY glVertex3dv( const GLdouble *v )
void GLAPIENTRY glVertex3fv( const GLfloat *v )
glVertex commands are used within glBegin/glEnd pairs to specify point,
line, and polygon vertices. The current color, normal, and texture co‐
ordinates 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