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 28<br />

Figure 2.8. Triangle strips with adjacency. The vertices connected with solid lines<br />

belong to the main primitives; the vertices connected by dashed lines are the adjacent<br />

vertices that may be used in a geometry shader.<br />

The 6i + 1st, 6i + 3rd, and 6i + 5th vertices (in that order) determine a triangle<br />

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

End pair. k is either 0, 1, 2, 3, 4, or 5; if k is non-zero, the final k vertices are<br />

ignored. For triangle i, the i + 2nd, i + 4th, and i + 6th vertices are considered<br />

adjacent to edges from the i + 1st to the i + 3rd, from the i + 3rd to the i + 5th,<br />

and from the i + 5th to the i + 1st vertices, respectively (see figure 2.7).<br />

Triangle Strips with Adjacency<br />

Triangle strips with adjacency are similar to triangle strips, except that each line<br />

triangle 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 TRIANGLE_STRIP_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!