I want to convert the five quad strips in the figure below (which are specified be the black indices below) into a single quad strip by adding appropriate degenerate quads. The added gray indices seem to do the trick, but I am wondering if there is a more compact way.
Instead of using degenerate triangles, you should be using primitive restart. With this, you simply specify that a particular index restarts a primitive. The core OpenGL 3.1 version is several years old, and the NV_primitive_restart extension is widely supported by NVIDIA (since the GeForce 6xxx days) and ATI (all HD-class hardware).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With