Glbegin - HP b2600 Reference Manual

Opengl 1.1 reference
Hide thumbs Also See for b2600:
Table of Contents

Advertisement

B

glBegin

glBegin
glBegin, glEnd: delimit the vertices of a primitive or a group of like primitives.
C Specification
void glBegin(
void glEnd(void)
Parameters
mode
Description
glBegin and glEnd delimit the vertices that define a primitive or a group of like
primitives. glBegin accepts a single argument that specifies in which of ten ways the
vertices are interpreted. Taking n as an integer count starting at one, and n as the total
number of vertices specified, the interpretations are as follows:
GL_POINTS
GL_LINES
GL_LINE_STRIP
GL_LINE_LOOP
GL_TRIANGLES
GL_TRIANGLE_STRIP
20
GLenum mode)
Specifies the primitive or primitives that will be created from vertices
presented between glBegin and the subsequent glEnd. Ten symbolic
constants are accepted:
GL_POINTS, GL_LINES, GL_LINE_STRIP, GL_LINE_LOOP,
GL_TRIANGLES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN,
GL_QUADS, GL_QUAD_STRIP, and GL_POLYGON.
Treats each vertex as a single point. Vertex n defines point n. n points
are drawn.
Treats each pair of vertices as an independent line segment. Vertices
n
2
- 1 and 2
Draws a connected group of line segments from the first vertex to the
last. n - 1 lines are drawn.
Draws a connected group of line segments from the first vertex to the
last, then back to the first. Vertices n and n+1 define line n. The last
line, however, is defined by vertices n and 1. n lines are drawn.
Treats each triplet of vertices as an independent triangle. Vertices 3n -
2, 3n - 1, and 3n define triangle n. n/3 triangles are drawn.
Draws a connected group of triangles. One triangle is defined for each
vertex presented after the first two vertices. For odd n, vertices n, n+1,
and n+2 define triangle n. For even n, vertices n+1, n, and n+2 define
triangle n. n2 triangles are drawn.
n
define line n. n/2 lines are drawn.
Chapter 2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents