Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: PrimitiveType: LineLoop (again)  (Read 2734 times)

0 Members and 1 Guest are viewing this topic.

madpew

  • Newbie
  • *
  • Posts: 2
    • View Profile
PrimitiveType: LineLoop (again)
« on: February 24, 2017, 02:30:50 pm »
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.0

I 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