1
Graphics / Setting points in sf::VertexArray relative to sprite
« on: July 27, 2014, 01:49:52 am »
Hi again everybody,
After more experimenting with VertexArrays, I want to set each vertex (2 vertices in the array) to one end of a sprite. This wouldn't be that bad, except that the sprite rotates. I might not have done too great of a job explaining what I mean, so here's a visual representation:
How can I set each vertex to stay at that end of the sprite?
Sorry for all the questions about this, I'm still learning more advanced topics of C++ and SFML, but I figured that a good way to learn would be pushing myself with harder projects, so I'm not entirely sure how to solve all the problems I run across.
Thanks for all the help!
After more experimenting with VertexArrays, I want to set each vertex (2 vertices in the array) to one end of a sprite. This wouldn't be that bad, except that the sprite rotates. I might not have done too great of a job explaining what I mean, so here's a visual representation:
How can I set each vertex to stay at that end of the sprite?
Sorry for all the questions about this, I'm still learning more advanced topics of C++ and SFML, but I figured that a good way to learn would be pushing myself with harder projects, so I'm not entirely sure how to solve all the problems I run across.
Thanks for all the help!