Export (0) Print
Expand All

glVertex4i function

Applies to: desktop apps only

Specifies a vertex.

Syntax

void WINAPI glVertex4i(
  GLint x,
  GLint y,
  GLint z,
  GLint w
);

Parameters

x

Specifies the x-coordinate of a vertex.

y

Specifies the y-coordinate of a vertex.

z

Specifies the z-coordinate of a vertex.

w

Specifies the w-coordinate of a vertex.

Return value

This function does not return a value.

Remarks

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.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Gl.h

Library

Opengl32.lib

DLL

Opengl32.dll

See also

glBegin
glCallList
glColor
glEdgeFlag
glEnd
glEvalCoord
glIndex
glMaterial
glNormal
glRect
glTexCoord

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

ADD
Show:
© 2014 Microsoft