21.06.2014 Views

OpenGL 4.2 (Compatibility Profile) - April 27, 2012

OpenGL 4.2 (Compatibility Profile) - April 27, 2012

OpenGL 4.2 (Compatibility Profile) - April 27, 2012

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2.6. BEGIN/END PARADIGM 26<br />

2<br />

4<br />

6<br />

2 3<br />

6 7<br />

1<br />

3<br />

5<br />

1<br />

4 5<br />

8<br />

(a)<br />

(b)<br />

Figure 2.5. (a) A quad strip. (b) Independent quads. The numbers give the sequencing<br />

of the vertices between Begin and End.<br />

tion 2.16). If a geometry shader is not active, the adjacent vertices are ignored.<br />

They are generated with mode LINES_ADJACENCY.<br />

A line segment is drawn from the 4i + 2nd vertex to the 4i + 3rd vertex for<br />

each i = 0, 1, . . . , n − 1, where there are 4n + k vertices between a Begin and<br />

End pair. k is either 0, 1, 2, or 3; if k is not zero, the final k vertices are ignored.<br />

For line segment i, the 4i + 1st and 4i + 4th vertices are considered adjacent to the<br />

4i + 2nd and 4i + 3rd vertices, respectively (see figure 2.6).<br />

Line Strips with Adjacency<br />

Line strips with adjacency are similar to line strips, except that each line segment<br />

has a pair of adjacent vertices that can be accessed by a geometry shader. If a<br />

geometry shader is not active, the adjacent vertices are ignored. They are generated<br />

with mode LINE_STRIP_ADJACENCY.<br />

A line segment is drawn from the i + 2nd vertex to the i + 3rd vertex for each<br />

i = 0, 1, . . . , n − 1, where there are n + 3 vertices between a Begin and End pair.<br />

If there are fewer than four vertices, all vertices are ignored. For line segment i,<br />

the i + 1st and i + 4th vertex are considered adjacent to the i + 2nd and i + 3rd<br />

vertices, respectively (see figure 2.6).<br />

Triangles with Adjacency<br />

Triangles with adjacency are similar to separate triangles, except that each triangle<br />

edge has an adjacent vertex that can be accessed by a geometry shader. If a<br />

geometry shader is not active, the adjacent vertices are ignored. They are generated<br />

with mode TRIANGLES_ADJACENCY.<br />

<strong>OpenGL</strong> <strong>4.2</strong> (<strong>Compatibility</strong> <strong>Profile</strong>) - <strong>April</strong> <strong>27</strong>, <strong>2012</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!