PDA

View Full Version : Creating new triangles with GL_TRIANGLE_STRIPS



jmfurlott
01-29-2013, 12:49 PM
Hello all,

Trying to render a model using GL_TRIANGLE_STRIPS and its working fine, however, at certain arbitrary points I want to break off the the triangle strips and essentially start a new set of triangle strips (that are completely separate from the original strips). How should I go about doing this? Multiple VBOs? I currently have only one VBO that holds all my vertices.

Thanks!

tonyo_au
01-29-2013, 05:23 PM
Use an index buffer with a restart flag see glPrimitiveRestartIndex