1
Graphics / Re: How to calculate a polygon from a vector of vertices i.e draw thick lines?
« on: January 12, 2014, 06:07:44 pm »
Thanks a lot, I shall take a look. Also, I just found "Minkowski sum", which I think looks quite good too. My program seems to contain 90% theories and algorithms by Minkowski...
Erm..I took a look at the example:
https://github.com/SFML/SFML/wiki/Source%3A-line-with-thickness
"The code above uses the following extensions to Vector2f"
Okay, how do I add extensions to Vector2f? ( I have no clue what I'm doing really!)
And, since when does std::vector have a member "Append" (notice the capital "A")
And, what the hell sort of keyword is "var"?
THIS LINK solved all my problems instantly. Put it in the manual or something!!!
https://gist.github.com/eXpl0it3r/6057215
Erm..I took a look at the example:
https://github.com/SFML/SFML/wiki/Source%3A-line-with-thickness
"The code above uses the following extensions to Vector2f"
Okay, how do I add extensions to Vector2f? ( I have no clue what I'm doing really!)
And, since when does std::vector have a member "Append" (notice the capital "A")
And, what the hell sort of keyword is "var"?
THIS LINK solved all my problems instantly. Put it in the manual or something!!!
https://gist.github.com/eXpl0it3r/6057215