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

Author Topic: OpenGL Adjacency Primitive Types  (Read 2208 times)

0 Members and 2 Guests are viewing this topic.

bbernardoni

  • Newbie
  • *
  • Posts: 1
    • View Profile
OpenGL Adjacency Primitive Types
« on: September 28, 2017, 08:47:03 am »
Is there a reason why GL_LINE_STRIP_ADJACENCY, GL_LINES_ADJACENCY, GL_TRIANGLE_STRIP_ADJACENCY, and GL_TRIANGLES_ADJACENCY are not supported as sf::PrimitiveTypes?

I needed to use GL_LINE_STRIP_ADJACENCY so I downloaded the source, added a sf::PrimitiveTypes, modified sf::RenderTarget::draw, and it worked fine. I couldn't think of a reason why they are not included other than not being used often.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: OpenGL Adjacency Primitive Types
« Reply #1 on: September 28, 2017, 10:19:58 am »
The XXX_ADJACENCY primitive types don't seem to exist before OpenGL 3.2. Don't forget that SFML is still limited to OpenGL 1.4 features... (except for some very common stuff like shaders).
Laurent Gomila - SFML developer