1GLVERTEX(3G)                                                      GLVERTEX(3G)
2
3
4

NAME

6       glVertex2d, glVertex2f, glVertex2i, glVertex2s, glVertex3d, glVertex3f,
7       glVertex3i, glVertex3s, glVertex4d, glVertex4f, glVertex4i, glVertex4s,
8       glVertex2dv, glVertex2fv, glVertex2iv, glVertex2sv, glVertex3dv, glVer‐
9       tex3fv,  glVertex3iv,  glVertex3sv,  glVertex4dv,  glVertex4fv,  glVer‐
10       tex4iv, glVertex4sv - specify a vertex
11
12

C SPECIFICATION

14       void glVertex2d( GLdouble x,
15                        GLdouble y )
16       void glVertex2f( GLfloat x,
17                        GLfloat y )
18       void glVertex2i( GLint x,
19                        GLint y )
20       void glVertex2s( GLshort x,
21                        GLshort y )
22       void glVertex3d( GLdouble x,
23                        GLdouble y,
24                        GLdouble z )
25       void glVertex3f( GLfloat x,
26                        GLfloat y,
27                        GLfloat z )
28       void glVertex3i( GLint x,
29                        GLint y,
30                        GLint z )
31       void glVertex3s( GLshort x,
32                        GLshort y,
33                        GLshort z )
34       void glVertex4d( GLdouble x,
35                        GLdouble y,
36                        GLdouble z,
37                        GLdouble w )
38       void glVertex4f( GLfloat x,
39                        GLfloat y,
40                        GLfloat z,
41                        GLfloat w )
42       void glVertex4i( GLint x,
43                        GLint y,
44                        GLint z,
45                        GLint w )
46       void glVertex4s( GLshort x,
47                        GLshort y,
48                        GLshort z,
49                        GLshort w )
50
51

PARAMETERS

53       x, y, z, w
54                Specify  x,  y,  z,  and  w  coordinates of a vertex.  Not all
55                parameters are present in all forms of the command.
56

C SPECIFICATION

58       void glVertex2dv( const GLdouble *v )
59       void glVertex2fv( const GLfloat *v )
60       void glVertex2iv( const GLint *v )
61       void glVertex2sv( const GLshort *v )
62       void glVertex3dv( const GLdouble *v )
63       void glVertex3fv( const GLfloat *v )
64       void glVertex3iv( const GLint *v )
65       void glVertex3sv( const GLshort *v )
66       void glVertex4dv( const GLdouble *v )
67       void glVertex4fv( const GLfloat *v )
68       void glVertex4iv( const GLint *v )
69       void glVertex4sv( const GLshort *v )
70
71

PARAMETERS

73       v      Specifies a pointer to an array of two, three, or four elements.
74              The elements of a two-element array are x and y; of a three-ele‐
75              ment array, x, y, and z; and of a four-element array, x,  y,  z,
76              and w.
77

DESCRIPTION

79       glVertex commands are used within glBegin/glEnd pairs to specify point,
80       line, and polygon vertices.  The current  color,  normal,  and  texture
81       coordinates are associated with the vertex when glVertex is called.
82
83       When  only  x and y are specified, z defaults to 0 and w defaults to 1.
84       When x, y, and z are specified, w defaults to 1.
85

NOTES

87       Invoking glVertex outside of a glBegin/glEnd pair results in  undefined
88       behavior.
89

SEE ALSO

91       glBegin(3G),      glCallList(3G),      glColor(3G),     glEdgeFlag(3G),
92       glEvalCoord(3G), glIndex(3G), glMaterial(3G),
93       glNormal(3G), glRect(3G), glTexCoord(3G), glVertexPointer(3G)
94
95
96
97                                                                  GLVERTEX(3G)
Impressum