Hello everyone.
The PrimitiveType-enumeration is missing some of OpenGLs primitives, mostly because of missing support in OpenGL ES/3.0 (quad* and polygon). I find it very odd that LineLoop is missing.
My usecase is drawing outlines for convex meshes (triangle-fan vertexarray)
Using LineLoop I could reuse the same vertexarray for the outlines, while as with LineStrip I have to copy the vertexarray and "re-add" that first vertex again to close off the shape.
I found my issue (and that argument) already discussed in an older thread:
http://sfml-dev.org/forums/index.php?topic=8502.0I understand the "keeping the API tidy, simple and understandable"-approach but honestly:
if someone knows what's the difference between a triangle-fan and a triangle-strip it can't be too hard to figure out what a line-loop might be used for.
Best regards,
madpew