1GLVERTEX(3G) OpenGL Manual GLVERTEX(3G)
2
3
4
6 glVertex - specify a vertex
7
9 void glVertex2s(GLshort x, GLshort y);
10
11 void glVertex2i(GLint x, GLint y);
12
13 void glVertex2f(GLfloat x, GLfloat y);
14
15 void glVertex2d(GLdouble x, GLdouble y);
16
17 void glVertex3s(GLshort x, GLshort y, GLshort z);
18
19 void glVertex3i(GLint x, GLint y, GLint z);
20
21 void glVertex3f(GLfloat x, GLfloat y, GLfloat z);
22
23 void glVertex3d(GLdouble x, GLdouble y, GLdouble z);
24
25 void glVertex4s(GLshort x, GLshort y, GLshort z, GLshort w);
26
27 void glVertex4i(GLint x, GLint y, GLint z, GLint w);
28
29 void glVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
30
31 void glVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
32
34 x, y, z, w
35 Specify x, y, z, and w coordinates of a vertex. Not all parameters
36 are present in all forms of the command.
37
39 void glVertex2sv(const GLshort * v);
40
41 void glVertex2iv(const GLint * v);
42
43 void glVertex2fv(const GLfloat * v);
44
45 void glVertex2dv(const GLdouble * v);
46
47 void glVertex3sv(const GLshort * v);
48
49 void glVertex3iv(const GLint * v);
50
51 void glVertex3fv(const GLfloat * v);
52
53 void glVertex3dv(const GLdouble * v);
54
55 void glVertex4sv(const GLshort * v);
56
57 void glVertex4iv(const GLint * v);
58
59 void glVertex4fv(const GLfloat * v);
60
61 void glVertex4dv(const GLdouble * v);
62
64 v
65 Specifies a pointer to an array of two, three, or four elements.
66 The elements of a two-element array are x and y; of a three-element
67 array, x, y, and z; and of a four-element array, x, y, z, and w.
68
70 glVertex commands are used within glBegin()/glEnd() pairs to specify
71 point, line, and polygon vertices. The current color, normal, texture
72 coordinates, and fog coordinate are associated with the vertex when
73 glVertex is called.
74
75 When only x and y are specified, z defaults to 0 and w defaults to 1.
76 When x, y, and z are specified, w defaults to 1.
77
79 Invoking glVertex outside of a glBegin()/glEnd() pair results in
80 undefined behavior.
81
83 glBegin(), glCallList(), glColor(), glEdgeFlag(), glEvalCoord(),
84 glFogCoord(), glIndex(), glMaterial(), glMultiTexCoord(), glNormal(),
85 glRect(), glTexCoord(), glVertexPointer()
86
88 Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
89 under the SGI Free Software B License. For details, see
90 http://oss.sgi.com/projects/FreeB/.
91
93 opengl.org
94
95
96
97opengl.org 06/10/2014 GLVERTEX(3G)