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

Author Topic: Create a line segment shape in sfml 2.0?  (Read 1943 times)

0 Members and 1 Guest are viewing this topic.

Deftwun

  • Newbie
  • *
  • Posts: 27
    • View Profile
Create a line segment shape in sfml 2.0?
« on: January 18, 2012, 02:55:57 am »
Just upgraded to sfml 2.0 before I got too far in my project. I was updating my debug draw class for box 2d to match the new API when I noticed there is no line segment shape in 2.0. Should I just use a really skinny rectangle? :)

Deftwun

  • Newbie
  • *
  • Posts: 27
    • View Profile
Create a line segment shape in sfml 2.0?
« Reply #1 on: January 18, 2012, 03:25:23 am »
Ok so I think I found it. (sorry for spamming) I think a vertex array is what I'm looking for... Which I suppose is more suitable than a line segment class. I didn't realize it inherited from sf::drawable. I assumed it was just some sort of data type :)

 

anything